princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.42k stars 470 forks source link

Issue with NURBS: tried: '../creatures/geometry/cpp_utils/bnurbs.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) #60

Closed aplatyps closed 1 year ago

aplatyps commented 1 year ago

When running assets_demo.py on a MacOS with arm64 architecture, I got an error regarding the bnurbs.cpython-310-darwin.so that need 'x86_64' even though during install.sh the NURBS is built for arm64

Steps to Reproduce

$ git log -n 1
commit d17fa4a557129167ec8d21021fa091ceed8d5bec (HEAD -> main, origin/main, origin/HEAD)
$ python -m asset_demo --output_folder custom2 -t render -g base -s 6312 --debug
Traceback (most recent call last):
File "/opt/anaconda3/envs/infinigen/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/anaconda3/envs/infinigen/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/infinigen/worldgen/asset_demo.py", line 19, in <module>
    from terrain import Terrain
  File "/infinigen/worldgen/terrain/__init__.py", line 7, in <module>
    from .core import Terrain
  File "/infinigen/worldgen/terrain/core.py", line 15, in <module>
    from terrain.mesher import OpaqueSphericalMesher, TransparentSphericalMesher, UniformMesher
  File "/infinigen/worldgen/terrain/mesher/__init__.py", line 7, in <module>
    from .uniform_mesher import UniformMesher
  File "/infinigen/worldgen/terrain/mesher/uniform_mesher.py", line 12, in <module>
    from terrain.utils import ASDOUBLE, ASINT, Mesh
  File "/infinigen/worldgen/terrain/utils/__init__.py", line 7, in <module>
    from .mesh import Mesh, write_attributes, Vars, move_modifier
  File "/infinigen/worldgen/terrain/utils/mesh.py", line 18, in <module>
    from .camera import getK
  File "/infinigen/worldgen/terrain/utils/camera.py", line 10, in <module>
    from placement.camera import get_camera
  File "/infinigen/worldgen/placement/camera.py", line 36, in <module>
    from . import animation_policy
  File "/infinigen/worldgen/placement/animation_policy.py", line 20, in <module>
    from assets.creatures.geometry.curve import Curve
  File "/infinigen/worldgen/assets/creatures/__init__.py", line 1, in <module>
    from .genomes.beetle import BeetleFactory, AntSwarmFactory
  File "/infinigen/worldgen/assets/creatures/genomes/beetle.py", line 17, in <module>
    from assets.creatures import parts
  File "/infinigen/worldgen/assets/creatures/parts/__init__.py", line 1, in <module>
    from . import body, foot, wings, leg, head, \
  File "/infinigen/worldgen/assets/creatures/parts/body.py", line 11, in <module>
    from assets.creatures.creature import Part, PartFactory
  File "/infinigen/worldgen/assets/creatures/creature.py", line 19, in <module>
    from assets.creatures.geometry import lofting, skin_ops
  File "/infinigen/worldgen/assets/creatures/geometry/lofting.py", line 17, in <module>
    from .nurbs import nurbs
File "/infinigen/worldgen/assets/creatures/geometry/nurbs.py", line 17, in <module>
    from .cpp_utils import bnurbs
ImportError: dlopen(/infinigen/worldgen/assets/creatures/geometry/cpp_utils/bnurbs.cpython-310-darwin.so, 0x0002): tried: '/infinigen/worldgen/assets/creatures/geometry/cpp_utils/bnurbs.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), 

the full output logs of install.sh

Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
shub
==> New Casks
rio

You have 3 outdated formulae installed.

Warning: llvm 16.0.6 is already installed and up-to-date.
...
Warning: glew 2.2.0_1 is already installed and up-to-date.

Requirement already satisfied: numcodecs in /opt/anaconda3/envs/infinigen/lib/python3.10/site-packages (from -r ./requirements.txt (line 1)) (0.11.0)
...
./Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages (from rasterio>=1.2->rioxarray->bmi-topography->landlab==2.4.1->-r ./requirements.txt (line 30)) (1.1.1)
skipping cuda
compiled lib/cpu/utils/FastNoiseLite.so
compiled lib/cpu/elements/voronoi_rocks.so
compiled lib/cpu/elements/upsidedown_mountains.so
compiled lib/cpu/elements/ground.so
compiled lib/cpu/elements/warped_rocks.so
compiled lib/cpu/elements/mountains.so
compiled lib/cpu/elements/landtiles.so
compiled lib/cpu/elements/atmosphere.so
compiled lib/cpu/elements/waterbody.so
compiled lib/cpu/surfaces/chunkyrock.so
compiled lib/cpu/surfaces/cobble_stone.so
compiled lib/cpu/surfaces/cracked_ground.so
compiled lib/cpu/surfaces/dirt.so
compiled lib/cpu/surfaces/ice.so
compiled lib/cpu/surfaces/mountain.so
compiled lib/cpu/surfaces/mud.so
compiled lib/cpu/surfaces/sand.so
compiled lib/cpu/surfaces/sandstone.so
compiled lib/cpu/surfaces/snow.so
compiled lib/cpu/surfaces/soil.so
compiled lib/cpu/surfaces/stone.so
compiled lib/cpu/meshing/cube_spherical_mesher.so
compiled lib/cpu/meshing/frontview_spherical_mesher.so
compiled lib/cpu/meshing/uniform_mesher.so
compiled lib/cpu/meshing/utils.so
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/layermap.h:211:29: note: in instantiation of function template specialization 'secpool::get<double &, unsigned long &>' requested here
      add(ivec2(i, j), pool.get(h, layers[l].type));
                            ^
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/particle/particle.h:101:30: note: in instantiation of function template specialization 'secpool::get<float &, unsigned long &>' requested here
      map.add(bpos, map.pool.get(transfer, param.cascades));
                             ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/particle/water.h:147:30: note: in instantiation of function template specialization 'secpool::get<double, unsigned long &>' requested here
      map.add(ipos, map.pool.get(-soils[contains].equrate*cdiff*volume, contains));
                             ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/particle/water.h:176:28: note: in instantiation of function template specialization 'secpool::get<double, int &>' requested here
    map.add(ipos, map.pool.get(volume*volumeFactor, soilmap["Air"]));
                           ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
source/cpu/soil_machine/particle/water.h:300:32: note: in instantiation of function template specialization 'secpool::get<double &, int &>' requested here
        map.add(bpos, map.pool.get(transfer, soilmap["Air"]));
                               ^
In file included from source/cpu/soil_machine/SoilMachine.cpp:18:
source/cpu/soil_machine/layermap.h:112:19: warning: unqualified call to 'std::forward' [-Wunqualified-std-cast-call]
  try{ new (E)sec(forward<Args>(args)...); }
                  ^
                  std::
10 warnings generated.
compiled lib/cpu/soil_machine/SoilMachine.so
running build_ext
running build_src
build_src
building extension "marching_cubes._marching_cubes_lewiner_cy" sources
build_src: building npy-pkg config files
customize UnixCCompiler
customize UnixCCompiler using build_ext
CCompilerOpt.cc_test_flags[1013] : testing flags (-march=native)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

