https://bugs.llvm.org/show_bug.cgi?id=44842

            Bug ID: 44842
           Summary: lld fails to link GNU indirect functions
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: jeanmichael.celer...@gmail.com
                CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org

Hello,

I have an issue linking fftw3 (I'm on up-to-date ArchLinux) with lld.

Repro : 

    $ echo 'int main() { }' > foo.cpp
    $ clang++ foo.cpp -lfftw3 -fuse-ld=lld
    ld.lld: error:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib64/libfftw3.so:
undefined reference to __log_finite

(same with g++ ; it works fine with BFD and gold).

The symbol exists in libm :

    $ nm -D /usr/lib/libm.so.6 | grep __log_finite
    000000000002dfa0 i __log_finite

And the fftw lib of course links against libm.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to