isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.41k stars 2.3k forks source link

Open3D 0.15.1 (headless version) does not build with the bundled netlib-blas/lapack libraries #5036

Open samfux84 opened 2 years ago

samfux84 commented 2 years ago

Checklist

Steps to reproduce the issue

I first cloned Open3D by:

wget https://github.com/isl-org/Open3D/archive/refs/tags/v0.15.1.tar.gz

Then, I build Open3D (on CentOS, with CUDA 11.3.1) with:

module load gcc/8.2.0 mesa/18.3.6 python/3.9.9 cuda/11.3.1 cudnn/8.2.1.32 nccl/2.7.8-1
mkdir build
cd build
ccmake -DENABLE_HEADLESS_RENDERING=ON -DBUILD_GUI=OFF -DUSE_SYSTEM_GLEW=OFF -DUSE_SYSTEM_GLFW=OFF -DBUILD_COMMON_CUDA_ARCHS=ON -DBUILD_CUDA_MODULE=ON -DBUILD_CURL_FROM_SOURCE=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS_RELEASE='-O3 -DNDEBUG -ftree-vectorize -march=core-avx2 -mavx2' -DCMAKE_C_FLAGS_RELEASE='-O3 -DNDEBUG -ftree-vectorize -march=core-avx2 -mavx2' -DCMAKE_INSTALL_PREFIX=/cluster/apps/nss/gcc-8.2.0/open3d/0.15.1/x86_64 -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_PYTORCH_OPS=ON -DBUILD_TENSORFLOW_OPS=ON -DBUNDLE_OPEN3D_ML=ON -DUSE_BLAS=ON -DGLIBCXX_USE_CXX11_ABI=OFF -DOPEN3D_ML_ROOT=. -DBUILD_ISPC_MODULE=OFF -DWITH_IPPICV=OFF ..
make -j4

Error message

The first error that appears (not related to the BLAS/LAPACK problem and not terminating the build process) is:

[ 46%] Building CXX object cpp/open3d/visualization/CMakeFiles/visualization.dir/visualizer/Visualizer.cpp.o
cd /scratch/215068434.tmpdir/Open3D-0.15.1/build/cpp/open3d/visualization && /cluster/spack/apps/linux-centos7-x86_64/gcc-4.8.5/gcc-8.2.0-6xqov2fhvbmehix42slain67vprec3fs/bin/g++ -DBUILD_CACHED_CUDA_MANAGER -DBUILD_CUDA_MODULE -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_OSMESA -DHEADLESS_RENDERING -DOPEN3D_CUDA_COMPILER_ID=\"NVIDIA\" -DOPEN3D_CUDA_COMPILER_VERSION=\"11.3.109\" -DOPEN3D_CXX_COMPILER_ID=\"GNU\" -DOPEN3D_CXX_COMPILER_VERSION=\"8.2.0\" -DOPEN3D_CXX_STANDARD=\"14\" -DOPEN3D_ENABLE_DLL_EXPORTS -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DUNIX -DUSE_BLAS -DZMQ_STATIC -D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_CXX11_ABI=0 -D__TBB_LIB_NAME=tbb_static -I/scratch/215068434.tmpdir/Open3D-0.15.1/cpp -I/cluster/apps/gcc-8.2.0/mesa-18.3.6-xuqc7sbz42mvsxzwqpswrxdj6j2k4m7n/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/assimp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/cutlass/src/ext_cutlass -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/nanoflann/src/ext_nanoflann/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/turbojpeg/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/jsoncpp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/liblzf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tomasakeninemoeller/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/curl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/boringssl/src/ext_boringssl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/libpng/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zlib/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/rply/rply -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tinyfiledialogs/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinygltf/src/ext_tinygltf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinyobjloader/src/ext_tinyobjloader -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/qhull/src/ext_qhull/src -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/poisson/src/ext_poisson -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/src/ext_cppzmq -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/msgpack-c/src/ext_msgpack-c/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/mkl_install/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/openblas/include/openblas -isystem /cluster/apps/gcc-8.2.0/cuda-11.3.1-o54iuxgz6jm4csvkstuj5hjg4tvd44h3/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/stdgpu/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/src/ext_embree -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/eigen/src/ext_eigen -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/parallelstl/src/ext_parallelstl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glew/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glfw/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/fmt/include -O3 -DNDEBUG -ftree-vectorize -march=core-avx2 -mavx2 -fPIC -fstack-protector-strong -Wformat -Wformat-security -Wall -Wextra -Werror -Wno-unused-parameter -fdiagnostics-color=always -fopenmp -pthread -std=gnu++14 -MD -MT cpp/open3d/visualization/CMakeFiles/visualization.dir/visualizer/Visualizer.cpp.o -MF CMakeFiles/visualization.dir/visualizer/Visualizer.cpp.o.d -o CMakeFiles/visualization.dir/visualizer/Visualizer.cpp.o -c /scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/visualization/visualizer/Visualizer.cpp
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/visualization/visualizer/Visualizer.cpp: In member function ‘virtual bool open3d::visualization::Visualizer::InitViewControl()’:
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/visualization/visualizer/Visualizer.cpp:234:58: error: ‘new’ of type ‘open3d::visualization::ViewControl’ with extended alignment 32 [-Werror=aligned-new=]
     view_control_ptr_ = std::unique_ptr<ViewControl>(new ViewControl);
                                                          ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/visualization/visualizer/Visualizer.cpp:234:58: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/visualization/visualizer/Visualizer.cpp:234:58: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
cc1plus: all warnings being treated as errors
make[2]: *** [cpp/open3d/visualization/CMakeFiles/visualization.dir/build.make:443: cpp/open3d/visualization/CMakeFiles/visualization.dir/visualizer/Visualizer.cpp.o] Error 1
make[2]: Leaving directory '/scratch/215068434.tmpdir/Open3D-0.15.1/build'
make[1]: *** [CMakeFiles/Makefile2:2846: cpp/open3d/visualization/CMakeFiles/visualization.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

The problem related to the bundled BLAS/LAPACK is:

[ 51%] Building CXX object cpp/open3d/core/CMakeFiles/core.dir/linalg/MatmulCPU.cpp.o
cd /scratch/215068434.tmpdir/Open3D-0.15.1/build/cpp/open3d/core && /cluster/spack/apps/linux-centos7-x86_64/gcc-4.8.5/gcc-8.2.0-6xqov2fhvbmehix42slain67vprec3fs/bin/g++ -DBUILD_CACHED_CUDA_MANAGER -DBUILD_CUDA_MODULE -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_OSMESA -DHEADLESS_RENDERING -DOPEN3D_CUDA_COMPILER_ID=\"NVIDIA\" -DOPEN3D_CUDA_COMPILER_VERSION=\"11.3.109\" -DOPEN3D_CXX_COMPILER_ID=\"GNU\" -DOPEN3D_CXX_COMPILER_VERSION=\"8.2.0\" -DOPEN3D_CXX_STANDARD=\"14\" -DOPEN3D_ENABLE_DLL_EXPORTS -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DUNIX -DUSE_BLAS -DZMQ_STATIC -D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_CXX11_ABI=0 -D__TBB_LIB_NAME=tbb_static -I/scratch/215068434.tmpdir/Open3D-0.15.1/cpp -I/cluster/apps/gcc-8.2.0/mesa-18.3.6-xuqc7sbz42mvsxzwqpswrxdj6j2k4m7n/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/assimp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/cutlass/src/ext_cutlass -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/nanoflann/src/ext_nanoflann/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/turbojpeg/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/jsoncpp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/liblzf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tomasakeninemoeller/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/curl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/boringssl/src/ext_boringssl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/libpng/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zlib/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/rply/rply -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tinyfiledialogs/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinygltf/src/ext_tinygltf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinyobjloader/src/ext_tinyobjloader -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/qhull/src/ext_qhull/src -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/poisson/src/ext_poisson -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/src/ext_cppzmq -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/msgpack-c/src/ext_msgpack-c/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/mkl_install/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/openblas/include/openblas -isystem /cluster/apps/gcc-8.2.0/cuda-11.3.1-o54iuxgz6jm4csvkstuj5hjg4tvd44h3/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/stdgpu/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/src/ext_embree -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/eigen/src/ext_eigen -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/parallelstl/src/ext_parallelstl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glew/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glfw/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/fmt/include -O3 -DNDEBUG -ftree-vectorize -march=core-avx2 -mavx2 -fPIC -fstack-protector-strong -Wformat -Wformat-security -Wall -Wextra -Werror -Wno-unused-parameter -fdiagnostics-color=always -fopenmp -pthread -std=gnu++14 -MD -MT cpp/open3d/core/CMakeFiles/core.dir/linalg/MatmulCPU.cpp.o -MF CMakeFiles/core.dir/linalg/MatmulCPU.cpp.o.d -o CMakeFiles/core.dir/linalg/MatmulCPU.cpp.o -c /scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp
In file included from /scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:27:
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:37:22: error: variable or field ‘gemm_cpu’ declared void
 inline void gemm_cpu(CBLAS_LAYOUT layout,
                      ^~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:37:22: error: ‘CBLAS_LAYOUT’ was not declared in this scope
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:37:22: note: suggested alternative: ‘CBLAS_UPLO’
 inline void gemm_cpu(CBLAS_LAYOUT layout,
                      ^~~~~~~~~~~~
                      CBLAS_UPLO
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:38:38: error: expected primary-expression before ‘trans_A’
                      CBLAS_TRANSPOSE trans_A,
                                      ^~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:39:38: error: expected primary-expression before ‘trans_B’
                      CBLAS_TRANSPOSE trans_B,
                                      ^~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:40:44: error: expected primary-expression before ‘m’
                      OPEN3D_CPU_LINALG_INT m,
                                            ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:41:44: error: expected primary-expression before ‘n’
                      OPEN3D_CPU_LINALG_INT n,
                                            ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:42:44: error: expected primary-expression before ‘k’
                      OPEN3D_CPU_LINALG_INT k,
                                            ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:43:31: error: expected primary-expression before ‘alpha’
                      scalar_t alpha,
                               ^~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:44:22: error: expected primary-expression before ‘const’
                      const scalar_t *A_data,
                      ^~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:45:44: error: expected primary-expression before ‘lda’
                      OPEN3D_CPU_LINALG_INT lda,
                                            ^~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:46:22: error: expected primary-expression before ‘const’
                      const scalar_t *B_data,
                      ^~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:47:44: error: expected primary-expression before ‘ldb’
                      OPEN3D_CPU_LINALG_INT ldb,
                                            ^~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:48:31: error: expected primary-expression before ‘beta’
                      scalar_t beta,
                               ^~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:49:31: error: expected primary-expression before ‘*’ token
                      scalar_t *C_data,
                               ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:49:32: error: ‘C_data’ was not declared in this scope
                      scalar_t *C_data,
                                ^~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:50:44: error: expected primary-expression before ‘ldc’
                      OPEN3D_CPU_LINALG_INT ldc) {
                                            ^~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:55:21: error: expected initializer before ‘<’ token
 inline void gemm_cpu<float>(CBLAS_LAYOUT layout,
                     ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/BlasWrapper.h:74:21: error: expected initializer before ‘<’ token
 inline void gemm_cpu<double>(CBLAS_LAYOUT layout,
                     ^
[ 51%] Building CXX object cpp/open3d/core/CMakeFiles/core.dir/linalg/Solve.cpp.o
cd /scratch/215068434.tmpdir/Open3D-0.15.1/build/cpp/open3d/core && /cluster/spack/apps/linux-centos7-x86_64/gcc-4.8.5/gcc-8.2.0-6xqov2fhvbmehix42slain67vprec3fs/bin/g++ -DBUILD_CACHED_CUDA_MANAGER -DBUILD_CUDA_MODULE -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_OSMESA -DHEADLESS_RENDERING -DOPEN3D_CUDA_COMPILER_ID=\"NVIDIA\" -DOPEN3D_CUDA_COMPILER_VERSION=\"11.3.109\" -DOPEN3D_CXX_COMPILER_ID=\"GNU\" -DOPEN3D_CXX_COMPILER_VERSION=\"8.2.0\" -DOPEN3D_CXX_STANDARD=\"14\" -DOPEN3D_ENABLE_DLL_EXPORTS -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DUNIX -DUSE_BLAS -DZMQ_STATIC -D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_CXX11_ABI=0 -D__TBB_LIB_NAME=tbb_static -I/scratch/215068434.tmpdir/Open3D-0.15.1/cpp -I/cluster/apps/gcc-8.2.0/mesa-18.3.6-xuqc7sbz42mvsxzwqpswrxdj6j2k4m7n/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/assimp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/cutlass/src/ext_cutlass -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/nanoflann/src/ext_nanoflann/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/turbojpeg/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/jsoncpp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/liblzf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tomasakeninemoeller/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/curl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/boringssl/src/ext_boringssl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/libpng/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zlib/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/rply/rply -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tinyfiledialogs/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinygltf/src/ext_tinygltf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinyobjloader/src/ext_tinyobjloader -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/qhull/src/ext_qhull/src -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/poisson/src/ext_poisson -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/src/ext_cppzmq -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/msgpack-c/src/ext_msgpack-c/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/mkl_install/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/openblas/include/openblas -isystem /cluster/apps/gcc-8.2.0/cuda-11.3.1-o54iuxgz6jm4csvkstuj5hjg4tvd44h3/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/stdgpu/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/src/ext_embree -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/eigen/src/ext_eigen -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/parallelstl/src/ext_parallelstl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glew/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glfw/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/fmt/include -O3 -DNDEBUG -ftree-vectorize -march=core-avx2 -mavx2 -fPIC -fstack-protector-strong -Wformat -Wformat-security -Wall -Wextra -Werror -Wno-unused-parameter -fdiagnostics-color=always -fopenmp -pthread -std=gnu++14 -MD -MT cpp/open3d/core/CMakeFiles/core.dir/linalg/Solve.cpp.o -MF CMakeFiles/core.dir/linalg/Solve.cpp.o.d -o CMakeFiles/core.dir/linalg/Solve.cpp.o -c /scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/Solve.cpp
[ 51%] Building CXX object cpp/open3d/core/CMakeFiles/core.dir/linalg/SolveCPU.cpp.o
cd /scratch/215068434.tmpdir/Open3D-0.15.1/build/cpp/open3d/core && /cluster/spack/apps/linux-centos7-x86_64/gcc-4.8.5/gcc-8.2.0-6xqov2fhvbmehix42slain67vprec3fs/bin/g++ -DBUILD_CACHED_CUDA_MANAGER -DBUILD_CUDA_MODULE -DFMT_HEADER_ONLY=0 -DFMT_STRING_ALIAS=1 -DFMT_USE_WINDOWS_H=0 -DGLEW_OSMESA -DHEADLESS_RENDERING -DOPEN3D_CUDA_COMPILER_ID=\"NVIDIA\" -DOPEN3D_CUDA_COMPILER_VERSION=\"11.3.109\" -DOPEN3D_CXX_COMPILER_ID=\"GNU\" -DOPEN3D_CXX_COMPILER_VERSION=\"8.2.0\" -DOPEN3D_CXX_STANDARD=\"14\" -DOPEN3D_ENABLE_DLL_EXPORTS -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -DTINYGLTF_IMPLEMENTATION -DTINYOBJLOADER_IMPLEMENTATION -DUNIX -DUSE_BLAS -DZMQ_STATIC -D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_CXX11_ABI=0 -D__TBB_LIB_NAME=tbb_static -I/scratch/215068434.tmpdir/Open3D-0.15.1/cpp -I/cluster/apps/gcc-8.2.0/mesa-18.3.6-xuqc7sbz42mvsxzwqpswrxdj6j2k4m7n/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/assimp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/cutlass/src/ext_cutlass -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/nanoflann/src/ext_nanoflann/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/turbojpeg/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/jsoncpp/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/liblzf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tomasakeninemoeller/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/curl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/boringssl/src/ext_boringssl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/libpng/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zlib/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/rply/rply -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/tinyfiledialogs/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinygltf/src/ext_tinygltf -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/tinyobjloader/src/ext_tinyobjloader -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/qhull/src/ext_qhull/src -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/poisson/src/ext_poisson -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/zeromq/src/ext_cppzmq -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/msgpack-c/src/ext_msgpack-c/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/mkl_install/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/openblas/include/openblas -isystem /cluster/apps/gcc-8.2.0/cuda-11.3.1-o54iuxgz6jm4csvkstuj5hjg4tvd44h3/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/stdgpu/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/embree/src/ext_embree -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/eigen/src/ext_eigen -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/parallelstl/src/ext_parallelstl/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glew/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/3rdparty/glfw/include -isystem /scratch/215068434.tmpdir/Open3D-0.15.1/build/fmt/include -O3 -DNDEBUG -ftree-vectorize -march=core-avx2 -mavx2 -fPIC -fstack-protector-strong -Wformat -Wformat-security -Wall -Wextra -Werror -Wno-unused-parameter -fdiagnostics-color=always -fopenmp -pthread -std=gnu++14 -MD -MT cpp/open3d/core/CMakeFiles/core.dir/linalg/SolveCPU.cpp.o -MF CMakeFiles/core.dir/linalg/SolveCPU.cpp.o.d -o CMakeFiles/core.dir/linalg/SolveCPU.cpp.o -c /scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/SolveCPU.cpp
In file included from /scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:28:
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp: In lambda function:
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:9: error: ‘gemm_cpu’ was not declared in this scope
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
         ^~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:9: note: suggested alternative: ‘gemm_cuda’
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
         ^~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:26: error: expected primary-expression before ‘>’ token
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                          ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:43: error: left operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                           ^~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:57: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                         ^~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:71: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                       ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:71: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                       ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:74: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                          ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:77: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                             ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:43:70: error: right operand of comma operator has no effect [-Werror=unused-value]
                            alpha, static_cast<const scalar_t*>(A_data), m,
                                                                      ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:43:35: error: right operand of comma operator has no effect [-Werror=unused-value]
                            alpha, static_cast<const scalar_t*>(A_data), m,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:43:73: error: right operand of comma operator has no effect [-Werror=unused-value]
                            alpha, static_cast<const scalar_t*>(A_data), m,
                                                                         ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:44:28: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<const scalar_t*>(B_data), k, beta,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:44:66: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<const scalar_t*>(B_data), k, beta,
                                                                  ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:45:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:45:57: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<scalar_t*>(C_data), m);
                                                         ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:40:5: note: in expansion of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
     DISPATCH_LINALG_DTYPE_TO_TEMPLATE(dtype, [&]() {
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:45:28: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<scalar_t*>(C_data), m);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:40:5: note: in expansion of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
     DISPATCH_LINALG_DTYPE_TO_TEMPLATE(dtype, [&]() {
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp: In lambda function:
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:9: error: ‘gemm_cpu’ was not declared in this scope
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
         ^~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:9: note: suggested alternative: ‘gemm_cuda’
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
         ^~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:26: error: expected primary-expression before ‘>’ token
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                          ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:43: error: left operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                           ^~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:57: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                         ^~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:71: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                       ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:71: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                       ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:74: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                          ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:42:77: error: right operand of comma operator has no effect [-Werror=unused-value]
         gemm_cpu<scalar_t>(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k,
                                                                             ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:43:70: error: right operand of comma operator has no effect [-Werror=unused-value]
                            alpha, static_cast<const scalar_t*>(A_data), m,
                                                                      ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:43:35: error: right operand of comma operator has no effect [-Werror=unused-value]
                            alpha, static_cast<const scalar_t*>(A_data), m,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:43:73: error: right operand of comma operator has no effect [-Werror=unused-value]
                            alpha, static_cast<const scalar_t*>(A_data), m,
                                                                         ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:44:28: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<const scalar_t*>(B_data), k, beta,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:44:66: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<const scalar_t*>(B_data), k, beta,
                                                                  ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:45:57: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<scalar_t*>(C_data), m);
                                                         ^
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/MatmulCPU.cpp:45:28: error: right operand of comma operator has no effect [-Werror=unused-value]
                            static_cast<scalar_t*>(C_data), m);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/scratch/215068434.tmpdir/Open3D-0.15.1/cpp/open3d/core/linalg/LinalgUtils.h:48:20: note: in definition of macro ‘DISPATCH_LINALG_DTYPE_TO_TEMPLATE’
             return __VA_ARGS__();                        \
                    ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [cpp/open3d/core/CMakeFiles/core.dir/build.make:681: cpp/open3d/core/CMakeFiles/core.dir/linalg/MatmulCPU.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/scratch/215068434.tmpdir/Open3D-0.15.1/build'
make[1]: *** [CMakeFiles/Makefile2:2067: cpp/open3d/core/CMakeFiles/core.dir/all] Error 2
make[2]: Leaving directory '/scratch/215068434.tmpdir/Open3D-0.15.1/build'
[ 51%] Built target ml_contrib
make[1]: Leaving directory '/scratch/215068434.tmpdir/Open3D-0.15.1/build'
make: *** [Makefile:159: all] Error 2

Is this a known problem? I would expect that Open3D should build with the bundled netlib-BLAS/LAPACK.


### Open3D, Python and System information

```markdown
- Operating system: CentOS 7.9
- Python version: Python 3.9.9
- Open3D version: 0.15.1
- System architecture: x86
- Is this a remote workstation?: yes
- How did you install Open3D?: build from source
- Compiler version (if built from source): gcc 8.2.0

Additional information

Actually I first wanted to build Open3D (headless) using an existing OpenBLAS installation (built from source), but then I got the error reported above. Searching for the error message lead me to

https://github.com/isl-org/Open3D/issues/2468

I tried the fixes of the header files proposed in this github issue, but it did not fix the problem. Then I removed the changes and switched to using the bundled netlib-BLAS/LAPACK, because I thought that this would fix the issue, which was not the case.

samfux84 commented 2 years ago

Is this a known problem?

Could it be that the recent change in the OpenBLAS version is breaking the build?

https://github.com/isl-org/Open3D/pull/5006

cielavenir commented 3 months ago

@samfux84

new ViewControl

It can be fixed by specifying -DCMAKE_CXX_STANDARD=17 (with removing https://github.com/isl-org/Open3D/blob/v0.15.1/CMakeLists.txt#L252 override)

cc @RunqiuBao @liuhuanjim013

cielavenir commented 3 months ago

for my own note: I once thought I needed new(std::align_val_t{32}) ViewControl but turned out not to be required, so I feel relieved.