mimblewimble / cuckoo-miner

Mining wrapper around the Cuckoo Cycle proof of work system for the Grin/MimbleWimble blockchain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cuckoo_miner not compiling on Raspberry Pi 3 Jessie/GCC 6.3

photis opened this issue · comments

Fur tracking purposes.

On a standard Raspberry Pi 3 (arch: armv7) where I "up-fitted" Jessie with GCC 6.3.0 (I can't use Stretch because of its wifi issues). Probable cause: hard-coded x86 compiler flags (-m64 -mavx2) in some build scripts.

Full build log here:
https://gist.github.com/oriste/6890a1d1b820704c036fb6d33d7a7c3e

Seeing this too

running: "cmake" "/home/pi/.cargo/git/checkouts/cuckoo-miner-4752934f0f1f2bfe/d017db6/src/cuckoo_sys/plugins" "-DBUILD_CUDA_PLUGINS=FALSE" "-DCMAKE_INSTALL_PREFIX=/home/pi/grin/target/release/build/cuckoo_miner-bba6cbfbce89fa3d/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -march=armv7-a" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/grin/target/release/build/cuckoo_miner-bba6cbfbce89fa3d/out/build
running: "cmake" "--build" "." "--target" "" "--config" "Release" "--"
Scanning dependencies of target mean_compat_cpu_16
[  5%] Building CXX object CMakeFiles/mean_compat_cpu_16.dir/cuckoo/src/mean_miner.cpp.o
CMakeFiles/mean_compat_cpu_16.dir/build.make:62: recipe for target 'CMakeFiles/mean_compat_cpu_16.dir/cuckoo/src/mean_miner.cpp.o' failed
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mean_compat_cpu_16.dir/all' failed
Makefile:83: recipe for target 'all' failed

--- stderr
c++: error: unrecognized command line option ‘-m64’
make[2]: *** [CMakeFiles/mean_compat_cpu_16.dir/cuckoo/src/mean_miner.cpp.o] Error 1
make[1]: *** [CMakeFiles/mean_compat_cpu_16.dir/all] Error 2
make: *** [all] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2

@yeastplume @tromp

Seems -m64 is not needed. Will take it out of my Makefile. Once Yeastplume updates this should no longer be a problem...