https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117151
--- Comment #3 from vincenzo Innocente <vincenzo.innocente at cern dot ch> --- this is surely affecting https://github.com/llvm/llvm-project/blob/4275a731249c5becec666f47d26254695fd7f468/clang/lib/Headers/cuda_wrappers/complex#L70 I get things like lld: error: undefined hidden symbol: cacosh >>> referenced by >>> /tmp/innocent/oneComplex_hip-gfx900-400399.o:(std::__complex_acosh(double >>> complex)) >>> referenced by >>> /tmp/innocent/oneComplex_hip-gfx900-400399.o:(std::__complex_acosh(double >>> complex)) clang++: error: amdgcn-link command failed with exit code 1 (use -v to see invocation) while does not complain for sin, sqrt,log etc If I add to that file #ifdef FIXC99 #warning fixing C99_ARC #pragma push_macro("_GLIBCXX_USE_C99_COMPLEX_ARC") #define _GLIBCXX_USE_C99_COMPLEX_ARC 0 #endif it compiles and run