Skip to content

Installation issue: gcc 11.4.0 does not build with gcc 14.2.0 #48714

@davidedelvento

Description

@davidedelvento

Steps to reproduce the issue

$ spack spec -l [email protected]%[email protected]
 -   s4cbaf3  [email protected]%[email protected]+binutils+bootstrap~graphite~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages='c,c++,fortran' arch=linux-rhel8-icelake
[+]  synoepm      ^[email protected]%[email protected]+gas~gold~gprofng~headers~interwork+ld~libiberty~lto~nls~pgo+plugins build_system=autotools compress_debug_sections=zlib libs=shared,static arch=linux-rhel8-icelake
[+]  v7trb3v          ^[email protected]%[email protected] build_system=generic arch=linux-rhel8-icelake
[e]  u4g25ev          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  qiod66k          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  qmneyhh      ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  tg5jpn2      ^[email protected]%[email protected]~nls build_system=autotools arch=linux-rhel8-icelake
[+]  dbcxjkv          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  7b6t4n6          ^[email protected]%[email protected] build_system=autotools patches=bbf97f1 arch=linux-rhel8-icelake
[+]  2g5h6yy      ^[email protected]%[email protected] build_system=generic arch=linux-rhel8-icelake
[e]  yj4mtde      ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  y5sb3jt      ^[email protected]%[email protected]~guile build_system=generic arch=linux-rhel8-icelake
[+]  au7bxau      ^[email protected]%[email protected]+cxx build_system=autotools libs=shared,static arch=linux-rhel8-icelake
[+]  rrdyhek          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  xfkt3wc          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  cwqvmxg          ^[email protected]%[email protected]+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-rhel8-icelake
[+]  apuwfbi      ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  sjoiy3f          ^[email protected]%[email protected] build_system=autotools patches=440b954 arch=linux-rhel8-icelake
[+]  ui5smbf      ^[email protected]%[email protected] build_system=autotools libs=shared,static arch=linux-rhel8-icelake
[+]  r76hjob      ^[email protected]%[email protected] build_system=autotools libs=shared,static arch=linux-rhel8-icelake
[+]  4pzwycw          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  jvjqggi      ^[email protected]%[email protected]+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-icelake
[+]  r7bjlot          ^[email protected]%[email protected]+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel8-icelake
[+]  n7zb7ba          ^[email protected]%[email protected]~debug~pic+shared build_system=generic arch=linux-rhel8-icelake
[+]  idaa27a          ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  vvdw2w3      ^[email protected]%[email protected] build_system=autotools arch=linux-rhel8-icelake
[+]  7npr2tm          ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-rhel8-icelake
[+]  jbuhc2e              ^[email protected]%[email protected]+pic~python+shared build_system=autotools arch=linux-rhel8-icelake
[+]  pv76hif              ^[email protected]%[email protected] build_system=autotools zip=pigz arch=linux-rhel8-icelake
[+]  dgohxnz                  ^[email protected]%[email protected] build_system=makefile arch=linux-rhel8-icelake
[+]  utry6zg              ^[email protected]%[email protected]~pic build_system=autotools libs=shared,static arch=linux-rhel8-icelake
[+]  2jjqduy          ^[email protected]%[email protected]~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-rhel8-icelake
[+]  sviklff      ^[email protected]%[email protected]+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-rhel8-icelake
[+]  e2c3etw      ^[email protected]%[email protected]+programs build_system=makefile compression=none libs=shared,static arch=linux-rhel8-icelake

Error message

