https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236581

Dimitry Andric <d...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |d...@freebsd.org

--- Comment #5 from Dimitry Andric <d...@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@plt>
   98cba:       db 3c 24                fstpt  (%rsp)
   98cbd:       e8 8e 14 00 00          callq  9a150 <logbl@plt>
[...]
   98d10:       e8 4b 14 00 00          callq  9a160 <scalbnl@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.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to