Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/bin/ld: final link failed: Bad value

Tags:

r

hash

I am using centOS 7. I was trying to install 'digest' package on R 3.5.0.

install.packages('digest')

But failed compilation with this error :

/usr/bin/ld: aes.o: unrecognized relocation (0x2a) in section `.text.aes_set_key' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
make: ***[/opt/R/3.5.0/lib64/R/share/make/shlib.mk:6: digest.so] Error 1 ERROR: compilation failed for package ‘digest’ * removing ‘/opt/R/3.5.0/lib64/R/library/digest’

Do you have any suggestions?

like image 901
Woo Avatar asked May 17 '26 05:05

Woo


1 Answers

I have installed the library in my Ubuntu24.04 LTS using

sudo apt install binutils

Then I made sure that everything is starting fresh, so I cleaned the project using:- make clean then rebuilt it using make.

This is what worked for me, make sure to clean the project before building it again.

like image 97
Abhyam Gupta Avatar answered May 22 '26 01:05

Abhyam Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!