Post
Topic
Board Mining (Altcoins)
Re: ethminer-0.9.41-genoil-1.0.7
by
ComaWombat
on 30/04/2016, 19:11:13 UTC
cmake -DBUNDLE=cudaminer -DCOMPUTE=30 -DCUDA_HOST_COMPILER=/usr/bin/gcc-4.9 ..
worked on my testbench on 15.10 the server is still down need to try it there to.

i did a try on 16.04 but got som errors. used the same cmake a on 15.10
[ 11%] Built target ethash
[ 51%] Built target devcore
[ 57%] Built target ethstratum
[ 59%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
[ 66%] Built target ethash-cl
nvcc fatal   : redefinition of argument 'std'
CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake:207 (message):
  Error generating
  /home/mattias/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o


libethash-cuda/CMakeFiles/ethash-cuda.dir/build.make:63: recipe for target 'libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o' failed
make[2]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o] Error 1
CMakeFiles/Makefile2:350: recipe for target 'libethash-cuda/CMakeFiles/ethash-cuda.dir/all' failed
make[1]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 66%] Built target BuildInfo.h
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2


I got the NVCC fatal STD error too when building with cmake 3.5.1 but I finally got it compiled on my Ubuntu 16.04 laptop using the following steps:

- removed cmake 3.5.1
- downloaded cmake 3.2.2, built it from source and installed it
- added the following line as the first line of CMakeLists.txt:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")

And that was that. I didn't use any special flags and arguments to build it, just the  "sudo cmake -DBUNDLE=cudaminer"

I still haven't tried this on my mining rig though, it was just a test compile on my laptop.