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

Jeffrey Walton noloader at gmail.com
Mon Feb 19 20:49:47 CET 2018


Hi Everyone,

We are trying to reproduce an issue reported on Fedora 28 ppc64-le. I
don't know the version of GCC on Fedora 28 at the moment. We are
working on gcc112, which is also ppc64-le.

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'
collect2: error: ld returned 1 exit status
make: *** [cryptest.exe] Error 1

I'm seeing similar issues when searching, but I am not clear on the
fix. For example, similar issue:
https://github.com/rust-lang/rust/issues/36826 . Suggested fix in the
context of Clang: https://stackoverflow.com/a/30437761/608639

My question to the PPC64 gurus is, how should we handle the issue?

Thanks in advance.


More information about the cfarm-users mailing list