Date: Sun, 17 Mar 2019 19:10:39 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 236581] /usr/lib/libomp.so underlinking Message-ID: <bug-236581-29464-O7rtrmp1lc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-236581-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-236581-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236581 Dimitry Andric <dim@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #5 from Dimitry Andric <dim@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. >=20 > $ cc -fopenmp -fuse-ld=3Dbfd omp_hello.c > /usr/local/bin/ld.bfd: /usr/lib/libomp.so: undefined reference to `scalbn= l' > /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 `scalbn= f' > /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 invocati= on) Hm, this is getting annoying. :-) It looks like these are transitively pul= led 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 pul= l in -lm. Or fold libm into libc, like we should also do with libthr. ;-) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236581-29464-O7rtrmp1lc>