-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues building on MacBook M1 #42
Comments
Seems like the issue could be [2022-05-20 14:08:36] ~/Documents/repos/point-cloud-utils $ cd external/embree
[2022-05-20 14:08:44] ~/Documents/repos/point-cloud-utils/external/embree $ git status
HEAD detached at v3.12.1
nothing to commit, working tree clean point-cloud-utils/CMakeLists.txt Line 78 in 7115e49
I tried bumping to embree v3.13.0 and building gets a little further, but still errors: [2022-05-20 14:23:15] ~/Documents/repos/point-cloud-utils $ python setup.py clean
prunning clean
removing 'build/temp.macosx-11.0-arm64-cpython-39' (and everything under it)
[2022-05-20 14:23:21] ~/Documents/repos/point-cloud-utils $ python setup.py build
running build
running build_py
running build_ext
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Performing Test COMPILER_SUPPORT_OPENMP
-- Performing Test COMPILER_SUPPORT_OPENMP - Failed
CMake Warning (dev) at external/numpyeigen/cmake/numpyeigen.cmake:98 (set):
Cannot set "NPE_ROOT_DIR": current scope has no parent.
Call Stack (most recent call first):
CMakeLists.txt:21 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
HEAD is now at aeda673 Hacks for numpyeigen
-- pybind11 v2.9.0
-- Found PythonInterp: /opt/homebrew/Caskroom/miniforge/base/envs/rnb/bin/python (found version "3.9.12")
-- Found PythonLibs: /opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/libpython3.9.dylib
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found Git: /opt/homebrew/bin/git (found version "2.35.1")
CMake Deprecation Warning at external/embree/CMakeLists.txt:64 (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.
-- Detecting default ISA...
-- Detected default ISA: NEON
-- 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
CMake Deprecation Warning at external/geogram/CMakeLists.txt:9 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Using local options file: /Users/exing/Documents/repos/point-cloud-utils/external/geogram/CMakeOptions.txt
-- Configuring build for standalone Geogram (without Vorpaline)
-- Doxygen >= 1.7.0 not found, cannot generate documentation
CMake Deprecation Warning at external/geogram/doc/CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- 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")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/exing/Documents/repos/point-cloud-utils/build/temp.macosx-11.0-arm64-cpython-39
[ 2%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/LM7/libmeshb7.c.o
[ 2%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/BVH.cpp.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
In file included from <built-in>:425:
<command line>:3:23: warning: missing terminating '"' character [-Winvalid-pp-token]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:3:9: warning: 'VERSION_INFO' macro redefined [-Wmacro-redefined]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:1:9: note: previous definition is here
#define VERSION_INFO "0.23.0"
^
[ 2%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/rply/rply.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
2 warnings generated.
[ 2%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/Intersection.cpp.o
In file included from <built-in>:425:
<command line>:3:23: warning: missing terminating '"' character [-Winvalid-pp-token]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:3:9: warning: 'VERSION_INFO' macro redefined [-Wmacro-redefined]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:1:9: note: previous definition is here
#define VERSION_INFO "0.23.0"
^
[ 3%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/adler32.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
2 warnings generated.
[ 3%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/main.cpp.o
In file included from <built-in>:425:
<command line>:3:23: warning: missing terminating '"' character [-Winvalid-pp-token]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:3:9: warning: 'VERSION_INFO' macro redefined [-Wmacro-redefined]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:1:9: note: previous definition is here
#define VERSION_INFO "0.23.0"
^
[ 3%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/compress.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 3%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/crc32.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 4%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/deflate.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 4%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/gzclose.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 5%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/gzlib.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 5%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/gzread.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 5%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/gzwrite.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 6%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/inffast.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 6%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/inflate.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
2 warnings generated.
[ 7%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/Model_OBJ.cpp.o
In file included from <built-in>:425:
<command line>:3:23: warning: missing terminating '"' character [-Winvalid-pp-token]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:3:9: warning: 'VERSION_INFO' macro redefined [-Wmacro-redefined]
#define VERSION_INFO \"0.23.0\" -DWITH_OMP
^
<command line>:1:9: note: previous definition is here
#define VERSION_INFO "0.23.0"
^
[ 8%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/inftrees.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 8%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/trees.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 8%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/uncompr.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 9%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/zlib/zutil.c.o
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
[ 9%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/gzstream/gzstream.cpp.o
[ 9%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/PoissonRecon/Factor.cpp.o
[ 10%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/PoissonRecon/Geometry.cpp.o
[ 10%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/PoissonRecon/MarchingCubes.cpp.o
[ 11%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/PoissonRecon/poisson_geogram.cpp.o
2 warnings generated.
[ 11%] Linking CXX static library libmanifold.a
[ 11%] Built target manifold
[ 11%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/HLBFGS/HLBFGS.cpp.o
[ 11%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/HLBFGS/HLBFGS_BLAS.cpp.o
[ 12%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/HLBFGS/ICFS.cpp.o
[ 12%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/HLBFGS/LineSearch.cpp.o
[ 12%] Building CXX object CMakeFiles/npe.dir/external/numpyeigen/src/npe_typedefs.cpp.o
[ 13%] Linking CXX static library libnpe.a
[ 13%] Built target npe
[ 14%] Building CXX object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/HLBFGS/Lite_Sparse_Matrix.cpp.o
[ 15%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/sysinfo.cpp.o
[ 15%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/alloc.cpp.o
[ 15%] Linking CXX static library ../../../../../lib/libgeogram_third_party.a
[ 15%] Built target geogram_third_party
[ 16%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/filename.cpp.o
[ 16%] Building CXX object embree/common/math/CMakeFiles/math.dir/constants.cpp.o
[ 17%] Linking CXX static library ../../libmath.a
[ 17%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/library.cpp.o
[ 17%] Built target math
[ 17%] Building CXX object embree/common/simd/CMakeFiles/simd.dir/sse.cpp.o
[ 17%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/thread.cpp.o
[ 17%] Linking CXX static library ../../libsimd.a
[ 17%] Built target simd
[ 18%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/string.cpp.o
[ 18%] Building CXX object embree/common/tasking/CMakeFiles/tasking.dir/taskschedulerinternal.cpp.o
[ 18%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/regression.cpp.o
[ 19%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/mutex.cpp.o
[ 20%] Linking CXX static library ../../libtasking.a
[ 20%] Built target tasking
[ 20%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/condition.cpp.o
[ 21%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/algorithm.cpp.o
[ 21%] Building CXX object embree/common/sys/CMakeFiles/sys.dir/barrier.cpp.o
[ 21%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/assert.cpp.o
[ 22%] Linking CXX static library ../../libsys.a
[ 22%] Built target sys
[ 23%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/attributes.cpp.o
[ 23%] Building CXX object embree/common/lexers/CMakeFiles/lexers.dir/stringstream.cpp.o
[ 24%] Building CXX object embree/common/lexers/CMakeFiles/lexers.dir/tokenstream.cpp.o
[ 24%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/b_stream.cpp.o
[ 24%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/command_line.cpp.o
[ 24%] Linking CXX static library ../../liblexers.a
[ 24%] Built target lexers
[ 25%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/command_line_args.cpp.o
[ 25%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/device.cpp.o
[ 25%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/common.cpp.o
[ 26%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/stat.cpp.o
[ 26%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/counted.cpp.o
[ 27%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/environment.cpp.o
[ 27%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/acceln.cpp.o
[ 27%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/factory.cpp.o
[ 28%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/file_system.cpp.o
[ 28%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/accelset.cpp.o
[ 28%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/geofile.cpp.o
[ 29%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/state.cpp.o
[ 29%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/geometry.cpp.o
[ 30%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/line_stream.cpp.o
[ 30%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/logger.cpp.o
[ 30%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/rtcore.cpp.o
[ 31%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/numeric.cpp.o
[ 31%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/packed_arrays.cpp.o
[ 31%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/process.cpp.o
[ 32%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/rtcore_builder.cpp.o
/Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/process.cpp:97:22: warning: 'get_local_value' overrides a member function but is not marked 'override' [-Wsuggest-override]
virtual bool get_local_value(
^
/Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/environment.h:374:22: note: overridden virtual function is here
virtual bool get_local_value(
^
/Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/process.cpp:141:22: warning: 'set_local_value' overrides a member function but is not marked 'override' [-Wsuggest-override]
virtual bool set_local_value(
^
/Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/environment.h:389:22: note: overridden virtual function is here
virtual bool set_local_value(
^
/Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/process.cpp:183:17: warning: '~ProcessEnvironment' overrides a destructor but is not marked 'override' [-Wsuggest-destructor-override]
virtual ~ProcessEnvironment() {
^
/Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/environment.h:360:17: note: overridden virtual function is here
virtual ~Environment();
^
3 warnings generated.
[ 33%] Building CXX object geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/process_unix.cpp.o
In file included from /Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/process_unix.cpp:75:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/xmmintrin.h:13:
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:649:12: note: '__builtin_isless' declared here
return isless(__lcpp_x, __lcpp_y);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/math.h:545:22: note: expanded from macro 'isless'
#define isless(x, y) __builtin_isless((x),(y))
^
In file included from /Users/exing/Documents/repos/point-cloud-utils/external/geogram/src/lib/geogram/basic/process_unix.cpp:75:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/xmmintrin.h:13:
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:33:25: error: too few arguments to function call, expected 2, have 0
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:50:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:67:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:129:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:159:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:189:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:216:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:239:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:260:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:287:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:310:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:331:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:352:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:352:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:373:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:373:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:394:19: error: use of undeclared identifier '__builtin_ia32_paddd'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:352:19: note: '__builtin_arm_addg' declared here
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/mmintrin.h:394:19: error: first argument of MTE builtin function must be a pointer ('__v2si' (vector of 2 'int' values) invalid)
return (__m64)__builtin_ia32_paddd((__v2si)__m1, (__v2si)__m2);
^ ~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [geogram/src/lib/geogram/CMakeFiles/geogram.dir/basic/process_unix.cpp.o] Error 1
make[1]: *** [geogram/src/lib/geogram/CMakeFiles/geogram.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 33%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene.cpp.o
[ 33%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/alloc.cpp.o
[ 34%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/geometry.cpp.o
[ 34%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_user_geometry.cpp.o
[ 34%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_instance.cpp.o
[ 35%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_triangle_mesh.cpp.o
[ 35%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_quad_mesh.cpp.o
[ 36%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_curves.cpp.o
[ 36%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_line_segments.cpp.o
[ 36%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_grid_mesh.cpp.o
[ 37%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_points.cpp.o
[ 37%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/motion_derivative.cpp.o
[ 38%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/bezier_curve.cpp.o
[ 38%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/bspline_curve.cpp.o
[ 38%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/catmullrom_curve.cpp.o
[ 39%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/primitive4.cpp.o
[ 39%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/instance_intersector.cpp.o
[ 40%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_4v.cpp.o
[ 40%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_4i.cpp.o
[ 40%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_4i_mb.cpp.o
[ 41%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_8v.cpp.o
[ 41%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_8i.cpp.o
[ 41%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/curve_intersector_virtual_8i_mb.cpp.o
[ 42%] Building CXX object embree/kernels/CMakeFiles/embree.dir/builders/primrefgen.cpp.o
[ 42%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh.cpp.o
[ 43%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_statistics.cpp.o
[ 43%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh4_factory.cpp.o
[ 43%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh8_factory.cpp.o
[ 44%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_collider.cpp.o
[ 44%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_rotate.cpp.o
[ 45%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_refit.cpp.o
[ 45%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder.cpp.o
[ 45%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_hair.cpp.o
[ 46%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_hair_mb.cpp.o
[ 46%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_morton.cpp.o
[ 47%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_sah.cpp.o
[ 47%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_sah_spatial.cpp.o
[ 47%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_sah_mb.cpp.o
[ 48%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_twolevel.cpp.o
[ 48%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_intersector1_bvh4.cpp.o
[ 48%] Building CXX object embree/kernels/CMakeFiles/embree.dir/common/scene_subdiv_mesh.cpp.o
[ 49%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/tessellation_cache.cpp.o
[ 49%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/subdivpatch1base.cpp.o
[ 50%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/catmullclark_coefficients.cpp.o
[ 50%] Building CXX object embree/kernels/CMakeFiles/embree.dir/geometry/grid_soa.cpp.o
[ 50%] Building CXX object embree/kernels/CMakeFiles/embree.dir/subdiv/subdivpatch1base_eval.cpp.o
[ 51%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_builder_subdiv.cpp.o
[ 51%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_intersector_hybrid4_bvh4.cpp.o
[ 52%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_intersector_stream_bvh4.cpp.o
[ 52%] Building CXX object embree/kernels/CMakeFiles/embree.dir/bvh/bvh_intersector_stream_filters.cpp.o
[ 52%] Linking CXX static library ../libembree3.a
[ 52%] Built target embree
make: *** [all] Error 2
Traceback (most recent call last):
File "/Users/exing/Documents/repos/point-cloud-utils/setup.py", line 116, in <module>
main()
File "/Users/exing/Documents/repos/point-cloud-utils/setup.py", line 89, in main
setuptools.setup(
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 136, in run
self.run_command(cmd_name)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/Users/exing/Documents/repos/point-cloud-utils/setup.py", line 39, in run
self.build_extension(ext)
File "/Users/exing/Documents/repos/point-cloud-utils/setup.py", line 72, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "/opt/homebrew/Caskroom/miniforge/base/envs/rnb/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2. |
hi, I have the same error message when I was trying to build on my Mac. Here's my system info:
Here's the error message from pip install
Here's the error message when building it:
|
This is now fixed! Source builds should work on ARM processors and I'll release wheels in a new version soon |
Hi @fwilliams, I used 0.29.0 source builds and pip for installing.
|
When I install library using pip, installation is fine.
|
@maurock are you able to confirm this? Does the current main branch build and work on your mac? What about when you install from Pip? |
I pip installed and had the same issue as @BupyeongHealer pointed out: |
@ShengyuH can you try building from source? I wonder if this is an issue with the wheels or with the build. The CI passes and should be able to import. Maybe you're getting the wrong wheel for some reason. |
hi Francis, I tried to build from scratch and failed here:
|
@ShengyuH Can you paste the full compiler output? |
I have built it using both |
Are you able to repro the compiler errors? What happens if you do |
@maurock @ShengyuH @BupyeongHealer I got access to an M1 mac to debug. Can you guys try pulling and building from source? I'll cut a 0.29.1 release soon with the fix but I want to make sure it compiles! |
Building from source ( |
Can you pip install from PyPI? New version should be online. |
|
This is weird the shared library it’s trying to import is built for x86. Not sure what gives here. I wonder if the CI is building the wrong thing. Let me investigate |
Is this answer useful?
|
From the output here:
It looks like it's grabbing the right wheel. But then the import error here:
implies that the .so file that the CI is building is for x86_64 which is not quite right. I need to look into how the CI is running ARM builds. My hypothesis is that they are building on an intel machine but passing a flag to generate ARM assembly. If that's the case, we're not checking for this flag. This is quite annoying to debug since it means adding prints, running the CI, and waiting 🤣 |
Just adding to this - when installing from source on linux I am getting import errors as well - not quite the exact same, but similar:
I have tried |
ignore my comment - I was trying to use pcu from its build directory and I think it was just finding the one in the directory before finding the installed version. Moving directories lets me use the installed version fine. |
Hello just wondering if there was any fix for this? I have the same error as @BupyeongHealer. Thanks! |
Just realised the solution (#59 ) is to currently build from source. Will do that for now. Thanks. |
I've tried
pip install -vvv point-cloud-utils
and building from source. Here's the error log:The text was updated successfully, but these errors were encountered: