spack / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
4.43k stars 2.29k forks source link

Installation issue: `gcc@14.2` on macos #45628

Open Chrismarsh opened 3 months ago

Chrismarsh commented 3 months ago

Steps to reproduce the issue

gcc@14.2 was just released but does not support darwin: *** Configuration aarch64-apple-darwin23.5.0 not supported. Homebrew is still on 14.1 so there are no available patches. I'm not familiar with where the patches are derived. I suspect this work https://github.com/iains/gcc-14-branch ?

$ spack spec -I gcc@14.2
Input spec
--------------------------------
 -   gcc@14.2

Concretized
--------------------------------
 -   gcc@14.2.0%apple-clang@15.0.0~binutils~bootstrap~graphite~mold~nvptx~piclibs~strip build_system=autotools build_type=RelWithDebInfo languages='c,c++,fortran' arch=darwin-sonoma-m1
[+]      ^diffutils@3.10%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]          ^gmake@4.4.1%apple-clang@15.0.0~guile build_system=generic arch=darwin-sonoma-m1
[+]      ^gawk@5.3.0%apple-clang@15.0.0~nls build_system=autotools arch=darwin-sonoma-m1
[+]          ^libsigsegv@2.14%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]          ^readline@8.2%apple-clang@15.0.0 build_system=autotools patches=bbf97f1 arch=darwin-sonoma-m1
[+]      ^gmake@4.4.1%apple-clang@15.0.0~guile build_system=generic arch=darwin-sonoma-m1
[+]      ^gmp@6.3.0%apple-clang@15.0.0+cxx build_system=autotools libs=shared,static arch=darwin-sonoma-m1
[+]          ^autoconf@2.72%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]          ^automake@1.16.5%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]          ^libtool@2.4.7%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]              ^findutils@4.9.0%apple-clang@15.0.0 build_system=autotools patches=440b954 arch=darwin-sonoma-m1
[+]          ^m4@1.4.19%apple-clang@15.0.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-sonoma-m1
[+]      ^gnuconfig@2022-09-17%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1
[+]      ^libiconv@1.17%apple-clang@15.0.0 build_system=autotools libs=shared,static arch=darwin-sonoma-m1
[+]      ^libtool@2.4.7%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]          ^findutils@4.9.0%apple-clang@15.0.0 build_system=autotools patches=440b954 arch=darwin-sonoma-m1
[+]          ^m4@1.4.19%apple-clang@15.0.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-sonoma-m1
[+]              ^diffutils@3.9%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]                  ^libiconv@1.17%apple-clang@15.0.0 build_system=autotools libs=shared,static arch=darwin-sonoma-m1
[+]              ^libsigsegv@2.14%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]      ^mpc@1.3.1%apple-clang@15.0.0 build_system=autotools libs=shared,static arch=darwin-sonoma-m1
[+]      ^mpfr@4.2.1%apple-clang@15.0.0 build_system=autotools libs=shared,static arch=darwin-sonoma-m1
[+]          ^autoconf-archive@2023.02.20%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]      ^perl@5.40.0%apple-clang@15.0.0+cpanm+opcode+open+shared+threads build_system=generic arch=darwin-sonoma-m1
[+]          ^berkeley-db@18.1.40%apple-clang@15.0.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-sonoma-m1
[+]          ^bzip2@1.0.8%apple-clang@15.0.0~debug~pic+shared build_system=generic arch=darwin-sonoma-m1
[+]          ^gdbm@1.23%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]      ^texinfo@7.1%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]          ^gettext@0.22.5%apple-clang@15.0.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=darwin-sonoma-m1
[+]              ^libxml2@2.10.3%apple-clang@15.0.0+pic~python+shared build_system=autotools arch=darwin-sonoma-m1
[+]              ^tar@1.34%apple-clang@15.0.0 build_system=autotools zip=pigz arch=darwin-sonoma-m1
[+]                  ^pigz@2.8%apple-clang@15.0.0 build_system=makefile arch=darwin-sonoma-m1
[+]              ^xz@5.4.6%apple-clang@15.0.0~pic build_system=autotools libs=shared,static arch=darwin-sonoma-m1
[+]          ^ncurses@6.5%apple-clang@15.0.0~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=darwin-sonoma-m1
[+]              ^pkgconf@2.2.0%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1
[+]      ^zlib@1.3.1%apple-clang@15.0.0+optimize+pic+shared build_system=makefile arch=darwin-sonoma-m1
[+]      ^zstd@1.5.6%apple-clang@15.0.0~ipo+programs build_system=cmake build_type=Release compression=none generator=make libs=shared,static arch=darwin-sonoma-m1
[+]          ^cmake@3.30.2%apple-clang@15.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release patches=dbc3892 arch=darwin-sonoma-m1
[+]              ^curl@8.7.1%apple-clang@15.0.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=secure_transport arch=darwin-sonoma-m1
[+]                  ^nghttp2@1.62.0%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1

Error message

Error message
==> Installing gcc-14.2.0-ki2xxo7f42n63obualtwsrfz6dli7tr3 [99/115]
==> No binary for gcc-14.2.0-ki2xxo7f42n63obualtwsrfz6dli7tr3 found: installing from source
==> Fetching https://ftpmirror.gnu.org/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz
==> Ran patch() for gcc
==> gcc: Executing phase: 'autoreconf'
==> gcc: Executing phase: 'configure'
==> gcc: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j10' 'V=1'

2 errors found in build log:
     3634    checking for AF_INET6... yes
     3635    checking for _LK_LOCK... no
     3636    checking for off_t... no
     3637    checking if mkdir takes one argument... no
     3638    yes
     3639    checking for size_t... *** Configuration aarch64-apple-darwin23.5.0 not supported
  >> 3640    make[1]: *** [Makefile:4637: configure-gcc] Error 1
     3641    make[1]: *** Waiting for unfinished jobs....
     3642    yes
     3643    checking for ssize_t... yes
     3644    checking for uintptr_t... yes
     3645    checking for ptrdiff_t... yes
     3646    checking for uint64_t... yes

     ...

     3714    config.status: creating Makefile
     3715    config.status: creating config.h
     3716    config.status: executing depdir commands
     3717    mkdir .deps
     3718    config.status: executing default-1 commands
     3719    make[1]: Leaving directory '/Users/cmarsh/Documents/science/code/spack/stage/spack-stage-gcc-14.2.0-ki2xxo7f42n63obualtwsrfz6dli7tr3/spack-src/spack-build'
  >> 3720    make: *** [Makefile:1059: all] Error 2

Information on your system

spack debug report

Additional information

@alalazo @michaelkuhn

General information

becker33 commented 1 month ago

For reference, I've reproduced this and it does not occur with gcc@14.1.0.

It also occurs with gcc@master.