You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems some misunderstanding about options for Cmake?
-- Configuring done
-- Generating done
-- Build files have been written to: xxxxxxxx/grin/dev/grin-miner/grin-miner/target/debug/build/cuckoo_miner-86e8b47af42b98f9/out/build
running: "cmake" "--build" "." "--target" "" "--config" "Debug" "--parallel" "8"
--- stderr
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_FLAGS
Usage: cmake --build
[options] [-- [native-options]]
cmake --build --preset [options] [-- [native-options]]
Options:
= Project binary directory to be built.
--preset , --preset=
= Specify a build preset.
--list-presets
= List available build presets.
--parallel [], -j []
= Build in parallel using the given number of jobs.
The text was updated successfully, but these errors were encountered:
gringum
changed the title
Apple Silicon - cannot compile
Apple Silicon - build failed
Dec 3, 2021
when I go a little bit deeper I think maybe the --target "" might be problem and then I also see that -march=native is throwing some errors
[ 15%] Building CXX object CMakeFiles/cuckatoo_mean_cpu_avx2_31.dir/cuckoo/src/cuckatoo/mean.cpp.o
[ 17%] Building CXX object CMakeFiles/cuckatoo_lean_cpu_compat_31.dir/cuckoo/src/cuckatoo/lean.cpp.o
clangclang: : clangclang: : clang: errorerrorerror: : : the clang compiler does not support '-march=native'the clang compiler does not support '-march=native'the clang compiler does not support '-march=native'
error: the clang compiler does not support '-march=native'
error: the clang compiler does not support '-march=native'
AFAIK the option -march=native will not work on Apple M1.
Out of curiosity I've tried replacing it with -mcpu=apple-m1 and managed to start the build of Cuckoo (https://github.com/tromp/cuckoo/tree/master/src/cuckoo).
No luck to build the whole cuckoo-miner crate though.
It seems some misunderstanding about options for Cmake?
-- Configuring done
-- Generating done
-- Build files have been written to: xxxxxxxx/grin/dev/grin-miner/grin-miner/target/debug/build/cuckoo_miner-86e8b47af42b98f9/out/build
running: "cmake" "--build" "." "--target" "" "--config" "Debug" "--parallel" "8"
--- stderr
CMake Warning:
Manually-specified variables were not used by the project:
Usage: cmake --build
[options] [-- [native-options]]cmake --build --preset [options] [-- [native-options]]
Options:
= Project binary directory to be built.
--preset , --preset=
= Specify a build preset.
--list-presets
= List available build presets.
--parallel [], -j []
= Build in parallel using the given number of jobs.
The text was updated successfully, but these errors were encountered: