Steps to reproduce the issue
$ spack spec -I gcc@master
- gcc@master~binutils~bootstrap~graphite~mold~nvptx~piclibs~strip build_system=autotools build_type=RelWithDebInfo commit=c47454bc7062c0171cfe785136d3966ef671104b languages:='c,c++,fortran' platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^autoconf@2.72 build_system=autotools platform=darwin os=tahoe target=m1
[+] ^automake@1.16.5 build_system=autotools platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^compiler-wrapper@1.0 build_system=generic platform=darwin os=tahoe target=m1
[+] ^diffutils@3.12 build_system=autotools platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^flex@2.6.3+lex~nls build_system=autotools platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^bison@3.8.2~color build_system=autotools platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^findutils@4.10.0 build_system=autotools patches:=440b954 platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^gawk@5.3.1~nls build_system=autotools platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^libsigsegv@2.14 build_system=autotools platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^readline@8.3 build_system=autotools patches:=21f0a03 platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^gmake@4.4.1~guile build_system=generic platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^gmp@6.3.0~cxx build_system=autotools libs:=shared,static platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^gnuconfig@2024-07-27 build_system=generic platform=darwin os=tahoe target=m1
[+] ^libiconv@1.18 build_system=autotools libs:=shared,static platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^libtool@2.4.7 build_system=autotools platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[e] ^llvm@22.1.4+clang~code_signing~cuda~flang~gold+libomptarget~libomptarget_debug~link_llvm_dylib~lld+lldb+llvm_dylib+lua~mlir+offload+polly~python~split_dwarf~utils~z3~zstd build_system=cmake build_type=Release compiler-rt=runtime generator=ninja libcxx=runtime libunwind=runtime openmp=runtime shlib_symbol_version=none targets:=all version_suffix=none platform=darwin os=tahoe target=aarch64
[+] ^m4@1.4.20+sigsegv build_system=autotools platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^mpc@1.3.1 build_system=autotools libs:=shared,static platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^mpfr@4.2.1 build_system=autotools libs:=shared,static patches:=3ec29a6 platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^autoconf-archive@2023.02.20 build_system=autotools platform=darwin os=tahoe target=m1
[+] ^perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^berkeley-db@18.1.40+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^bzip2@1.0.8~debug~pic+shared build_system=generic platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^gdbm@1.25 build_system=autotools patches:=cdba23a platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^texinfo@7.2~xs build_system=autotools platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^gettext@0.23.1+bzip2+curses+git~libunistring~libxml2+pic+shared~tar~xz build_system=autotools platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^ncurses@6.5-20250705~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^pkgconf@2.5.1 build_system=autotools platform=darwin os=tahoe target=m1 %c=clang@22.1.4
[+] ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
[+] ^zstd@1.5.7~programs build_system=makefile libs:=shared,static platform=darwin os=tahoe target=m1 %c,cxx=clang@22.1.4
I used spack -e . install
Error message
Full Error message
[x] 33g6dwo gcc@master failed
-- lines 1 to 7 --
> /opt/homebrew/Cellar/spack/1.2.0/lib/spack/spack/build_environment.py:490: SpackAPIWarning: when setting environment variable SPACK_DEBUG_LOG_DIR=None: value is of type `NoneType`, but `str` was expected. This is deprecated and will be an error in Spack v1.0
env.set(SPACK_DEBUG_LOG_DIR, spack.paths.spack_working_dir)
Initialized empty Git repository in /private/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/tmpvjiv2kqb/gcc/.git/
==> Ran patch() for gcc
==> gcc: Executing phase: 'autoreconf'
==> [2026-06-23-15:27:54.551420] Find (max depth = None): ['/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c'] ['config.sub', 'config.guess']
==> [2026-06-23-15:27:54.897675] Find complete: ['/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c'] ['config.sub', 'config.guess']
-- lines 1140 to 1152 --
checking valgrind/memcheck.h presence... checking whether getpagesize is declared... yes
yes
checking for setlocale... no
checking for valgrind/memcheck.h... no
checking for multiarch configuration... no, disabled auto check (configured with --native-system-header-dir)
checking for bsearch... yes
> configure: WARNING: fixed-point is not supported for this target, ignored
checking for lstat... checking whether /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmake-4.4.1-qcvu6odpvv235rjqt4bip5wrr4zy6hxf/bin/make sets $(MAKE)... yes
checking for bzero... yes
checking for gawk... gawk
checking whether ln -s works... yes
checking whether ln works... yes
checking for aarch64-apple-darwin25.5.0-ranlib... ranlib
-- lines 1727 to 1757 --
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
> checking whether asprintf is declared... /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/sha1.c:239:11: warning: defining a type within 'offsetof' is a C23 extension [-Wc23-extensions]
239 | if (UNALIGNED_P (buffer))
| ^~~~~~~~~~~~~~~~~~~~
> /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/sha1.c:238:41: note: expanded from macro 'UNALIGNED_P'
238 | # define UNALIGNED_P(p) (((size_t) p) % alignof (sha1_uint32) != 0)
| ^~~~~~~~~~~~~~~~~~~~~
> /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/sha1.c:237:34: note: expanded from macro 'alignof'
237 | # define alignof(type) offsetof (struct { char c; type x; }, x)
| ^~~~~~
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
1 warning generated.
if [ x"" != x ]; then \
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/choose-temp.c -o pic/choose-temp.o; \
else true; fi
In file included from /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/regex.c:643:
> /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/regex.c:3978:24: warning: implicit conversion from 'int' to enumeration type 'reg_errcode_t' is invalid in C++ [-Wimplicit-int-enum-cast]
3978 | FREE_STACK_RETURN (p == pend ? REG_EBRACE : REG_BADBR);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/regex.c:2283:39: note: expanded from macro 'FREE_STACK_RETURN'
2283 | return (free (compile_stack.stack), value)
| ~ ^~~~~
1 warning generated.
if [ x"" != x ]; then \
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/concat.c -o pic/concat.o; \
else true; fi
-- lines 1812 to 1830 --
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/fdmatch.c -o noasan/fdmatch.o; \
else true; fi
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/fdmatch.c -o fdmatch.o
> /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/choose-temp.c:71:7: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations]
71 | if (mktemp (temp_filename) == 0)
| ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdlib.h:236:1: note: 'mktemp' has been explicitly marked deprecated here
236 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.")
| ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg'
227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
| ^
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option]
2 warnings generated.
if [ x"" != x ]; then \
-- lines 2358 to 2370 --
[... snipped unrelated warnings, to adhere to github limitations ...]
-- lines 3510 to 3542 --
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes -I../include -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/../include /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/fixlib.c
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes -I../include -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/../include /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/fixopts.c
srcdir="/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes" /bin/sh /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/mkfixinc.sh aarch64-apple-darwin25.5.0
sed -e 's/@gcc_version@/17.0.0/' < mkheaders.almost > mkheadersT
mv -f mkheadersT mkheaders
yes
> checking whether strtoll is declared... /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/fixincl.c:757:19: warning: assigning to 'char *' from 'const char[2]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
757 | pz_fixed_file = ".";
| ^ ~~~
1 warning generated.
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib64 -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmp-6.3.0-2qqqwnyoidpgzlzly65evo3cbpzjf4vb/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/libiconv-1.18-7ecxlnl7kwowqinouf67bdyf6opjbntx/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpc-1.3.1-juuhrm7lpfn6bbex2ytgmymu77mwmz6d/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpfr-4.2.1-r2h6glgpicbs75jrts6z3irvdv3j2hmg/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zlib-ng-2.2.4-qesmuo7ixc7uprvgnsuyphdu365m2l7m/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zstd-1.5.7-bablp3s66vfep3mycc2xpw23m6gs6lj2/lib -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/libiconv-1.18-7ecxlnl7kwowqinouf67bdyf6opjbntx/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpc-1.3.1-juuhrm7lpfn6bbex2ytgmymu77mwmz6d/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zlib-ng-2.2.4-qesmuo7ixc7uprvgnsuyphdu365m2l7m/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zstd-1.5.7-bablp3s66vfep3mycc2xpw23m6gs6lj2/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpfr-4.2.1-r2h6glgpicbs75jrts6z3irvdv3j2hmg/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmp-6.3.0-2qqqwnyoidpgzlzly65evo3cbpzjf4vb/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib64' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/libiconv-1.18-7ecxlnl7kwowqinouf67bdyf6opjbntx/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpc-1.3.1-juuhrm7lpfn6bbex2ytgmymu77mwmz6d/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zlib-ng-2.2.4-qesmuo7ixc7uprvgnsuyphdu365m2l7m/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zstd-1.5.7-bablp3s66vfep3mycc2xpw23m6gs6lj2/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpfr-4.2.1-r2h6glgpicbs75jrts6z3irvdv3j2hmg/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmp-6.3.0-2qqqwnyoidpgzlzly65evo3cbpzjf4vb/lib' ignored
> ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib64' ignored
no
checking for suffix of object files... echo timestamp > full-stamp
make[2]: Leaving directory '/private/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/spack-build/fixincludes'
yes
checking whether strtoull is declared... o
checking whether we are using the GNU C compiler... yes
-- lines 3677 to 3689 --
checking for getchar_unlocked... yes
checking for AF_INET6... yes
checking for _LK_LOCK... yes
no
checking if mkdir takes one argument... checking for getc_unlocked... no
*** Configuration aarch64-apple-darwin25.5.0 not supported
> make[1]: *** [Makefile:4710: configure-gcc] Error 1
make[1]: *** Waiting for unfinished jobs....
yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking for setlocale... yes
checking whether abort is declared... yes
-- lines 3737 to 3745 --
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir .deps
config.status: executing default-1 commands
make[1]: Leaving directory '/private/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/spack-build'
> make: *** [Makefile:1096: all] Error 2
Command exited with status 2:
/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmake-4.4.1-qcvu6odpvv235rjqt4bip5wrr4zy6hxf/bin/make V=1
==> Updating view at /Users/ffracassi/development/03_experiments/01_cpp/spack/spackt/.spack-env/view
==> Error: The following packages failed to install:
gcc@master/33g6dwob4crsc6acwrpxx7twaoom6a5c: /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c-gda8dh2j.log
The most relevant part is probably this line here:
*** Configuration aarch64-apple-darwin25.5.0 not supported
> make[1]: *** [Makefile:4710: configure-gcc] Error 1
Information on your system
- Spack: 1.2.0
- Builtin repo: 119680a
- Python: 3.14.6
- Platform: darwin-tahoe-m1
spack.yaml
Additional information
The problem is probably using vanilla gcc master, which does not have support for darwin.
https://github.com/iains/gcc-darwin-arm64 is providing support (the v16 branch is what homebrew and conda use for their gcc packages).
@alalazo @michaelkuhn
I did not find any spack-build-* files for gcc.
General information
Steps to reproduce the issue
I used
spack -e . installError message
Full Error message
[x] 33g6dwo gcc@master failed -- lines 1 to 7 -- > /opt/homebrew/Cellar/spack/1.2.0/lib/spack/spack/build_environment.py:490: SpackAPIWarning: when setting environment variable SPACK_DEBUG_LOG_DIR=None: value is of type `NoneType`, but `str` was expected. This is deprecated and will be an error in Spack v1.0 env.set(SPACK_DEBUG_LOG_DIR, spack.paths.spack_working_dir) Initialized empty Git repository in /private/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/tmpvjiv2kqb/gcc/.git/ ==> Ran patch() for gcc ==> gcc: Executing phase: 'autoreconf' ==> [2026-06-23-15:27:54.551420] Find (max depth = None): ['/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c'] ['config.sub', 'config.guess'] ==> [2026-06-23-15:27:54.897675] Find complete: ['/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c'] ['config.sub', 'config.guess'] -- lines 1140 to 1152 -- checking valgrind/memcheck.h presence... checking whether getpagesize is declared... yes yes checking for setlocale... no checking for valgrind/memcheck.h... no checking for multiarch configuration... no, disabled auto check (configured with --native-system-header-dir) checking for bsearch... yes > configure: WARNING: fixed-point is not supported for this target, ignored checking for lstat... checking whether /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmake-4.4.1-qcvu6odpvv235rjqt4bip5wrr4zy6hxf/bin/make sets $(MAKE)... yes checking for bzero... yes checking for gawk... gawk checking whether ln -s works... yes checking whether ln works... yes checking for aarch64-apple-darwin25.5.0-ranlib... ranlib -- lines 1727 to 1757 -- warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] > checking whether asprintf is declared... /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/sha1.c:239:11: warning: defining a type within 'offsetof' is a C23 extension [-Wc23-extensions] 239 | if (UNALIGNED_P (buffer)) | ^~~~~~~~~~~~~~~~~~~~ > /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/sha1.c:238:41: note: expanded from macro 'UNALIGNED_P' 238 | # define UNALIGNED_P(p) (((size_t) p) % alignof (sha1_uint32) != 0) | ^~~~~~~~~~~~~~~~~~~~~ > /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/sha1.c:237:34: note: expanded from macro 'alignof' 237 | # define alignof(type) offsetof (struct { char c; type x; }, x) | ^~~~~~ warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] 1 warning generated. if [ x"" != x ]; then \ /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/choose-temp.c -o pic/choose-temp.o; \ else true; fi In file included from /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/regex.c:643: > /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/regex.c:3978:24: warning: implicit conversion from 'int' to enumeration type 'reg_errcode_t' is invalid in C++ [-Wimplicit-int-enum-cast] 3978 | FREE_STACK_RETURN (p == pend ? REG_EBRACE : REG_BADBR); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/regex.c:2283:39: note: expanded from macro 'FREE_STACK_RETURN' 2283 | return (free (compile_stack.stack), value) | ~ ^~~~~ 1 warning generated. if [ x"" != x ]; then \ /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/concat.c -o pic/concat.o; \ else true; fi -- lines 1812 to 1830 -- /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/fdmatch.c -o noasan/fdmatch.o; \ else true; fi warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c -DHAVE_CONFIG_H --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/fdmatch.c -o fdmatch.o > /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/libiberty/choose-temp.c:71:7: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations] 71 | if (mktemp (temp_filename) == 0) | ^ > /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdlib.h:236:1: note: 'mktemp' has been explicitly marked deprecated here 236 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.") | ^ > /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/sys/cdefs.h:227:48: note: expanded from macro '__deprecated_msg' 227 | #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) | ^ warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] warning: unknown warning option '-Wshadow=local' [-Wunknown-warning-option] 2 warnings generated. if [ x"" != x ]; then \ -- lines 2358 to 2370 -- [... snipped unrelated warnings, to adhere to github limitations ...] -- lines 3510 to 3542 -- /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes -I../include -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/../include /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/fixlib.c /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang -c --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes -I../include -I/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/../include /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/fixopts.c srcdir="/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes" /bin/sh /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/mkfixinc.sh aarch64-apple-darwin25.5.0 sed -e 's/@gcc_version@/17.0.0/' < mkheaders.almost > mkheadersT mv -f mkheadersT mkheaders yes > checking whether strtoll is declared... /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/fixincludes/fixincl.c:757:19: warning: assigning to 'char *' from 'const char[2]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 757 | pz_fixed_file = "."; | ^ ~~~ 1 warning generated. /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/compiler-wrapper-1.0-u4ozteajsu2s7qqwhllcnnp3oi6olvsj/libexec/spack/clang/clang --sysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib64 -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmp-6.3.0-2qqqwnyoidpgzlzly65evo3cbpzjf4vb/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/libiconv-1.18-7ecxlnl7kwowqinouf67bdyf6opjbntx/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpc-1.3.1-juuhrm7lpfn6bbex2ytgmymu77mwmz6d/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpfr-4.2.1-r2h6glgpicbs75jrts6z3irvdv3j2hmg/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zlib-ng-2.2.4-qesmuo7ixc7uprvgnsuyphdu365m2l7m/lib -Wl,-rpath,/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zstd-1.5.7-bablp3s66vfep3mycc2xpw23m6gs6lj2/lib -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/libiconv-1.18-7ecxlnl7kwowqinouf67bdyf6opjbntx/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpc-1.3.1-juuhrm7lpfn6bbex2ytgmymu77mwmz6d/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zlib-ng-2.2.4-qesmuo7ixc7uprvgnsuyphdu365m2l7m/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zstd-1.5.7-bablp3s66vfep3mycc2xpw23m6gs6lj2/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpfr-4.2.1-r2h6glgpicbs75jrts6z3irvdv3j2hmg/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmp-6.3.0-2qqqwnyoidpgzlzly65evo3cbpzjf4vb/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib64' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/libiconv-1.18-7ecxlnl7kwowqinouf67bdyf6opjbntx/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpc-1.3.1-juuhrm7lpfn6bbex2ytgmymu77mwmz6d/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zlib-ng-2.2.4-qesmuo7ixc7uprvgnsuyphdu365m2l7m/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/zstd-1.5.7-bablp3s66vfep3mycc2xpw23m6gs6lj2/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/mpfr-4.2.1-r2h6glgpicbs75jrts6z3irvdv3j2hmg/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmp-6.3.0-2qqqwnyoidpgzlzly65evo3cbpzjf4vb/lib' ignored > ld: warning: duplicate -rpath '/opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/lib64' ignored no checking for suffix of object files... echo timestamp > full-stamp make[2]: Leaving directory '/private/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/spack-build/fixincludes' yes checking whether strtoull is declared... o checking whether we are using the GNU C compiler... yes -- lines 3677 to 3689 -- checking for getchar_unlocked... yes checking for AF_INET6... yes checking for _LK_LOCK... yes no checking if mkdir takes one argument... checking for getc_unlocked... no *** Configuration aarch64-apple-darwin25.5.0 not supported > make[1]: *** [Makefile:4710: configure-gcc] Error 1 make[1]: *** Waiting for unfinished jobs.... yes checking for putchar_unlocked... yes checking for putc_unlocked... yes checking for setlocale... yes checking whether abort is declared... yes -- lines 3737 to 3745 -- config.status: creating Makefile config.status: creating config.h config.status: executing depdir commands mkdir .deps config.status: executing default-1 commands make[1]: Leaving directory '/private/var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c/spack-src/spack-build' > make: *** [Makefile:1096: all] Error 2 Command exited with status 2: /opt/homebrew/Cellar/spack/1.2.0/opt/spack/darwin-m1/gmake-4.4.1-qcvu6odpvv235rjqt4bip5wrr4zy6hxf/bin/make V=1 ==> Updating view at /Users/ffracassi/development/03_experiments/01_cpp/spack/spackt/.spack-env/view ==> Error: The following packages failed to install: gcc@master/33g6dwob4crsc6acwrpxx7twaoom6a5c: /var/folders/cq/xb1128w50q5fnbgq7k8xqhsm0000gn/T/ffracassi/spack-stage/spack-stage-gcc-master-33g6dwob4crsc6acwrpxx7twaoom6a5c-gda8dh2j.logThe most relevant part is probably this line here:
Information on your system
spack.yaml
Additional information
The problem is probably using vanilla gcc master, which does not have support for darwin.
https://github.com/iains/gcc-darwin-arm64 is providing support (the v16 branch is what homebrew and conda use for their gcc packages).
@alalazo @michaelkuhn
I did not find any spack-build-* files for gcc.
General information
spack debug reportand reported the version of Spack/Python/Platformspack maintainers <name-of-the-package>and @mentioned any maintainers