Skip to content

Installation issue: gcc@5.5.0 with system gcc@13.3 (ubuntu 24.04) #2830

@skwde

Description

@skwde

Steps to reproduce the issue

$ spack -e compiler spec -l gcc@5.5.0+binutils
 -   t45r7s3  gcc@5.5.0+binutils+bootstrap~graphite~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' patches:=1ee899a,4661e64,51aebe8,a9762dc,d4919d6 platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  zafx4rp      ^binutils@2.45~debuginfod+gas~gold~gprofng~headers~interwork+ld~libiberty~lto~nls~pgo+plugins build_system=autotools compress_debug_sections=zlib libs:=shared,static platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  3jrskcp          ^pkgconf@2.5.1 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  hx6dpxu          ^zlib-ng@2.2.4+compat+new_strategies+opt+pic+shared build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  2rhoia2          ^zstd@1.5.7+programs build_system=makefile compression:=none libs:=shared,static platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  e7yctbq      ^compiler-wrapper@1.0 build_system=generic platform=linux os=ubuntu24.04 target=x86_64_v4 
[+]  zzplg7x      ^diffutils@3.12 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  x3xsdxb          ^libiconv@1.18 build_system=autotools libs:=shared,static platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  qz6twzh      ^gawk@5.3.1~nls build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  klx4cqk          ^libsigsegv@2.14 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  4atrhzg          ^readline@8.3 build_system=autotools patches:=21f0a03 platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[e]  6wejs42      ^gcc@13.3.0~binutils+bootstrap~graphite~mold~nvptx~piclibs~profiled~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++' platform=linux os=ubuntu24.04 target=x86_64 
[+]  zerenon      ^gcc-runtime@13.3.0 build_system=generic platform=linux os=ubuntu24.04 target=x86_64_v4 
[e]  thy5vqo      ^glibc@2.39 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64 
[+]  qivfefy      ^gmake@4.4.1~guile build_system=generic platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  jmzhwdy      ^gmp@6.3.0+cxx build_system=autotools libs:=shared,static platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  p2uewl7          ^autoconf@2.72 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 
[+]  nddxnmn          ^automake@1.16.5 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  d3k5kkq          ^m4@1.4.20+sigsegv build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  axtnpv4      ^libtool@2.4.7 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  sztrr2q          ^findutils@4.10.0 build_system=autotools patches:=440b954 platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  wwipq5n      ^mpc@1.1.0 build_system=autotools libs:=shared,static platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  655uphs      ^mpfr@3.1.6 build_system=autotools libs:=shared,static patches:=7a6dd71 platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  j6icibr      ^perl@5.42.0+cpanm+opcode+open+shared+threads build_system=generic platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  2cvzsfk          ^berkeley-db@18.1.40+cxx~docs+stl build_system=autotools patches:=26090f4,b231fcc platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  qpsuaz4          ^bzip2@1.0.8~debug~pic+shared build_system=generic platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  bvryaez          ^gdbm@1.25 build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  5zjb7ub      ^texinfo@7.2~xs build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  icktzyi          ^gettext@0.23.1+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0
[+]  d4yvtjv              ^libxml2@2.13.5~http+pic~python+shared build_system=autotools platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  fw6fmdu              ^tar@1.35 build_system=autotools zip=pigz platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  puze2lu                  ^pigz@2.8 build_system=makefile platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  twdxgpw              ^xz@5.6.3~pic build_system=autotools libs:=shared,static platform=linux os=ubuntu24.04 target=x86_64_v4 %c=gcc@13.3.0
[+]  ei2vba2          ^ncurses@6.5-20250705~symlinks+termlib abi=none build_system=autotools patches:=7a351bc platform=linux os=ubuntu24.04 target=x86_64_v4 %c,cxx=gcc@13.3.0

Error message

Error message
==> Error: ProcessError: Command exited with status 2:
    '/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/gmake-4.4.1-qivfefyigbosnp7re57nlivbll2ufgk7/bin/make' '-j12' 'V=1'

