AnsweredAssumed Answered

linker error in AOCC-2.1.0 because of stime removal in glibc-2.31

Question asked by gmichelitsch on Jun 16, 2020
Latest reply on Jun 20, 2020 by gmichelitsch

Dear community,

 

I just installed the aocc-compiler and it compiles my code but at the linker stage exits with the following error:

ld.lld: error: /opt/aocc/bin/../lib/libflang.so: undefined reference to stime
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

From what I gather this happens because of the deprecation and removal of stime in glibc-2.31 and has been fixed upstream in flang [0]. Is there a workaround or do we know when an updated version of the compiler will be released?

 

Thanks in advance,

Georg

 

[0] Replaced deprecated function stime which is removed in glibc 2.31 by arjunsuresh1987 · Pull Request #886 · flang-compile… 

Outcomes