[Linuxppc-users] undefined reference to __tls_get_addr_opt

Tulio Magno Quites Machado Filho tuliom at ascii.art.br
Tue Apr 2 07:06:02 AEDT 2019


Lorenzo Chelini <LCH at zurich.ibm.com> writes:

> Thanks so much for the comments. The problem was Clang that was picking up 
> the system installed GCC and not the one in the advanced toolchain.
> To address the issue I used --gcc-toolchain=/opt/at10.0 and now compiles.
> But I have still a problem while trying to execute.
>
> ./gemm: /lib64/ld64.so.2: version `GLIBC_2.22' not found (required by 
> /dataL/lch/polly/llvm_build/lib/libGPURuntime.so)
>         linux-vdso64.so.1 =>  (0x00007fff81440000)
>         libGPURuntime.so => 
> /dataL/lch/polly/llvm_build/lib/libGPURuntime.so (0x00007fff81410000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00007fff813b0000)
>         libc.so.6 => /lib64/libc.so.6 (0x00007fff811c0000)
>         /lib64/ld64.so.2 (0x00007fff81460000)

This program is still using the system loader.

You need to pass -dynamic-linker /opt/at12.0/lib64/ld64.so.2 to the linker.

-- 
Tulio Magno


More information about the Linuxppc-users mailing list