cancel
Showing results for 
Search instead for 
Did you mean: 

Server Gurus Discussions

bartwillems
Journeyman III

LLVMgold.so missing in AOCC 1.2

Hello,

The AOC 1.2 C compiler does not seem to have the LLVMgold.so library included. Using the "-flto" clang option leads to

/bin/ld: /shared/AOCC-1.2-Compiler/bin/../lib/LLVMgold.so: error loading plugin: /shared/AOCC-1.2-Compiler/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory

The LLVMgold.so library is not available anywhere in the AOC 1.2 install. Any suggestions?

Thanks,

Bart

0 Likes
1 Reply
nagajyot
Staff

Hi Bart,

Thanks for using the AOCC-1.2 compiler.

The AOCC-1.2 compiler comes packaged with 'lld' as the linker instead of the Gold linker. You can get the compiler driver 'clang' to use lld by using the option '-fuse-ld=lld', after making sure that the $PATH environment variable contains path to the AOCC-1.2 package (you may do this by running the setenv_AOCC.sh script).

Please try this and get back if you have any difficulty.

Thanks,

Nagajyothi

0 Likes