5 errors found in build log:
     83177    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/recog.h: In member function '
              rtx_def* insn_gen_fn::operator()(rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx, rtx) const':
     83178    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/recog.h:317:170: warning: cas
              t between incompatible function types from 'insn_gen_fn::stored_funcptr' {aka 'rtx_def* (*)()'} to 'insn_gen_fn::f16' {aka 'rtx_def* (*)(rtx_d
              ef*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def
              *, rtx_def*)'} [-Wcast-function-type]
     83179      317 |   rtx operator () (rtx a0, rtx a1, rtx a2, rtx a3, rtx a4, rtx a5, rtx a6, rtx a7, rtx a8, rtx a9, rtx a10, rtx a11, rtx a12, rtx a13,
               rtx a14, rtx a15) const { return ((f16)func) (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15); }
     83180          |                                                                                                                                       
                                                 ^~~~~~~~~
     83181    /data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/compiler-wrapper-1.0-e7yctbqvme4oad2xnt5gynonq5omksj3/libexec/spack/gcc/g++ -c   -g -O
              1 -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing
              -format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. 
              -I. -I/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc -I/data/test-uss/2025/.
              cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/. -I/data/test-uss/2025/.cache/spack/stage/root/sp
              ack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../include -I/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.
              5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libcpp/include -I/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/gmp-6.3.0-jmzhw
              dywvzzml5bwoqouoadkb6kxvt7s/include -I/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/mpfr-3.1.6-655uphst6zrjff3fmenx2euxhmibdndz/incl
              ude -I/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/mpc-1.1.0-wwipq5noifcd4r6whqtgmjhz564ukz3c/include  -I/data/test-uss/2025/.cache
              /spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libdecnumber -I/data/test-uss/2025/.cache/spack/stag
              e/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libdecnumber/bid -I../libdecnumber -I/data/test-uss/2025/.cache
              /spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libbacktrace   -o rtl-error.o -MT rtl-error.o -MMD -
              MP -MF ./.deps/rtl-error.TPo /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/
              rtl-error.c
     83182    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/reload1.c: In function 'void 
              init_reload()':
  >> 83183    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/reload1.c:115:24: error: use 
              of an operand of type 'bool' in 'operator++' is forbidden in C++17
     83184      115 |   (this_target_reload->x_spill_indirect_levels)
     83185          |   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
     83186    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/reload1.c:470:7: note: in exp
              ansion of macro 'spill_indirect_levels'
     83187      470 |       spill_indirect_levels++;
     83188          |       ^~~~~~~~~~~~~~~~~~~~~
     83189    /data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/compiler-wrapper-1.0-e7yctbqvme4oad2xnt5gynonq5omksj3/libexec/spack/gcc/g++ -c   -g -O
              1 -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing
              -format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. 
              -I. -I/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc -I/data/test-uss/2025/.
              cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/. -I/data/test-uss/2025/.cache/spack/stage/root/sp
              ack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../include -I/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.
              5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libcpp/include -I/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/gmp-6.3.0-jmzhw
              dywvzzml5bwoqouoadkb6kxvt7s/include -I/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/mpfr-3.1.6-655uphst6zrjff3fmenx2euxhmibdndz/incl
              ude -I/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/mpc-1.1.0-wwipq5noifcd4r6whqtgmjhz564ukz3c/include  -I/data/test-uss/2025/.cache
              /spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libdecnumber -I/data/test-uss/2025/.cache/spack/stag
              e/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libdecnumber/bid -I../libdecnumber -I/data/test-uss/2025/.cache
              /spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/../libbacktrace   -o rtl.o -MT rtl.o -MMD -MP -MF ./.de
              ps/rtl.TPo /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/rtl.c

     ...

     83245     3089 |     case STRICT_LOW_PART:
     83246          |     ^~~~
     83247    In file included from ./tm.h:48:
     83248    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/defaults.h:126:24: warning: i
              nvalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
     83249      126 |       fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n",          \
     83250          |                        ^
  >> 83251    make[3]: *** [Makefile:1066: reload1.o] Error 1
     83252    make[3]: *** Waiting for unfinished jobs....
     83253    In file included from ./tm.h:27,
     83254                     from /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/rtlanal
              .c:24:
     83255    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/config/elfos.h:102:21: warnin
              g: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
     83256      102 |    fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
     83257          |                     ^

     ...

     83428          |       ^~
     83429    /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/gcc/rtlanal.c:3867:5: note: here
     83430     3867 |     default:
     83431          |     ^~~~~~~
     83432    rm gcc.pod
     83433    make[3]: Leaving directory '/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/spack
              -build/gcc'
  >> 83434    make[2]: *** [Makefile:4372: all-stage1-gcc] Error 2
     83435    make[2]: Leaving directory '/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/spack
              -build'
  >> 83436    make[1]: *** [Makefile:20731: stage1-bubble] Error 2
     83437    make[1]: Leaving directory '/data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-src/spack
              -build'
  >> 83438    make: *** [Makefile:903: all] Error 2

See build log for details:
  /data/test-uss/2025/.cache/spack/stage/root/spack-stage-gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2/spack-build-out.txt

==> Error: gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2: ProcessError: Command exited with status 2:
    '/data/test-uss/2025/opt/spack/opt/spack/linux-x86_64_v4/gmake-4.4.1-qivfefyigbosnp7re57nlivbll2ufgk7/bin/make' '-j12' 'V=1'
==> Error: gcc-5.5.0-t45r7s3hwxtqkwv3wfrqfynnedact5j2: Package was not installed
==> Error: Installation request failed.  Refer to reported errors for failing package(s).

Information on your system

Additional information

concretizer:
  unify: false
  reuse: false
  targets:
    granularity: generic

spack-build-out.txt
spack-build-env.txt

@alalazo @michaelkuhn

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions