1 Reply Latest reply on Jun 29, 2018 9:32 AM by nagajyot

    LLVMgold.so missing in AOCC 1.2




      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?




        • Re: LLVMgold.so missing in AOCC 1.2

          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.