triton-lang / triton

Development repository for the Triton language and compiler

Home Page:https://triton-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ninja test failed on M2 mac

zeb209 opened this issue · comments

commented

I was trying to run the C++ tests and it failed on my M2 mac. The folder pip-build-env-jy0o39t7 does not exist. Did I miss something?

cmake.macosx-11.0-arm64-cpython-3.12 % ninja test
[0/1] Re-running CMake...
/bin/sh: /private/var/folders/8k/qdl9xqq123b1h4bfp4y1gpvr0000gn/T/pip-build-env-jy0o39t7/overlay/lib/python3.12/site-packages/cmake/data/bin/cmake: No such file or directory
FAILED: build.ninja 
/private/var/folders/8k/qdl9xqq123b1h4bfp4y1gpvr0000gn/T/pip-build-env-jy0o39t7/overlay/lib/python3.12/site-packages/cmake/data/bin/cmake --regenerate-during-build -S/Users/binzeng/code/triton -B/Users/binzeng/code/triton/python/build/cmake.macosx-11.0-arm64-cpython-3.12
ninja: error: rebuilding 'build.ninja': subcommand failed
commented

I walked around the issue by creating a symlink:

ln -s /path/to/triton/.venv/  /private/var/folders/8k/qdl9xqq123b1h4bfp4y1gpvr0000gn/T/pip-build-env-your-unique-str/overlay