[cfarm-users] gcc112/ppc64-le, and undefined reference to __cxa_thread_atexit_impl

Jonathan Wakely jwakely.gcc at gmail.com
Mon Feb 19 21:25:36 CET 2018


On 19 February 2018 at 20:17, Andreas Schwab via cfarm-users
<cfarm-users at lists.tetaneutral.net> wrote:
> On Feb 19 2018, Jeffrey Walton via cfarm-users <cfarm-users at lists.tetaneutral.net> wrote:
>
>> Compile appears OK but link fails:
>>
>> /opt/cfarm/gcc7rc2/bin/g++ -o cryptest.exe -DNDEBUG -g2 -O3 -fPIC
>> -pthread -pipe adhoc.o test.o bench1.o bench2.o validat0.o validat1.o
>> validat2.o validat3.o validat4.o datatest.o regtest1.o regtest2.o
>> regtest3.o dlltest.o fipsalgt.o ./libcryptopp.a
>> /home/guerby/opt/cfarm/gcc7rc2/bin/../lib/gcc/powerpc64le-unknown-linux-gnu/7.0.1/../../../../lib64/libstdc++.so:
>> undefined reference to `__cxa_thread_atexit_impl at GLIBC_2.18'
>
> gcc112 has glibc 2.17 installed, but this compiler was built against
> glibc 2.18 or newer.  That cannot work.

Presumably that copy of GCC was built when the machine was running
Fedora, before it was reinstalled as CentOS. You need to use a GCC
built for the current OS.


More information about the cfarm-users mailing list