creating /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks
compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=native'
CCompilerOpt.cc_test_flags[1013] : testing flags (-O3)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-O3'
CCompilerOpt.cc_test_flags[1013] : testing flags (-Werror-implicit-function-declaration)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-Werror-implicit-function-declaration'
CCompilerOpt.cc_test_flags[1013] : testing flags (-Werror)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-Werror'
CCompilerOpt.__init__[1701] : check requested baseline
CCompilerOpt.feature_test[1466] : testing feature 'ASIMD' with flags ()
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-Werror-implicit-function-declaration -Werror'
CCompilerOpt.feature_test[1466] : testing feature 'NEON_VFPV4' with flags ()
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-Werror-implicit-function-declaration -Werror'
CCompilerOpt.feature_test[1466] : testing feature 'NEON' with flags ()
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-Werror-implicit-function-declaration -Werror'
CCompilerOpt.feature_test[1466] : testing feature 'NEON_FP16' with flags ()
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-Werror-implicit-function-declaration -Werror'
CCompilerOpt.__init__[1710] : check requested dispatch-able features
CCompilerOpt.cc_test_flags[1013] : testing flags (-march=armv8.2-a+fp16)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=armv8.2-a+fp16'
CCompilerOpt.feature_test[1466] : testing feature 'ASIMDHP' with flags (-march=armv8.2-a+fp16)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=armv8.2-a+fp16 -Werror-implicit-function-declaration -Werror'
CCompilerOpt.cc_test_flags[1013] : testing flags (-march=armv8.2-a+fp16fml)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=armv8.2-a+fp16fml'
CCompilerOpt.feature_test[1466] : testing feature 'ASIMDFHM' with flags (-march=armv8.2-a+fp16+fp16fml)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=armv8.2-a+fp16+fp16fml -Werror-implicit-function-declaration -Werror'
CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (/opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c -o /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.o -MMD -MF /work/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.o.d -march=armv8.2-a+fp16+fp16fml -Werror-implicit-function-declaration -Werror) failed with exit status 1 output -> 
infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c:13:35: error: call to undeclared function 'vfmlal_low_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    int ret  = (int)vget_lane_f32(vfmlal_low_u32(vlf, vlhp, vlhp), 0);
                                  ^
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c:13:35: note: did you mean 'vfmlal_low_f16'?
/opt/homebrew/Cellar/llvm/16.0.6/lib/clang/16/include/arm_neon.h:63468:53: note: 'vfmlal_low_f16' declared here
__ai __attribute__((target("fp16fml"))) float32x2_t vfmlal_low_f16(float32x2_t __p0, float16x4_t __p1, float16x4_t __p2) {
                                                    ^
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c:13:21: error: initializing 'float32x2_t' (vector of 2 'float32_t' values) with an expression of incompatible type 'int'
    int ret  = (int)vget_lane_f32(vfmlal_low_u32(vlf, vlhp, vlhp), 0);
                    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/llvm/16.0.6/lib/clang/16/include/arm_neon.h:8008:15: note: expanded from macro 'vget_lane_f32'
  float32x2_t __s0 = __p0; \
              ^      ~~~~
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c:14:36: error: call to undeclared function 'vfmlslq_high_u32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        ret += (int)vgetq_lane_f32(vfmlslq_high_u32(vf, vhp, vhp), 0);
                                   ^
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c:14:36: note: did you mean 'vmlsl_high_u32'?
/opt/homebrew/Cellar/llvm/16.0.6/lib/clang/16/include/arm_neon.h:68854:17: note: 'vmlsl_high_u32' declared here
__ai uint64x2_t vmlsl_high_u32(uint64x2_t __p0, uint32x4_t __p1, uint32x4_t __p2) {
                ^
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/distutils/checks/cpu_asimdfhm.c:14:21: error: initializing 'float32x4_t' (vector of 4 'float32_t' values) with an expression of incompatible type 'int'
        ret += (int)vgetq_lane_f32(vfmlslq_high_u32(vf, vhp, vhp), 0);
                    ^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/llvm/16.0.6/lib/clang/16/include/arm_neon.h:7818:15: note: expanded from macro 'vgetq_lane_f32'
  float32x4_t __s0 = __p0; \
              ^      ~~~~
4 errors generated.

CCompilerOpt.feature_test[1482] : testing failed
CCompilerOpt.cc_test_flags[1013] : testing flags (-march=armv8.2-a+dotprod)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=armv8.2-a+dotprod'
CCompilerOpt.feature_test[1466] : testing feature 'ASIMDDP' with flags (-march=armv8.2-a+dotprod)
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
extra options: '-march=armv8.2-a+dotprod -Werror-implicit-function-declaration -Werror'
CCompilerOpt.__init__[1722] : skip features (NEON_FP16 ASIMD NEON_VFPV4 NEON) since its part of baseline
CCompilerOpt.__init__[1726] : initialize targets groups
CCompilerOpt.__init__[1728] : parse target group simd_test
CCompilerOpt._parse_target_tokens[1939] : skip targets (FMA4 VSX3 SSE2 XOP SSE42 (AVX2 FMA3) AVX512_SKX VSX2 VSX AVX512F) not part of baseline or dispatch-able features
CCompilerOpt._parse_policy_not_keepbase[2051] : skip baseline features (ASIMD)
CCompilerOpt.generate_dispatch_header[2272] : generate CPU dispatch header: (build/src.macosx-11.00-arm64-3.10/numpy/distutils/include/npy_cpu_dispatch_config.h)
CCompilerOpt.generate_dispatch_header[2281] : dispatch header dir build/src.macosx-11.00-arm64-3.10/numpy/distutils/include does not exist, creating it
building 'marching_cubes._marching_cubes_lewiner_cy' extension
compiling C sources
C compiler: /opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64

creating build/temp.macosx-11.00-arm64-3.10/marching_cubes
compile options: '-I/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include -I/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include -Ibuild/src.macosx-11.00-arm64-3.10/numpy/distutils/include -I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c'
clang: ./marching_cubes/_marching_cubes_lewiner_cy.c
In file included from ./marching_cubes/_marching_cubes_lewiner_cy.c:694:
In file included from /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969:
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
 ^
./marching_cubes/_marching_cubes_lewiner_cy.c:34300:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
./marching_cubes/_marching_cubes_lewiner_cy.c:291:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
./marching_cubes/_marching_cubes_lewiner_cy.c:34311:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
./marching_cubes/_marching_cubes_lewiner_cy.c:291:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
./marching_cubes/_marching_cubes_lewiner_cy.c:36043:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
./marching_cubes/_marching_cubes_lewiner_cy.c:291:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
./marching_cubes/_marching_cubes_lewiner_cy.c:36054:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
./marching_cubes/_marching_cubes_lewiner_cy.c:291:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
5 warnings generated.
/opt/homebrew//opt/llvm/bin/clang -bundle -undefined dynamic_lookup -L/Users/brecht/dev/build_darwin/deps/Release/ffi/lib -L/Users/brecht/dev/build_darwin/deps/Release/sqlite/lib -L/Users/brecht/dev/build_darwin/deps/Release/bzip2/lib -L/Users/brecht/dev/build_darwin/deps/Release/lzma/lib -L/Users/brecht/dev/build_darwin/deps/Release/zlib/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 build/temp.macosx-11.00-arm64-3.10/marching_cubes/_marching_cubes_lewiner_cy.o -o ./_marching_cubes_lewiner_cy.cpython-310-darwin.so
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/ffi/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/sqlite/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/bzip2/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/lzma/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/zlib/lib'

########### EXT COMPILER OPTIMIZATION ###########
Platform      : 
  Architecture: aarch64
  Compiler    : clang

CPU baseline  : 
  Requested   : 'min'
  Enabled     : NEON NEON_FP16 NEON_VFPV4 ASIMD
  Flags       : none
  Extra checks: none

CPU dispatch  : 
  Requested   : 'max -xop -fma4'
  Enabled     : ASIMDHP ASIMDDP
  Generated   : none
CCompilerOpt.cache_flush[809] : write cache to path -> /infinigen/worldgen/terrain/build/temp.macosx-11.00-arm64-3.10/ccompiler_opt_cache_ext.py
/infinigen/worldgen/assets/creatures/geometry/cpp_utils/setup_macos_as.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.core import setup, Extension
running build_ext
building 'bnurbs' extension
creating build
creating build/temp.macosx-11.00-arm64-3.10
/opt/homebrew//opt/llvm/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/brecht/dev/build_darwin/deps/Release/sqlite/include -I/Users/brecht/dev/build_darwin/deps/Release/bzip2/include -I/Users/brecht/dev/build_darwin/deps/Release/lzma/include -I/Users/brecht/dev/build_darwin/deps/Release/zlib/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -l/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include -I/infinigen/Blender.app/Contents/Resources/3.3/python/include/python3.10 -c bnurbs.c -o build/temp.macosx-11.00-arm64-3.10/bnurbs.o
In file included from bnurbs.c:706:
In file included from /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969:
/infinigen/Blender.app/Contents/Resources/3.3/python/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
 ^
bnurbs.c:21337:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
bnurbs.c:303:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
bnurbs.c:21348:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
                    CYTHON_FALLTHROUGH;
                    ^
bnurbs.c:303:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
                                 ^
3 warnings generated.
/opt/homebrew//opt/llvm/bin/clang -bundle -undefined dynamic_lookup -L/Users/brecht/dev/build_darwin/deps/Release/ffi/lib -L/Users/brecht/dev/build_darwin/deps/Release/sqlite/lib -L/Users/brecht/dev/build_darwin/deps/Release/bzip2/lib -L/Users/brecht/dev/build_darwin/deps/Release/lzma/lib -L/Users/brecht/dev/build_darwin/deps/Release/zlib/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=11.00 -arch arm64 build/temp.macosx-11.00-arm64-3.10/bnurbs.o -o /infinigen/worldgen/assets/creatures/geometry/cpp_utils/bnurbs.cpython-310-darwin.so -L/opt/homebrew/lib
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/ffi/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/sqlite/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/bzip2/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/lzma/lib'
ld: warning: directory not found for option '-L/Users/brecht/dev/build_darwin/deps/Release/zlib/lib'

Platform

Additional context I tried building the bnurbs.cpython-310-darwin.so with setup_macos.py as well, still get the same error when running asset_demo.py

araistrick commented 1 year ago

Hello, apologies for the issue. Unfortunately I dont see anything fatal in your install logs, the whole 'directory not found for -L/Users/brecht' is expected due to I think a blender developer leaving one of his paths in the final build, it is not a fatal error.

Are there any other logs before or after this that show a fatal error? Otherwise, I will try have someone on our team replicate the bug, or failing that you may have to wait until 1.1 in a few weeks at which point we will be using a much more standardized install procedure.

araistrick commented 1 year ago

Closed due to inactivity - please reopen if you are still encountering issues. You may also have better luck with our rc_1.1.1 prelease branch.