ports/109107: R 2.4.1 does not compile properly on FreeBSD 7.0/AMD64 with ggc42
O. Hartmann
ohartman at zedat.fu-berlin.de
Mon Feb 12 21:10:18 UTC 2007
>Number: 109107
>Category: ports
>Synopsis: R 2.4.1 does not compile properly on FreeBSD 7.0/AMD64 with ggc42
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 12 21:10:17 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: O. Hartmann
>Release: FreeBSD 7.0-CURRENT/AMD64
>Organization:
Freie Universität Berlin
>Environment:
FreeBSD foo.org 7.0-CURRENT FreeBSD 7.0-CURRENT #85: Sun Feb 11 22:00:54 UTC 2007 root at foo.org:/usr/obj/usr/src/sys/FOO amd64
>Description:
Compiling port R-2.4.1 from port's collection on FreeBSD 7.0-CURRENT/AMD64 with port's gcc42 version 4.2.0 20070207 (prerelease)
results in this error:
making Lapack.d from Lapack.c
gfortran42 -fpic -g -O2 -ffloat-store -c dlamc.f -o dlamc.o
gfortran42 -fpic -g -O2 -c dlapack0.f -o dlapack0.o
gfortran42 -fpic -g -O2 -c dlapack1.f -o dlapack1.o
gfortran42 -fpic -g -O2 -c dlapack2.f -o dlapack2.o
gfortran42 -fpic -g -O2 -c dlapack3.f -o dlapack3.o
gfortran42 -fpic -g -O2 -c cmplx.f -o cmplx.o
cc -std=gnu99 -shared -L/usr/local/lib -o libRlapack.so dlamc.o dlapack0.o dlapack1.o dlapack2.o dlapack3.o cmplx.o -L../../../lib -lRblas
cc -std=gnu99 -I. -I../../../src/include -I../../../src/include -I/usr/local/include -DHAVE_CONFIG_H -fpic -O2 -fno-strict-aliasing -pipe -march=opteron -c Lapack.c -o Lapack.o
cc -std=gnu99 -shared -L/usr/local/lib -o lapack.so Lapack.o -L../../../lib -lR -L../../../lib -lRlapack -L../../../lib -lRblas -L/usr/local/lib/gcc-4.2.0/gcc/x86_64-portbld-freebsd7.0/4.2.0 -L/usr/local/lib/gcc-4.2.0 -lgfortran -lm -lgcc_s
/usr/bin/ld: /usr/local/lib/gcc-4.2.0/libgfortran.a(pow_i4_i4.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/gcc-4.2.0/libgfortran.a: could not read symbols: Bad value
*** Error code 1
>How-To-Repeat:
Try to compile R 2.4.1 on FreeBSD 7.0/AMD64 with gcc42 version 4.2.0 20070207 (prerelease)
>Fix:
Add flag -fPIC to compiler options as the compiler error message suggests
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list