I'm trying to build the r package on RHEL4 64-bit platform but it fails
with this:

/usr/local/bin/cc -std=gnu99 -I. -I../../../src/include
-I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H   -fpic
-fPIC -c Lapack.c -o Lapack.o
/usr/local/bin/cc -std=gnu99 -shared -L/usr/local/lib -o lapack.so
Lapack.o   -L../../../lib -lRlapack -L../../../lib -lRblas -lgfortran
-lm /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/libgfortranbegin.a 
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/libgfortran.a
/usr/local/bin/ld: skipping
incompatible /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/libgfortran.a 
when searching for -lgfortran
/usr/local/bin/ld: 
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib64/libgfortran.a(pow_i4_i4.o):
 relocation R_X86_64_32 against `a local symbol' can not be used when making a 
shared object; recompile with -fPIC
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib64/libgfortran.a:
 could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [lapack.so] Error 1
make[3]: *** [R] Error 2
make[2]: *** [R] Error 1
make[1]: *** [R] Error 1
make: *** [R] Error 1

Has anybody come across this?

-- 
David M. Fetter - UNIX Systems Administrator
Portland State University - www.oit.pdx.edu

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to