-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation issue: gcc@4.8.5 #15229
Comments
Step 0I tested in a fresh * **Spack:** 0.16.1-2184-6c632dad71
* **Python:** 3.8.5
* **Platform:** linux-ubuntu20.04-skylake
* **Concretizer:** original Step 1
Step 2
29738 echo INHIBIT_LIBC_CFLAGS = '' >> tmp-libgcc.mvars
>> 29739 xgcc: error trying to exec 'cc1': execvp: No such file or directory
29740 echo TARGET_SYSTEM_ROOT = '' >> tmp-libgcc.mvars Here is the full log: Note This patch is already in Step 3I tried to make it with a single thread ( 31845 checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
31846 checking for gawk... mawk
31847 checking whether make sets $(MAKE)... yes
31848 checking whether to enable maintainer-specific portions of Makefiles... no
31849 checking for x86_64-unknown-linux-gnu-gcc... /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2
nbn6/spack-src/spack-build/./gcc/xgcc -B/tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/
spack-src/spack-build/./gcc/ -B/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmt
iyft2nbn6/x86_64-unknown-linux-gnu/bin/ -B/spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/gcc-4.8.5-4uzyfcq4bzbt
3txtvwqflmtiyft2nbn6/x86_64-unknown-linux-gnu/lib/ -isystem /spack/opt/spack/linux-ubuntu20.04-skylake/gcc-9.3.0/gcc-
4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/x86_64-unknown-linux-gnu/include -isystem /spack/opt/spack/linux-ubuntu20.04-s
kylake/gcc-9.3.0/gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/x86_64-unknown-linux-gnu/sys-include
31850 checking for C compiler default output file name...
>> 31851 configure: error: in `/tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/spack-bu
ild/x86_64-unknown-linux-gnu/libsanitizer':
>> 31852 configure: error: C compiler cannot create executables
31853 See `config.log' for more details.
31854 make[2]: *** [Makefile:13896: configure-stage1-target-libsanitizer] Error 77
31855 make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/sp
ack-build'
31856 make[1]: *** [Makefile:19785: stage1-bubble] Error 2
31857 make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/sp
ack-build'
31858 make: *** [Makefile:886: all] Error 2 Here is the /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/spack-build/./gcc/cc1: /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/spack-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/spack-build/./gcc/cc1) which is awaited as strings /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/spack-build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
CXXABI_1.3
CXXABI_1.3.2
CXXABI_1.3.6
CXXABI_1.3.1
CXXABI_1.3.5
CXXABI_1.3.4
CXXABI_TM_1
CXXABI_1.3.7
CXXABI_1.3.3 this ABI is indeed not present. Step 4So I've tried preloading as suggested in https://hpc-discourse.usc.edu/t/usr-lib64-libstdc-so-6-too-old/171/4: root@93c78c74120b:/spack# LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./bin/spack install -v -j1 gcc@4.8.5 but it failed with 32091 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/libsanitizer/asan/asan_linux.cc: In function 'bool __asan::AsanInterceptsSignal(int)':
>> 32092 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/libsanitizer/asan/asan_linux.cc:95:20: error: 'SIGSEGV' was not declared in this scope
32093 return signum == SIGSEGV && flags()->handle_segv;
32094 ^
32095 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-4uzyfcq4bzbt3txtvwqflmtiyft2nbn6/spack-src/libsanitizer/asan/asan_linux.cc:96:1: warning: control reaches end of non-void function [-Wreturn-typ
e]
32096 }
32097 ^
32098 make[4]: *** [Makefile:441: asan_linux.lo] Error 1 so I'll try the patch suggested in https://patchwork.ozlabs.org/project/gcc/patch/6824253.3U2boEivI2@devpool21/. Note In fact this patch is already in Step 5I applied the patch https://patchwork.ozlabs.org/project/gcc/patch/6824253.3U2boEivI2@devpool21/ and again it failed 32171 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-n4s2pbg3distxn6uzewvzqf3eck7x2su/spack-src/libsanitizer/tsan/tsan_platform_linux.cc: In function 'int __tsan::ExtractResolvFDs(void*, int*, int)
':
>> 32172 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-n4s2pbg3distxn6uzewvzqf3eck7x2su/spack-src/libsanitizer/tsan/tsan_platform_linux.cc:295:16: error: 'statp' was not declared in this scope
32173 __res_state *statp = (__res_state*)state;
32174 ^
>> 32175 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-n4s2pbg3distxn6uzewvzqf3eck7x2su/spack-src/libsanitizer/tsan/tsan_platform_linux.cc:295:37: error: expected primary-expression before ')' token
32176 __res_state *statp = (__res_state*)state;
32177 ^
>> 32178 /tmp/root/spack-stage/spack-stage-gcc-4.8.5-n4s2pbg3distxn6uzewvzqf3eck7x2su/spack-src/libsanitizer/tsan/tsan_platform_linux.cc:295:38: error: expected ';' before 'state'
32179 __res_state *statp = (__res_state*)state;
32180 ^
32181 make[4]: *** [Makefile:475: tsan_platform_linux.lo] Error 1 Successful stepIn the end, starting from scratch:
patch('ucontext_t-4.8.patch',when='@4.8.5 os=ubuntu20.04')
patch('signal.patch',when='@4.8.5 os=ubuntu20.04')
patch('stack_t-4.8.patch', when='@4.8 os=ubuntu20.04')
It works only with the preload: LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 spack install gcc@4.8.5 |
I have successfully installed gcc@develop, gcc@9.2.0 and gcc@9.1.0. gcc@4.8.5 fails.
A similar issue was reported against gcc here with fixes backported to gcc-7.1.1, gcc-6.5.0 and gcc-5.5.0.
A similar Issue also reported here: stackoverflow with the following diagnosis from Johnathan Wakely (not quite on point):
The version of xgcc used above is, of course, 4.8.5. However...
I'm guessing that libc-6.0 is too new to build the ancient gcc-4.8.5, but I'm new enough to spack that I don't know how to go about forcing and older version of the library to be used instead.
A few other notes:
packages.yaml
compilers.yaml
are both unchanged from stock.The text was updated successfully, but these errors were encountered: