Open3D
Open3D copied to clipboard
Cannot build from source [clang: error: unable to execute command: Segmentation fault: 11]
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
masterbranch).
Steps to reproduce the issue
git clone https://github.com/isl-org/Open3D.git
cd Open3D
mkdir build && cd build
cmake ..
make
-- Setting build type to Release as none was specified.
-- CMAKE_BUILD_TYPE is set to Release.
-- Downloading third-party dependencies to /Users/nickp/Desktop/Open3D/3rdparty_downloads
CMake Deprecation Warning at CMakeLists.txt:183 (cmake_policy):
The OLD behavior for policy CMP0072 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Open3D 0.15.2+c074f5d00
-- Found Python3: /Users/nickp/opt/anaconda3/envs/dev/bin/python3.7 (found suitable version "3.7.12", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test FLAG_fstack_protector
-- Performing Test FLAG_fstack_protector - Success
-- Performing Test FLAG_Wformat
-- Performing Test FLAG_Wformat - Success
-- Performing Test FLAG_Wformat_security
-- Performing Test FLAG_Wformat_security - Success
-- Performing Test FLAGLINKER__dead_strip
-- Performing Test FLAGLINKER__dead_strip - Success
-- Performing Test FLAG____CONFIG_Release__LINKER__S__x_
-- Performing Test FLAG____CONFIG_Release__LINKER__S__x_ - Success
-- Using security hardening compiler flags: $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-fstack-protector,-Wformat,-Wformat-security>;$<$<COMPILE_LANGUAGE:CXX>:-fstack-protector;-Wformat;-Wformat-security>
-- Using security hardening linker flags: $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=LINKER:-dead_strip,$<$<CONFIG:Release>:LINKER:-S,-x>>;$<$<COMPILE_LANGUAGE:CXX>:LINKER:-dead_strip;$<$<CONFIG:Release>:LINKER:-S,-x>>
-- Using security hardening compiler definitions: _FORTIFY_SOURCE=2
-- Performing Test FLAG_load_hidden
-- Performing Test FLAG_load_hidden - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Using installed third-party library 3rdparty_threads
-- Found OpenMP_C: -Xclang -fopenmp (found version "5.0")
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "5.0")
-- Found OpenMP: TRUE (found version "5.0")
-- Using installed third-party library 3rdparty_openmp
-- Building with OpenMP
-- Building library 3rdparty_glfw from source
-- Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
-- Using Cocoa for window creation
-- Building third-party library JPEG from source
-- Looking for a ASM_NASM compiler
-- Looking for a ASM_NASM compiler - NOTFOUND
-- NASM assembler not found - libjpeg-turbo performance may suffer
-- libturbojpeg: WITH_CRT_DLL=OFF
-- pybind11 v2.6.2
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Building third-party library Filament from source
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/OpenGL.framework
-- Using installed third-party library 3rdparty_opengl
-- Building OpenBLAS with LAPACK from source
-- gfortran found at
-- OPENBLAS_INCLUDE_DIR: /Users/nickp/Desktop/Open3D/build/openblas/include/openblas/
-- OPENBLAS_LIB_DIR /Users/nickp/Desktop/Open3D/build/openblas/lib
-- OPENBLAS_LIBRARIES: openblas
CMake Warning at 3rdparty/find_dependencies.cmake:1715 (message):
IPP-ICV disabled: Unsupported Platform.
Call Stack (most recent call first):
CMakeLists.txt:486 (include)
-- open3d_sycl_target_sources(core): PRIVATE
-- PYPI_PACKAGE_NAME: open3d
-- ================================================================================
-- Open3D 0.15.2 Configuration Summary
-- ================================================================================
-- Enabled Features:
-- OpenMP .................................. ON
-- Headless Rendering ...................... OFF
-- Azure Kinect Support .................... OFF
-- Intel RealSense Support ................. OFF
-- CUDA Support ............................ OFF
-- SYCL Support ............................ OFF
-- ISPC Support ............................ OFF
-- Build GUI ............................... ON
-- Build WebRTC visualizer ................. OFF
-- Build Shared Library .................... OFF
-- Build Unit Tests ........................ OFF
-- Build Examples .......................... ON
-- Build Python Module ..................... ON
-- Build Jupyter Extension ................. OFF
-- Build TensorFlow Ops .................... OFF
-- Build PyTorch Ops ....................... OFF
-- Build Benchmarks ........................ OFF
-- Bundle Open3D-ML ........................ OFF
-- Force GLIBCXX_USE_CXX11_ABI= ............ 0
-- ================================================================================
-- Third-Party Dependencies:
-- Assimp .................................. yes (build from source)
-- BLAS .................................... yes (build from source)
-- Eigen3 .................................. yes (build from source)
-- filament ................................ yes (build from source)
-- fmt ..................................... yes (build from source)
-- GLEW .................................... yes (build from source)
-- GLFW .................................... yes (build from source)
-- googletest .............................. no
-- imgui ................................... yes (build from source)
-- ippicv .................................. no
-- JPEG .................................... yes (build from source)
-- jsoncpp ................................. yes (build from source)
-- liblzf .................................. yes (build from source)
-- msgpack ................................. yes (build from source)
-- nanoflann ............................... yes (build from source)
-- OpenGL .................................. yes
-- PNG ..................................... yes (build from source)
-- qhullcpp ................................ yes (build from source)
-- librealsense ............................ no
-- TBB ..................................... yes (build from source)
-- tinyfiledialogs ......................... yes (build from source)
-- TinyGLTF ................................ yes (build from source)
-- tinyobjloader ........................... yes (build from source)
-- WebRTC .................................. no
-- ZeroMQ .................................. yes (build from source)
-- ================================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/nickp/Desktop/Open3D/build
Error message
...
Consolidate compiler generated dependencies of target tgeometry_kernel
[ 59%] Building CXX object cpp/open3d/t/geometry/kernel/CMakeFiles/tgeometry_kernel.dir/PointCloudCPU.cpp.o
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/s_/860y7j9n1dq7z59yl0k7fgsr0000gn/T/PointCloudCPU-67c923.cpp
clang: note: diagnostic msg: /var/folders/s_/860y7j9n1dq7z59yl0k7fgsr0000gn/T/PointCloudCPU-67c923.sh
clang: note: diagnostic msg: /var/folders/s_/860y7j9n1dq7z59yl0k7fgsr0000gn/T/PointCloudCPU-67c923.crash
clang: note: diagnostic msg:
********************
make[2]: *** [cpp/open3d/t/geometry/kernel/CMakeFiles/tgeometry_kernel.dir/PointCloudCPU.cpp.o] Error 254
make[1]: *** [cpp/open3d/t/geometry/kernel/CMakeFiles/tgeometry_kernel.dir/all] Error 2
make: *** [all] Error 2
Open3D, Python and System information
- Operating system: macOS 11.4
- Python version: 3.7.12 | packaged by conda-forge | [Clang 11.1.0 ]
- Open3D version: master
- System architecture: Apple M1 (arm64)
- Is this a remote workstation?: No
- How did you install Open3D?: build from source
- Compiler version:
(dev) [nickp@m1 build (master)]$ clang -v
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: arm64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin