Date: Thu, 03 Dec 2020 09:29:48 +0900 From: KIRIYAMA Kazuhiko <kiri@truefc.org> To: freebsd-ports@freebsd.org Cc: kiri@truefc.org Subject: math/suitesparse failed at linking llvm Message-ID: <202012030029.0B30Tmpv052943@kx.truefc.org>
next in thread | raw e-mail | index | archive | help
Hi, list math/suitesparse failed at linking libclang_rt.profile-x86_64.a: gmake[5]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:151: CMakeFiles/mongoose_unit_test_edgesep.dir/all] Error 2 gmake[4]: *** Waiting for unfinished jobs.... [ 92%] Linking CXX executable tests/mongoose_unit_test_io /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mongoose_unit_test_io.dir/link.txt --verbose=1 /usr/bin/c++ -O3 -fwrapv -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -L/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/lib -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib --coverage -g CMakeFiles/mongoose_unit_test_io.dir/Tests/Mongoose_UnitTest_IO_exe.o -o tests/mongoose_unit_test_io lib/libmongoose_dbg.a -lsuitesparseconfig -lrt /usr/local/bin/ld: cannot find /usr/lib/clang/10.0.1/lib/freebsd/libclang_rt.profile-x86_64.a: No such file or directory c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [CMakeFiles/mongoose_unit_test_io.dir/build.make:107: tests/mongoose_unit_test_io] Error 1 gmake[5]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:205: CMakeFiles/mongoose_unit_test_io.dir/all] Error 2 [ 93%] Linking CXX executable tests/mongoose_test_memory /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mongoose_test_memory.dir/link.txt --verbose=1 /usr/bin/c++ -O3 -fwrapv -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -L/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/lib -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib --coverage -g CMakeFiles/mongoose_test_memory.dir/Tests/Mongoose_Test_Memory.o CMakeFiles/mongoose_test_memory.dir/Tests/Mongoose_Test_Memory_exe.o -o tests/mongoose_test_memory lib/libmongoose_dbg.a -lsuitesparseconfig -lrt /usr/local/bin/ld: cannot find /usr/lib/clang/10.0.1/lib/freebsd/libclang_rt.profile-x86_64.a: No such file or directory c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [CMakeFiles/mongoose_test_memory.dir/build.make:122: tests/mongoose_test_memory] Error 1 gmake[5]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:259: CMakeFiles/mongoose_test_memory.dir/all] Error 2 gmake[4]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[3]: *** [Makefile:163: all] Error 2 gmake[3]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[2]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose' gmake[2]: *** [Makefile:22: library] Error 2 gmake[1]: *** [Makefile:129: library] Error 2 gmake[1]: Leaving directory '/var/ports/work/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/math/suitesparse so I've changed to link this module with llvm BUILD_DEPENDS: --- /home/kiri/work/ports/head/math/suitesparse/Makefile 2020-07-25 12:00:19.000000000 +0900 +++ Makefile 2020-12-02 11:52:14.732564000 +0900 @@ -12,6 +12,7 @@ LICENSE= GPLv2 LGPL21 LICENSE_COMB= dual +BUILD_DEPENDS= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmetis.so:math/metis @@ -20,6 +21,7 @@ GH_ACCOUNT= DrTimothyAldenDavis GH_PROJECT= SuiteSparse +CXXFLAGS+= -L${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/clang/${LLVM_VERSION}/lib/freebsd USES= cmake:insource fortran gmake localbase:ldflags USE_LDCONFIG= yes INSTALL_TARGET= install # skip USES=cmake @@ -64,6 +66,8 @@ MODULES= AMD CAMD CCOLAMD CHOLMOD COLAMD CSparse CXSparse_newfiles \ CXSparse GPUQREngine KLU LDL RBio SPQR UMFPACK + +LLVM_VERSION= 9.0.1 .include <bsd.port.options.mk> But, c++ seems to ignore -L/usr/local/llvm90/lib/clang/9.0.1/lib/freebsd: [ 92%] Linking CXX executable tests/mongoose_unit_test_edgesep /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mongoose_unit_test_edgesep.dir/link.txt --verbose=1 /usr/local/bin/ld: cannot find /usr/lib/clang/10.0.1/lib/freebsd/libclang_rt.profile-x86_64.a: No such file or directory /usr/bin/c++ -O3 -fwrapv -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/llvm90/lib/clang/9.0.1/lib/freebsd -isystem /usr/local/include -L/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/lib -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib --coverage -g CMakeFiles/mongoose_unit_test_edgesep.dir/Tests/Mongoose_UnitTest_EdgeSep_exe.o -o tests/mongoose_unit_test_edgesep lib/libmongoose_dbg.a -lsuitesparseconfig -lrt c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [CMakeFiles/mongoose_test_io.dir/build.make:122: tests/mongoose_test_io] Error 1 gmake[5]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:421: CMakeFiles/mongoose_test_io.dir/all] Error 2 gmake[4]: *** Waiting for unfinished jobs.... [ 93%] Building CXX object CMakeFiles/mongoose_test_memory.dir/Tests/Mongoose_Test_Memory_exe.o /usr/bin/c++ -I/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build -I/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/Include -I/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/External/mmio/Include -I/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/../SuiteSparse_config -O3 -fwrapv -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/llvm90/lib/clang/9.0.1/lib/freebsd -isystem /usr/local/include --coverage -g -fwrapv -std=gnu++11 -o CMakeFiles/mongoose_test_memory.dir/Tests/Mongoose_Test_Memory_exe.o -c /var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/Tests/Mongoose_Test_Memory_exe.cpp c++: warning: argument unused during compilation: '-L/usr/local/llvm90/lib/clang/9.0.1/lib/freebsd' [-Wunused-command-line-argument] /usr/local/bin/ld: cannot find /usr/lib/clang/10.0.1/lib/freebsd/libclang_rt.profile-x86_64.a: No such file or directory c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [CMakeFiles/mongoose_unit_test_edgesep.dir/build.make:107: tests/mongoose_unit_test_edgesep] Error 1 gmake[5]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:151: CMakeFiles/mongoose_unit_test_edgesep.dir/all] Error 2 [ 94%] Linking CXX executable tests/mongoose_unit_test_io /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mongoose_unit_test_io.dir/link.txt --verbose=1 /usr/bin/c++ -O3 -fwrapv -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/llvm90/lib/clang/9.0.1/lib/freebsd -isystem /usr/local/include -L/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/lib -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib --coverage -g CMakeFiles/mongoose_unit_test_io.dir/Tests/Mongoose_UnitTest_IO_exe.o -o tests/mongoose_unit_test_io lib/libmongoose_dbg.a -lsuitesparseconfig -lrt /usr/local/bin/ld: cannot find /usr/lib/clang/10.0.1/lib/freebsd/libclang_rt.profile-x86_64.a: No such file or directory c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [CMakeFiles/mongoose_unit_test_io.dir/build.make:107: tests/mongoose_unit_test_io] Error 1 gmake[5]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:205: CMakeFiles/mongoose_unit_test_io.dir/all] Error 2 [ 95%] Linking CXX executable tests/mongoose_test_memory /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mongoose_test_memory.dir/link.txt --verbose=1 /usr/bin/c++ -O3 -fwrapv -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/llvm90/lib/clang/9.0.1/lib/freebsd -isystem /usr/local/include -L/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/lib -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib --coverage -g CMakeFiles/mongoose_test_memory.dir/Tests/Mongoose_Test_Memory.o CMakeFiles/mongoose_test_memory.dir/Tests/Mongoose_Test_Memory_exe.o -o tests/mongoose_test_memory lib/libmongoose_dbg.a -lsuitesparseconfig -lrt /usr/local/bin/ld: cannot find /usr/lib/clang/10.0.1/lib/freebsd/libclang_rt.profile-x86_64.a: No such file or directory c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[5]: *** [CMakeFiles/mongoose_test_memory.dir/build.make:122: tests/mongoose_test_memory] Error 1 gmake[5]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[4]: *** [CMakeFiles/Makefile2:259: CMakeFiles/mongoose_test_memory.dir/all] Error 2 gmake[4]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[3]: *** [Makefile:163: all] Error 2 gmake[3]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose/build' gmake[2]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1/Mongoose' gmake[2]: *** [Makefile:22: library] Error 2 gmake[1]: *** [Makefile:129: library] Error 2 gmake[1]: Leaving directory '/var/ports/work/var/ports/jdtpkxb/math/suitesparse/work/SuiteSparse-5.8.1' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /var/ports/jdtpkxb/math/suitesparse Could you recognize c++ to link with /usr/local/llvm90/lib/clang/9.0.1/lib/freebsd/* ? My circumstances are: root@jdtpkxb:~ # uname -a FreeBSD jdtpkxb 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r367712M: Tue Nov 17 01:35:26 JST 2020 root@msrvkxb:/usr/obj/usr/src/amd64.amd64/sys/XIJ amd64 root@jdtpkxb:~ # svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: http://svn.freebsd.org/ports/head Relative URL: ^/head Repository Root: http://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 555444 Node Kind: directory Schedule: normal Last Changed Author: lwhsu Last Changed Rev: 555444 Last Changed Date: 2020-11-16 11:44:38 +0900 (Mon, 16 Nov 2020) root@jdtpkxb:~ # Regards --- Kazuhiko Kiriyama <kiri@truefc.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012030029.0B30Tmpv052943>