Error message
$ spack install [email protected]%[email protected]
[+] /usr (external glibc-2.28-u4g25evn3j442btpvqupnzwgdqlwk72i)
[+] /usr (external glibc-2.28-yj4mtdeqs2zkuvd4uloopgy5yf3qftys)
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gcc-runtime-8.5.0-v7trb3vg5ntrmpw4agvnqpzkemiqfc7z
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-14.2.0/gcc-runtime-14.2.0-2g5h6yyu23p7deua4r3u7khdl2wfuvmu
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/xz-5.4.6-utry6zgo5w3cclvmecksgv5zm5vbhs5o
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/diffutils-3.10-qmneyhhn6ugw2k7o4zxh7ldurllmcak7
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gmake-4.4.1-y5sb3jtjhhlianvudxdan5aesm7krdt4
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/findutils-4.9.0-sjoiy3fz4n2t4vd5wvpamrtnxjkein7h
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/zlib-ng-2.2.1-sviklffckvu2sww43aydlvzl35u5s5io
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/ncurses-6.5-2jjqduy2dcssvjs6yz2qg32lzztj6lnx
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/bzip2-1.0.8-n7zb7ba7vipm652mw7cuk5f4chdmyfvh
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gmp-6.3.0-au7bxausb4krpawzt45b7rr3a6bvwbkv
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/zstd-1.5.6-e2c3etwkyyparq57kykuvyhphkuq2w5j
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/libsigsegv-2.14-dbcxjkvzqgmw6z5idvaqvq7xggk4m5rm
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/berkeley-db-18.1.40-r7bjlotyi7jwtyhoa4mptcjxd67qipva
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/libtool-2.4.7-apuwfbiopmkuij7gkwilx7cxkidrycxy
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/pigz-2.8-dgohxnzbmwhacpe27likwcnxqgnexnrh
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/libxml2-2.13.4-jbuhc2e3urx7jt63uda3ngyyq6hgv4dj
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/readline-8.2-7b6t4n67qoommr3chycgfyyq3dgd5qfs
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/binutils-2.43.1-synoepmpmgmgmhvff6x55u46i73gz5a6
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/mpfr-4.2.1-r76hjobbgjjx335izzmezrfynrsnl4ed
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/tar-1.34-pv76hif3nwvgrbacgy6c24ovtmu2im5i
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gdbm-1.23-idaa27ackyrhqjh5jzrdawuhgvpeoa35
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/mpc-1.3.1-ui5smbf2gtrypck4meac6wil66pyjbly
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gawk-5.3.1-tg5jpn2mi7q7gcmo25i23ctrybluxt4r
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gettext-0.22.5-7npr2tmlbchr44pqjgbti7mbwxsio3ui
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/perl-5.40.0-jvjqggikc5zllky5ooiz655w6cbyhxuw
[+] /home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/texinfo-7.1-vvdw2w3xyzu4bx3q5gwazhry7fvj7p62
==> Installing gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s [29/29]
==> No binary for gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s found: installing from source
==> Using cached archive: /home/sw/spack/spack-v0.23.0/var/spack/cache/_source-cache/archive/3f/3f2db222b007e8a4a23cd5ba56726ef08e8b1f1eb2055ee72c1402cea73a8dd9.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:
    '/home/sw/spack/spack-v0.23.0/opt/spack/linux-rhel8-icelake/gcc-8.5.0/gmake-4.4.1-y5sb3jtjhhlianvudxdan5aesm7krdt4/bin/make' '-j16' 'V=1'

8 errors found in build log:
     1735    /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=loca
             l -pedantic  -D_GNU_SOURCE -fcf-protection /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/sort.c -o sort.o
     1736    if [ x"" != x ]; then \
     1737      /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=lo
             cal -pedantic  -D_GNU_SOURCE -fcf-protection   /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/spaces.c -o noasan/spaces.o; \
     1738    else true; fi
     1739    /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=loca
             l -pedantic  -D_GNU_SOURCE -fcf-protection /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/spaces.c -o spaces.o
     1740    checking whether strtoull is declared... /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/simple-object-mach-o.c: In function 'simple_object_mach_o_write_segment':
  >> 1741    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/simple-object-mach-o.c:1231:17: error: passing argument 1 of 'set_32' from incompatible pointer type [-Wincompatible-pointer-types]
     1742     1231 |         set_32 (&index[i], index[i]);
     1743          |                 ^~~~~~~~~
     1744          |                 |
     1745          |                 unsigned int *
     1746    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/simple-object-mach-o.c:1231:17: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
     1747    if [ x"" != x ]; then \
     1748      /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=lo
             cal -pedantic  -D_GNU_SOURCE -fcf-protection  /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/splay-tree.c -o pic/splay-tree.o; \
     1749    else true; fi
     1750    if [ x"" != x ]; then \
     1751      /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=lo
             cal -pedantic  -D_GNU_SOURCE -fcf-protection   /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/splay-tree.c -o noasan/splay-tree.o; \
     1752    else true; fi
     1753    /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=loca
             l -pedantic  -D_GNU_SOURCE -fcf-protection /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/splay-tree.c -o splay-tree.o
  >> 1754    make[3]: *** [Makefile:1308: simple-object-mach-o.o] Error 1
     1755    make[3]: *** Waiting for unfinished jobs....
     1756    yes
     1757    checking whether strverscmp is declared... yes
     1758    checking whether strnlen is declared... yes
     1759    checking whether canonicalize_file_name must be declared... no
     1760    checking for stdlib.h... (cached) yes

     ...

     3015     1949 |     GET_BUFFER_SPACE (1);                                               \
     3016          |     ^~~~~~~~~~~~~~~~
     3017    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:3123:13: note: in expansion of macro 'BUF_PUSH'
     3018     3123 |             BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
     3019          |             ^~~~~~~~
     3020    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/simple-object-mach-o.c: In function 'simple_object_mach_o_write_segment':
  >> 3021    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/simple-object-mach-o.c:1231:17: error: passing argument 1 of 'set_32' from incompatible pointer type [-Wincompatible-pointer-types]
     3022     1231 |         set_32 (&index[i], index[i]);
     3023          |                 ^~~~~~~~~
     3024          |                 |
     3025          |                 unsigned int *
     3026    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/simple-object-mach-o.c:1231:17: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
     3027    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:2007:25: note: call to 'realloc' here

     ...

     3048    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:1966:5: note: in expansion of macro 'GET_BUFFER_SPACE'
     3049     1966 |     GET_BUFFER_SPACE (3);                                               \
     3050          |     ^~~~~~~~~~~~~~~~
     3051    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:3689:19: note: in expansion of macro 'BUF_PUSH_3'
     3052     3689 |                   BUF_PUSH_3 (start_memory, regnum, 0);
     3053          |                   ^~~~~~~~~~
  >> 3054    make[3]: *** [Makefile:1306: simple-object-mach-o.o] Error 1
     3055    make[3]: *** Waiting for unfinished jobs....
     3056    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:2007:25: note: call to 'realloc' here
     3057     2007 | #   define REALLOC(p,s) realloc ((p), (s))
     3058          |                         ^~~~~~~~~~~~~~~~~~
     3059    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:2079:32: note: in expansion of macro 'REALLOC'
     3060     2079 |     bufp->buffer = (UCHAR_T *) REALLOC (COMPILED_BUFFER_VAR,            \

     ...

     3528    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:1949:5: note: in expansion of macro 'GET_BUFFER_SPACE'
     3529     1949 |     GET_BUFFER_SPACE (1);                                               \
     3530          |     ^~~~~~~~~~~~~~~~
     3531    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:4157:5: note: in expansion of macro 'BUF_PUSH'
     3532     4157 |     BUF_PUSH (succeed);
     3533          |     ^~~~~~~~
  >> 3534    make[2]: *** [Makefile:2816: all-build-libiberty] Error 2
     3535    make[2]: *** Waiting for unfinished jobs....
     3536    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:2007:25: note: call to 'realloc' here
     3537     2007 | #   define REALLOC(p,s) realloc ((p), (s))
     3538          |                         ^~~~~~~~~~~~~~~~~~
     3539    /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/libiberty/regex.c:2079:32: note: in expansion of macro 'REALLOC'
     3540     2079 |     bufp->buffer = (UCHAR_T *) REALLOC (COMPILED_BUFFER_VAR,            \

     ...

     4311    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -Wwrite-strings... yes
     4312    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -Wmissing-format-attribute... yes
     4313    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -Wstrict-prototypes... yes
     4314    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -Wmissing-prototypes... yes
     4315    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -Wold-style-definition... yes
     4316    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -Wc++-compat... make[3]: Leaving directory '/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/spack-build/libiberty'
  >> 4317    make[2]: *** [Makefile:12257: all-stage1-libiberty] Error 2
     4318    yes
     4319    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -pedantic -Wlong-long... yes
     4320    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -fno-exceptions... yes
     4321    checking whether /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/gcc supports -fno-rtti... yes
     4322    checking dependency style of /home/sw/spack/spack-v0.23.0/lib/spack/env/gcc/g++ -std=c++11... gcc3
     4323    checking whether time.h and sys/time.h may both be included... yes

     ...

     4409    configure: creating ./config.status
     4410    config.status: creating Makefile
     4411    config.status: creating config.h
     4412    config.status: executing depdir commands
     4413    mkdir -p -- .deps
     4414    make[2]: Leaving directory '/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/spack-build'
  >> 4415    make[1]: *** [Makefile:24642: stage1-bubble] Error 2
     4416    make[1]: Leaving directory '/tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-src/spack-build'
  >> 4417    make: *** [Makefile:1014: all] Error 2

See build log for details:
  /tmp/act/spack-stage/spack-stage-gcc-11.4.0-s4cbaf3gvcwdkbof4m3m33wjy4blcc4s/spack-build-out.txt

Information on your system

$ spack debug report
* **Spack:** 0.23.0 (c6d4037758140fe15913c29e80cd1547f388ae51)
* **Python:** 3.6.8
* **Platform:** linux-rhel8-icelake
* ```

### Additional information

@alalazo  @michaelkuhn 

Funny that a newer gcc cannot build anymore an older one (even though the reverse would have been more serious). 

The quick and dirty solution would be to introduce some rules preventing Spack from even trying and be done with it.

The "right" way would be to figure out what it is and add either compiler flags or patch to allow such a compilation to successfully complete.



### General information

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions