ubuntu 14.04 cuda-7.5 and use cmake -DCOMPUTE=30 -DBUNDLE=cudaminer .. from cpp-ethereum/build
with: installed
apt-get install build-essential fakeroot dh-make debconf execstack dh-modaliases dkms pkg-config
apt-get install libtool libncurses5-dev libcryptopp-dev libleveldb-dev libjsoncpp-dev libargtable2-dev libjson-rpc-cpp-dev
apt-get install libmicrohttpd-dev libreadline-dev libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
apt-get install -f libsdl2-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libgmp-dev cpuid
[ 65%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
cdroot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir &&usr/bin/cmake -E make_directoryroot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//.
cdroot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir &&usr/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING=Release -D generated_file:STRING=/root/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o -D generated_cubin_file:STRING=/root/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cubin.txt -Proot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake
-- Removingroot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
/usr/bin/cmake -E removeroot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
-- Generating dependency file:root/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.NVCC-depend
/usr/bin/nvcc -M -D__CUDACC__root/cpp-ethereum/libethash-cuda/ethash_cuda_miner_kernel.cu -oroot/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.NVCC-depend -ccbinusr/bin/gcc-4.8 -m64 -DETH_JSONRPC -DETH_READLINE -DETH_MINIUPNPC -DETH_ETHASHCL -DETH_ETHASHCUDA -DETH_STRATUM -DETH_CPUID -DETH_CURL -DETH_FRONTIER -DETH_TRUE -Xcompiler ,\"-std=c++11\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-Wextra\",\"-Wno-error=parentheses\",\"-pedantic\",\"-DSHAREDLIB\",\"-fPIC\",\"-fuse-ld=gold\",\"-O3\",\"-DNDEBUG\",\"-DETH_RELEASE\" --std=c++11 --disable-warnings --ptxas-options=-v -use_fast_math -lineinfo -gencode arch=compute_30,code=sm_30 -O3 -DNVCC -I/usr/include -I/root/cpp-ethereum/build2/gen -I/root/cpp-ethereum/build2 -I/root/cpp-ethereum/build2/libethash-cuda -I/usr/include -I/root/cpp-ethereum/libethash-cuda/..
nvcc fatal : Unknown option '-std'
CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake:206 (message):
Error generating
root/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
make[2]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o] Error 1
make[2]: Leaving directory `/root/cpp-ethereum/build2'
make[1]: *** [libethash-cuda/CMakeFiles/ethash-cuda.dir/all] Error 2
make[1]: Leaving directory `/root/cpp-ethereum/build2'
make: *** [all] Error 2
edit this file:
/root/cpp-ethereum/build2/libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake
look for lines that set the nvcc_flags:
set(CUDA_NVCC_FLAGS ..........
-std isn't a valid option for some versions of mvcc - so, remove that option.
My line looks like this:
set(CUDA_NVCC_FLAGS --disable-warnings;--ptxas-options=-v;-use_fast_math;-lineinfo;-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50 ;; )
Also, stop building as root:)
sudo is your friend, my friend.