AnsweredAssumed Answered

Compile R with Open64 4.5.1 failed with -fPIC related error

Question asked by klin938 on Jul 17, 2012
Latest reply on Aug 9, 2012 by santosh.zanjurne

Hi guys,

 

I am trying to compile R 2.15.1 with Open64 4.5.1 and ACMP 5.1.9 (open64_64_fma4_mp).

 

The configure went without an error but when I compiled it, it failed when linking objects for libR.so:

 

/usr/bin/ld: eval.o: relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
eval.o: could not read symbols: Bad value
collect2: ld returned 1 exit status

 

So I saw the -fPIC indeed wasn't there, so I modified the Makeconf to include -fPIC, but it still failed with the same error. I also tried -fpic install, no help.

 

I am using CentOS 6.2 x86_64.

 

Regards,

Derrick

Outcomes