Skip to content

Installation issue: gcc #32640

@eschnett

Description

@eschnett

Steps to reproduce the issue

$ spack spec -I gcc
Input spec
--------------------------------
 -   gcc

Concretized
--------------------------------
 -   gcc@12.2.0%apple-clang@14.0.0~binutils+bootstrap~graphite~nvptx~piclibs~strip build_type=RelWithDebInfo languages=c,c++,fortran arch=darwin-monterey-skylake
[+]      ^diffutils@3.8%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]          ^libiconv@1.16%apple-clang@14.0.0 libs=shared,static arch=darwin-monterey-skylake
[+]      ^gawk@5.1.1%apple-clang@14.0.0~nls arch=darwin-monterey-skylake
[+]          ^gmp@6.2.1%apple-clang@14.0.0 libs=shared,static arch=darwin-monterey-skylake
[+]              ^autoconf@2.69%apple-clang@14.0.0 patches=35c4492,7793209,a49dd5b arch=darwin-monterey-skylake
[+]                  ^m4@1.4.19%apple-clang@14.0.0+sigsegv patches=9dc5fbd,bfdffa7 arch=darwin-monterey-skylake
[+]                      ^libsigsegv@2.13%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]                  ^perl@5.34.1%apple-clang@14.0.0+cpanm+shared+threads arch=darwin-monterey-skylake
[+]                      ^berkeley-db@18.1.40%apple-clang@14.0.0+cxx~docs+stl patches=26090f4,9f5b54a,b231fcc arch=darwin-monterey-skylake
[+]                      ^bzip2@1.0.8%apple-clang@14.0.0~debug~pic+shared arch=darwin-monterey-skylake
[+]                      ^gdbm@1.19%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]                          ^readline@8.1.2%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]                              ^ncurses@6.3%apple-clang@14.0.0~symlinks+termlib abi=none patches=3970661 arch=darwin-monterey-skylake
[+]                                  ^pkgconf@1.8.0%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]                      ^zlib@1.2.12%apple-clang@14.0.0+optimize+pic+shared patches=0d38234 arch=darwin-monterey-skylake
[+]              ^automake@1.16.5%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]              ^libtool@2.4.7%apple-clang@14.0.0 arch=darwin-monterey-skylake
[+]          ^mpfr@4.1.0%apple-clang@14.0.0 libs=shared,static arch=darwin-monterey-skylake
[+]              ^autoconf-archive@2022.02.11%apple-clang@14.0.0 patches=139214f arch=darwin-monterey-skylake
[+]              ^texinfo@6.5%apple-clang@14.0.0 patches=12f6edb,1732115 arch=darwin-monterey-skylake
[+]      ^mpc@1.2.1%apple-clang@14.0.0 libs=shared,static arch=darwin-monterey-skylake
[+]      ^zstd@1.5.2%apple-clang@14.0.0~programs libs=shared,static arch=darwin-monterey-skylake

Error message

Error message
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line 2061.
collect2: error: ld returned 1 exit status
make[6]: *** [libstdc++.la] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-stage1-target-libstdc++-v3] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Information on your system

$ spack debug report

  • Spack: 0.19.0.dev0 (251d86e)
  • Python: 3.9.6
  • Platform: darwin-monterey-skylake
  • Concretizer: clingo

I have updated my system to Xcode 14, which uses apple-clang 14 as compiler. It is probably this update that makes things fail.

Additional information

@alalazo @michaelkuhn
spack-build-env.txt
spack-build-out.aa.txt
spack-build-out.ab.txt
spack-build-out.ac.txt

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions