Open tina80lvl opened 2 years ago
Thanks for submitting an issue.
What version of cmake do you have on your system?
cmake version 3.19.1
Thanks.
I'm a little concerned about that version of CMake, since it seems Apple Silicon support was added in CMake 3.19.2: https://cmake.org/cmake/help/v3.19/release/3.19.html#platforms. You might try using a newer version of CMake to see if it resolves the issue (and generates arm64 binaries or fat binaries for OpenCilk, instead of just x86_64 binaries).
Updated CMake to version=3.22.1, got the same problem🥲
Just to double check, after you updated CMake, did you clear the build directory before rerunning? (Otherwise, CMake may have reused a value it cached from a previous run, which could cause it to fail the same way.)
It also looks like you're building OpenCilk version 1.0. You might try building OpenCilk version 1.1 instead by cloning a fresh copy of the infrastructure repo and following the updated instructions here in INSTALLING.md.
I do exactly how you say. Cloning an actual version of OpenCilk from repo (did it 2 days ago). About build folder - yes, I did cleanup and got the same error after that.
Strange. Unfortunately I'm having trouble replicating the issue on my end.
I have a few thoughts and ideas, though, for diagnosing or working around the issue:
infrastructure/tools/build
, try replacing this line https://github.com/OpenCilk/infrastructure/blob/release/tools/build#L80 with the following:
: "${COMPILER_RT_RUNTIMES:=";compiler-rt;libcxx;libcxxabi"}" ;;
(In other words, change COMPILER_RT_COMPONENTS
to COMPILER_RT_RUNTIMES
in that line.) Then rebuild (with a clean build directory) and see if the issue persists or changes.infrastructure/tools/build
, try replacing this line https://github.com/OpenCilk/infrastructure/blob/release/tools/build#L80 with the following:
: "${COMPILER_RT_COMPONENTS:=";libcxx;libcxxabi"}" ;;
(In other words, undo the previous change, and then remove ;compiler-rt
from the list.) Then rebuild and see if the issue persists or changes. (If this builds successfully, the resulting OpenCilk system won't have Google's sanitizers, but it should still have Cilksan and Cilkscale.)infrastructure/tools/build
, try adding -DCMAKE_SIZEOF_VOID_P=8
right before this line: https://github.com/OpenCilk/infrastructure/blob/release/tools/build#L107, then rebuild and see if the issue persists or changes. You might also try combining this change with one of the above changes.Let us know how that goes.
Got an error while building sources with
infrastructure/tools/build $(pwd)/opencilk $(pwd)/build
command. Terminal opened with Rosetta.MacBook Pro 2020 macOS Big Sur 11.6 Apple M1 chip clang-1300.0.29.3 x86_64-apple-darwin20.6.0