Skip to content
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

clang failed: error executing command (from target //voxeloo/common:knn) during './b data-snapshot run' #86

Open
linever opened this issue Nov 1, 2023 · 1 comment

Comments

@linever
Copy link

linever commented Nov 1, 2023

[Optional] Relevant system information

  • Operating system (destop-Ubuntu 20.04 / wsl-Ubuntu 20.04)
  • llvm-16 / llvm-14
  • gcc-9
  • bazel-6.4.0

What you did

ollowing the https://docs.biomes.gg/docs/basics/running-locally. All is ok, until:

Running `pip install ./voxeloo`...

Processing ./voxeloo
Building wheels for collected packages: voxeloo
  Building wheel for voxeloo (setup.py) ... /sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.6 10error
  ERROR: Command errored out with exit status 1:
   command: /mnt/f/Users/linever/Desktop/codes/.venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-5yj0_5ex/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-5yj0_5ex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-quc8rfkc
       cwd: /tmp/pip-req-build-5yj0_5ex/
  Complete output (242 lines):
  running bdist_wheel
  running build
  running build_ext
  WARNING: Running Bazel server needs to be killed, because the startup options are different.
  Loading:
  Loading:
  Loading:
  Loading: 0 packages loaded
  Analyzing: target //voxeloo/py_ext:py_ext.so (1 packages loaded, 0 targets configured)
  Analyzing: target //voxeloo/py_ext:py_ext.so (97 packages loaded, 1307 targets configured)
  INFO: Analyzed target //voxeloo/py_ext:py_ext.so (100 packages loaded, 4486 targets configured).
  INFO: Found 1 target...
  [0 / 124] [Prepa] Writing script voxeloo/py_ext/py_ext.so.cppmap
  [96 / 161] Executing genrule @local_config_python//:python_include; 0s local ... (31 actions, 16 running)
  [110 / 161] Compiling OpenSimplexNoise/OpenSimplexNoise.cpp; 1s linux-sandbox ... (20 actions, 17 running)
  [126 / 161] Compiling lib/compress/zstd_opt.c; 2s linux-sandbox ... (9 actions, 4 running)
  [127 / 161] Compiling lib/compress/zstd_opt.c; 3s linux-sandbox ... (33 actions, 16 running)
  [133 / 161] Compiling lib/compress/zstd_opt.c; 4s linux-sandbox ... (27 actions, 16 running)
  ERROR: /mnt/f/Users/linever/Desktop/codes/test2/biomes-game/voxeloo/common/BUILD.bazel:66:11: Compiling voxeloo/common/boxifier.cpp failed: (Exit 1): clang failed: error executing command (from target //voxeloo/common:boxifier) /usr/lib/llvm-14/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 ... (remaining 60 arguments skipped)

Additional information

I have try ubuntu 20.04 of destop and wsl in windows 11 of another destop. The above faulty always exits.

@Nerocon
Copy link

Nerocon commented Dec 5, 2023

I solved a similar issue by ensuring clang or GCC was installed in my python environment, not just the main system itself.

Are you launching the snapshot in the python venv?
Is clang or GCC installed in the same python venv?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants