Date: Sun, 06 Nov 2016 02:07:23 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214258] devel/openmp: spurious libm dependency Message-ID: <bug-214258-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214258 Bug ID: 214258 Summary: devel/openmp: spurious libm dependency Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: needs-patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: bapt@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: freebsd-toolchain@FreeBSD.org Flags: maintainer-feedback?(bapt@FreeBSD.org) Assignee: bapt@FreeBSD.org LLVM openmp picks up math symbols despite not using them in any of its obje= ct files. $ cd /usr/ports/devel/openmp $ make install $ cd $(make -V WRKSRC) $ fgrep -lr scalbnl . ./runtime/src/libgomp.so ./runtime/src/libiomp5.so ./runtime/src/libomp.so ./runtime/exports/lin_32e/lib/libomp.so $ echo 'int main() { }' | cc ./runtime/src/libomp.so -xc - ./runtime/src/libomp.so: undefined reference to `scalbnl' ./runtime/src/libomp.so: undefined reference to `fmaxl' ./runtime/src/libomp.so: undefined reference to `logbl' ./runtime/src/libomp.so: undefined reference to `scalbnf' ./runtime/src/libomp.so: undefined reference to `logb' ./runtime/src/libomp.so: undefined reference to `logbf' ./runtime/src/libomp.so: undefined reference to `scalbn' cc: error: linker command failed with exit code 1 (use -v to see invocation) $ echo 'int main() { }' | cc -fopenmp -L/usr/local/lib -xc - /usr/local/lib/libomp.so: undefined reference to `scalbnl' /usr/local/lib/libomp.so: undefined reference to `fmaxl' /usr/local/lib/libomp.so: undefined reference to `logbl' /usr/local/lib/libomp.so: undefined reference to `scalbnf' /usr/local/lib/libomp.so: undefined reference to `logb' /usr/local/lib/libomp.so: undefined reference to `logbf' /usr/local/lib/libomp.so: undefined reference to `scalbn' cc: error: linker command failed with exit code 1 (use -v to see invocation) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214258-29464>