Compiling ethminer update:it seems that cmake fucks something up setting up
std c++11 twice unnecessarily for some reason, the error in question is on libethash-cuda/CMakeFiles/ethash-cuda.dir/stuff

editing flags.make there and removing the --std=c++11 creates all sorts of problems.
but using VERBOSE=1 during make -j4 i can see that NVCC is right, std c++11 is defined TWICE, removing the second one, fucks something up, but i have no idea how to remove the first one.
this is the line with the error (it may not be the only one, but until we/I/whoever!

fix this we probably won't see the next ones.
/opt/miners/cpp-ethereum/build/libethash-cuda/CMakeFiles/ethash-cuda.dir//ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.NVCC-depend -ccbinusr/bin/cc -m64 --std c++11 -DETH_JSONRPC -DETH_READLINE -DETH_ETHASHCUDA -DETH_STRATUM -DETH_CURL -DETH_FRONTIER -DETH_TRUE -Xcompiler ,\"-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_61,code=sm_61 -O3 -DNVCC -I/usr/local/cuda/include -I/opt/miners/cpp-ethereum/build/gen -I/opt/miners/cpp-ethereum/build -I/opt/miners/cpp-ethereum/build/libethash-cuda -I/usr/local/cuda/include -I/opt/miners/cpp-ethereum/libethash-cuda/..
nvcc fatal : redefinition of argument 'std'
CMake Error at ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o.cmake:207 (message):
Error generating
/opt/miners/cpp-ethereum/build/libethash-cuda/CMakeFiles/ethash-cuda.dir//./ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o
any clues where can i look?, i will keep digging cmake to see if i can nailed it, because i really don't want to change cuda 8 and drivers, is pain and takes forever and may not even be the problem, could be very easily a cmake/c++/gcc version issue, dunno.
--== EDIT: ==--
UPDATE: in
CMakeCache.txt the line that says:
//Propagate C/CXX_FLAGS and friends to the host compiler via -Xcompile
CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON
I changed to OFF and now I compile until 95% without errors when i get:
[95%]
/usr/bin/ld.gold: error: ../libethash-cuda/libetash-cuda.a(ethash-cuda_generated_ethash_cuda_miner_kernel.cu.o): requires unsupported dynamic relloc 11; recompile with -fPIC
I am lost... i have no fucking idea how to recompile with -fPIC, this has to be something related with a cmake config issue due to different version, will try to go back with cmake, make, gcc and g++ to the older version i use in kopiemtu 2.0 (if it is possible, since kopiemtu 2.0 is 14.04 and this is 16.04, we'll see.
--== EDIT 2 ==--
FUCK YEAH, it was the Goddamn cmake muufucka.
downgrade to version 3.2.2 and it........

almost....... compile.
instructions to downgrade:
first get rid of cmake, apt-get remove cmake
then:
cd
wget
http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-x86_64.tar.gztar -zxvf cmake-3.2.2-Linux-x86_64.tar.gz
go to the app dir and move the files in bin tousr/bin
and move the folder cmake-3.2 tousr/share/cmake-3.2 so cmake will not complain.
now remove and recreate build in epp-ethereum and cmake -DCOMPUTE=61 -DBUNDLE=cudaminer ..
it reaches 100% and then explodes with a lot of JSON errors:
sample:
../livedevcore/livdecore.so: error: undefined reference to 'Json::Value::operator[] (std::string const&) '
../livedevcore/livdecore.so: error: undefined reference to 'Json::FastWriter::write (Json::Value const&) '
i got like 50 of those lines, all json related.
any ideas?
at this point, i am tired, will wait until someone throws me a bone

and will give it a try later.
I need a beer, or two, or three.....