[Rd] R 2.5.0 building problem

From: Ev Whin <whinev_at_gmail.com>
Date: Fri, 18 May 2007 16:32:14 +0800

While I was trying to build R 2.5.0 src on Red Hat Enterprise Linux ES release 4 (Nahant Update 4) Kernel 2.6.9-42.ELsmp on an x86_64
The following errors occurred:

gcc -std=gnu99 -shared -L/usr/local/lib64 -o lapack.so Lapack.o -L../../../lib -lRlapack -L../../../lib -lRblas -lg2c -lm -lgcc_s

/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/3.4.6/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.6/libg2c.a: could not read symbols: Bad

collect2: ld returned 1 exit status

make[4]: *** [lapack.so] Error 1

make[4]: Leaving directory `/home/ljiao/R-2.5.0/Build/src/modules/lapack'

make[3]: *** [R] Error 2

make[3]: Leaving directory `/home/ljiao/R-2.5.0/Build/src/modules/lapack'

make[2]: *** [R] Error 1

make[2]: Leaving directory `/home/ljiao/R-2.5.0/Build/src/modules'

make[1]: *** [R] Error 1

make[1]: Leaving directory `/home/ljiao/R-2.5.0/Build/src'

make: *** [R] Error 1
Is this a bug of GCC?
See also
https://rhn.redhat.com/errata/RHBA-2006-0509.html What can I do to proceed?

        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 18 May 2007 - 08:34:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 May 2007 - 10:33:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.