Home › Forum › SOFA › Building SOFA › [SOLVED] Building SOFA with ninja
Tagged: Clang, Linux_ubuntu, ninja, SOFA_other
- This topic has 1 reply, 1 voice, and was last updated 3 years, 2 months ago by Hugo.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
29 October 2021 at 12:08 #20708HugoKeymaster
When getting the following error with SOFA master (after v21.06) :
[12/1770] Building CXX object 'SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixStorageOrder[EigenSparseMatrix].cpp.o' FAILED: SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixStorageOrder[EigenSparseMatrix].cpp.o /usr/bin/clang++ -DNDEBUG -DSOFA_BUILD_SOFA_LINEARALGEBRA -DSOFA_BUILD__LINEAR_ALGEBRA -DSofa_LinearAlgebra_EXPORTS -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.LinearAlgebra/src -Iinclude/Sofa.LinearAlgebra -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Type/src -Iinclude/Sofa.Type -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Config/src -Iinclude/Sofa.Config -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Compat/src -Iinclude/Sofa.Compat -I/data/Softwares/sofa/src/master/SofaKernel/modules/SofaHelper/src -Iinclude/Sofa.Helper -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Topology/src -Iinclude/Sofa.Topology -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Geometry/src -Iinclude/Sofa.Geometry -isystem /data/Softwares/sofa/src/master/SofaKernel/extlibs/json -isystem /usr/include/eigen3 -O3 -DNDEBUG -fPIC -Wno-attributes -Wall -W -Wno-padded -std=gnu++17 -MD -MT 'SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixStorageOrder[EigenSparseMatrix].cpp.o' -MF SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixStorageOrder[EigenSparseMatrix].cpp.o.d -o 'SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixStorageOrder[EigenSparseMatrix].cpp.o' -c '/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.LinearAlgebra/src/sofa/linearalgebra/SparseMatrixStorageOrder[EigenSparseMatrix].cpp' depfile has multiple output paths[13/1770] Building CXX object 'SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixProduct[EigenSparseMatrix].cpp.o' FAILED: SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixProduct[EigenSparseMatrix].cpp.o /usr/bin/clang++ -DNDEBUG -DSOFA_BUILD_SOFA_LINEARALGEBRA -DSOFA_BUILD__LINEAR_ALGEBRA -DSofa_LinearAlgebra_EXPORTS -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.LinearAlgebra/src -Iinclude/Sofa.LinearAlgebra -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Type/src -Iinclude/Sofa.Type -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Config/src -Iinclude/Sofa.Config -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Compat/src -Iinclude/Sofa.Compat -I/data/Softwares/sofa/src/master/SofaKernel/modules/SofaHelper/src -Iinclude/Sofa.Helper -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Topology/src -Iinclude/Sofa.Topology -I/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.Geometry/src -Iinclude/Sofa.Geometry -isystem /data/Softwares/sofa/src/master/SofaKernel/extlibs/json -isystem /usr/include/eigen3 -O3 -DNDEBUG -fPIC -Wno-attributes -Wall -W -Wno-padded -std=gnu++17 -MD -MT 'SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixProduct[EigenSparseMatrix].cpp.o' -MF SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixProduct[EigenSparseMatrix].cpp.o.d -o 'SofaKernel/SofaFramework/Sofa.LinearAlgebra/CMakeFiles/Sofa.LinearAlgebra.dir/src/sofa/linearalgebra/SparseMatrixProduct[EigenSparseMatrix].cpp.o' -c '/data/Softwares/sofa/src/master/SofaKernel/modules/Sofa.LinearAlgebra/src/sofa/linearalgebra/SparseMatrixProduct[EigenSparseMatrix].cpp' depfile has multiple output paths[14/1770] Building CXX object SofaKernel/SofaFramework/Sofa.LinearAlgebra/Sofa.LinearAlgebra_test/CMakeFiles/Sofa.LinearAlgebra_test.dir/SparseMatrixStorageOrder_test.cpp.o [15/1770] Building CXX object SofaKernel/SofaFramework/Sofa.LinearAlgebra/Sofa.LinearAlgebra_test/CMakeFiles/Sofa.LinearAlgebra_test.dir/SparseMatrixProduct_test.cpp.o ninja: build stopped: subcommand failed.
This might mean that you ninja version is too old regarding the SOFA requirements.
Now, ninja 1.10 or more recent is needed.Hugo
29 October 2021 at 17:25 #20711HugoKeymasterIn my case I ran :
wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip sudo unzip ninja-linux.zip -d /usr/local/bin/ sudo update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force
Best
Hugo
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.