Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 9 make error : /usr/bin/ld: final link failed: Nonrepresentable section on output #36

Open
kevinhooke opened this issue Dec 15, 2017 · 2 comments

Comments

@kevinhooke
Copy link

Attempting to build on Debian 9, ./autogen.sh and ./configure complete successfully, but make fails with:
/usr/bin/ld: cryptonight/cryptonight.o: relocation R_X86_64_32S against .bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: cryptonight/cuda_cryptonight_core.o: relocation R_X86_64_32S against .bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: cryptonight/cuda_cryptonight_extra.o: relocation R_X86_64_32S against .bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:529: recipe for target 'ccminer' failed
make[2]: *** [ccminer] Error 1
make[2]: Leaving directory '/home/kev/ccminer-cryptonight'
Makefile:729: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/kev/ccminer-cryptonight'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2
`
Any suggestions on how to get beyond this?

@asgs
Copy link

asgs commented Dec 21, 2017

I'm facing this, too. I'm trying to compile ccminer and I get this for lot of object files, not just ccminer-cryptonight. I did add -fPIC to the flags and I could see it being added to the g++, but it still errors out with that message

@ftherese
Copy link

ftherese commented Jan 21, 2018

not sure, but could be something useful here... I'm on Ubuntu 17 with same problem:
ethereum-mining/ethminer@186d055

Following those changes I was able to get ccminer to compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants