cbuchner1 / CudaMiner

a CUDA accelerated litecoin mining application based on pooler's CPU miner
Other
687 stars 304 forks source link

Error compiling Cudaminer #161

Open AdemilsonSouza opened 6 years ago

AdemilsonSouza commented 6 years ago

Error compiling Cudaminer

Good afternoon

I have the following error message:

"/ usr / bin / ld: end link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status Makefile: 508: recipe for target 'cudaminer' failed make [2]: [cudaminer] Error 1 make [2]: Leaving directory '/ home / ademilson / Downloads / CudaMiner-master' Makefile: 688: recipe for target 'all-recursive' failed make [1]: [all-recursive] Error 1 make [1]: Leaving directory '/ home / ademilson / Downloads / CudaMiner-master' Makefile: 412: recipe for target 'all' failed make: *** [all] Error 2 "

My system is Debian Strech 9.2, does anyone have any suggestions for me to select the problem?

Thank you

charlieporth1 commented 6 years ago
gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -msse2  -fopenmp -pthread -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME   -g -O2 -MT cudaminer-cpu-miner.o -MD -MP -MF .deps/cudaminer-cpu-miner.Tpo -c -o cudaminer-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
gcc: error: unrecognized command line option '-msse2'
Makefile:542: recipe for target 'cudaminer-cpu-miner.o' failed
make[2]: *** [cudaminer-cpu-miner.o] Error 1
make[2]: Leaving directory '/mnt/HDD/CUDAMiner'
Makefile:688: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/mnt/HDD/CUDAMiner'
Makefile:412: recipe for target 'all' failed
make: *** [all] Error 2

I get it too

hilga007 commented 6 years ago

Are you using Ubuntu 14.04?

AdemilsonSouza commented 6 years ago

My system is Debian Strech 9.2, does anyone have any suggestions for me to select the problem?

Thank you

hilga007 commented 6 years ago

Shoot. I ran into that on Ubuntu 16.04 which was too new and used 14.04.... wonder if that’s the same with your version of Debian.

Had to install the older CUDA SDK and compatible driver as well... which version are you using??

Sephiroth4269 commented 6 years ago

How do you even get this program to compile? There isn't a bat file or exe file. I'm not trying to seem like a complete novice, but getting this off the ground from scratch is a bit out of my realm of knowledge.