[Rd] error from make: gcc -shared -L/usr/local/lib64 ... relocation R_X86_64_32...

Dick Beyer dbeyer at u.washington.edu
Tue Oct 25 22:22:13 CEST 2005


I hope someone can point me, a newcomer to building R as well as 64-bit R, in 
a useful direction.  I have a dual Opteron 275 box running RedHat EL4.  I ran 
configure successfully, and, then, get the following error while running make:

make[4]: Entering directory `/tmp/R-2.2.0/src/modules/lapack'  
g77 -fPIC  -g -O2 -ffloat-store -c dlamc.f -o dlamc.lo  
g77  -fPIC  -g -O2 -c dlapack0.f -o dlapack0.lo  
g77  -fPIC  -g -O2 -c dlapack1.f -o dlapack1.lo  
g77  -fPIC  -g -O2 -c dlapack2.f -o dlapack2.lo  
g77  -fPIC  -g -O2 -c dlapack3.f -o dlapack3.lo  
g77  -fPIC  -g -O2 -c cmplx.f -o cmplx.lo  
g77  -fPIC  -g -O2 -c cmplxblas.f -o cmplxblas.lo  
gcc -shared -L/usr/local/lib64  -o libRlapack.so dlamc.lo dlapack0.lo  
dlapack1.lo dlapack2.lo dlapack3.lo cmplx.lo  cmplxblas.lo  -lg2c -lm -lgcc_s  
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/3.4.4/libg2c.a(s_cat.o):  
relocation R_X86_64_32 against `a local symbol' can not be used when making a  
shared object; recompile with -fPIC  
/usr/lib/gcc/x86_64-redhat-linux/3.4.4/libg2c.a: could not read symbols: Bad  
value  
collect2: ld returned 1 exit status  
make[4]: *** [libRlapack.so] Error 1


I am confused by the error message "recompile with -fPIC" since it looks like  
all the lapack routines are already being compiled with -fPIC. I did struggle 
with getting all the right development packages installed, so maybe I am 
missing some critical package?

Any help, suggestions, or pointers to 64-bit RedHat EL4 would be greatly  
appreciated.

Thanks very much,  
Dick

******************************************************************************* 
Richard P. Beyer, Ph.D. University of Washington 
Tel.:(206) 616 7378 Env. & Occ. Health Sci. , Box 354695 
Fax: (206) 685 4696 4225 Roosevelt Way NE, # 100
    Seattle, WA 98105-6099 
http://depts.washington.edu/ceeh/ServiceCores/FC5/FC5.html 
http://staff.washington.edu/~dbeyer



More information about the R-devel mailing list