Date: Wed, 15 Mar 2017 09:32:27 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214258] devel/openmp: spurious libm dependency Message-ID: <bug-214258-29464-kLgRcrdAFo@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-214258-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-214258-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=3D214258 --- Comment #3 from Jan Beich (mail not working) <jbeich@FreeBSD.org> --- To avoid maintenance burden it'd be nice if we fix base system regression before FreeBSD 11.1-RELEASE. devel/openmp isn't the only -lomp provider. $ fetch https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c $ pkg install llvm37 llvm38 llvm39 llvm40 llvm-devel $ find -s /usr/local -name libomp.so /usr/local/lib/libomp.so /usr/local/llvm-devel/lib/libomp.so /usr/local/llvm37/lib/libomp.so /usr/local/llvm38/lib/libomp.so /usr/local/llvm39/lib/libomp.so /usr/local/llvm40/lib/libomp.so $ clang37 -fopenmp omp_hello.c /usr/bin/ld: cannot find -lomp clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation) $ clang37 -fopenmp omp_hello.c $(llvm-config37 --ldflags) /usr/local/llvm37/lib/libomp.so: undefined reference to `scalbnl' /usr/local/llvm37/lib/libomp.so: undefined reference to `fmaxl' /usr/local/llvm37/lib/libomp.so: undefined reference to `logbl' /usr/local/llvm37/lib/libomp.so: undefined reference to `scalbnf' /usr/local/llvm37/lib/libomp.so: undefined reference to `logb' /usr/local/llvm37/lib/libomp.so: undefined reference to `logbf' /usr/local/llvm37/lib/libomp.so: undefined reference to `scalbn' clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation) $ clang38 -fopenmp omp_hello.c /usr/local/llvm38/lib/libomp.so: undefined reference to `scalbnl' /usr/local/llvm38/lib/libomp.so: undefined reference to `fmaxl' /usr/local/llvm38/lib/libomp.so: undefined reference to `logbl' /usr/local/llvm38/lib/libomp.so: undefined reference to `scalbnf' /usr/local/llvm38/lib/libomp.so: undefined reference to `logb' /usr/local/llvm38/lib/libomp.so: undefined reference to `logbf' /usr/local/llvm38/lib/libomp.so: undefined reference to `scalbn' clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) $ clang39 -fopenmp omp_hello.c /usr/local/llvm39/lib/libomp.so: undefined reference to `scalbnl' /usr/local/llvm39/lib/libomp.so: undefined reference to `fmaxl' /usr/local/llvm39/lib/libomp.so: undefined reference to `logbl' /usr/local/llvm39/lib/libomp.so: undefined reference to `scalbnf' /usr/local/llvm39/lib/libomp.so: undefined reference to `logb' /usr/local/llvm39/lib/libomp.so: undefined reference to `logbf' /usr/local/llvm39/lib/libomp.so: undefined reference to `scalbn' clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation) $ clang40 -fopenmp omp_hello.c /usr/local/llvm40/lib/libomp.so: undefined reference to `scalbnl' /usr/local/llvm40/lib/libomp.so: undefined reference to `fmaxl' /usr/local/llvm40/lib/libomp.so: undefined reference to `logbl' /usr/local/llvm40/lib/libomp.so: undefined reference to `scalbnf' /usr/local/llvm40/lib/libomp.so: undefined reference to `logb' /usr/local/llvm40/lib/libomp.so: undefined reference to `logbf' /usr/local/llvm40/lib/libomp.so: undefined reference to `scalbn' clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation) $ clang-devel -fopenmp omp_hello.c /usr/bin/ld: cannot find -lomp clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) $ clang-devel -fopenmp omp_hello.c $(llvm-config-devel --ldflags) /usr/local/llvm-devel/lib/libomp.so: undefined reference to `scalbnl' /usr/local/llvm-devel/lib/libomp.so: undefined reference to `fmaxl' /usr/local/llvm-devel/lib/libomp.so: undefined reference to `logbl' /usr/local/llvm-devel/lib/libomp.so: undefined reference to `scalbnf' /usr/local/llvm-devel/lib/libomp.so: undefined reference to `logb' /usr/local/llvm-devel/lib/libomp.so: undefined reference to `logbf' /usr/local/llvm-devel/lib/libomp.so: undefined reference to `scalbn' clang-5.0: 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. 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-214258-29464-kLgRcrdAFo>