[Bug 236581] /usr/lib/libomp.so underlinking
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 17 19:10:41 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236581
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dim at FreeBSD.org
--- Comment #5 from Dimitry Andric <dim at FreeBSD.org> ---
(In reply to Jan Beich from comment #4)
> (In reply to commit-hook from comment #3)
> Still no good for LLD_UNSAFE ports.
>
> $ cc -fopenmp -fuse-ld=bfd omp_hello.c
> /usr/local/bin/ld.bfd: /usr/lib/libomp.so: undefined reference to `scalbnl'
> /usr/local/bin/ld.bfd: /usr/lib/libomp.so: undefined reference to `fmaxl'
> /usr/local/bin/ld.bfd: /usr/lib/libomp.so: undefined reference to `logbl'
> /usr/local/bin/ld.bfd: /usr/lib/libomp.so: undefined reference to `scalbnf'
> /usr/local/bin/ld.bfd: /usr/lib/libomp.so: undefined reference to `scalbn'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
Hm, this is getting annoying. :-) It looks like these are transitively pulled
in via libcompiler-rt:
0000000000063b70 <__kmpc_atomic_cmplx10_div>:
[...]
63c2d: e8 4e 50 03 00 callq 98c80 <__divxc3>
[...]
0000000000098c80 <__divxc3>:
[...]
98cb5: e8 86 14 00 00 callq 9a140 <fmaxl at plt>
98cba: db 3c 24 fstpt (%rsp)
98cbd: e8 8e 14 00 00 callq 9a150 <logbl at plt>
[...]
98d10: e8 4b 14 00 00 callq 9a160 <scalbnl at plt>
At some point, we'll have to get libgcc/compiler-rt users automagically pull in
-lm. Or fold libm into libc, like we should also do with libthr. ;-)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list