Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2007 21:05:44 GMT
From:      "O. Hartmann"<ohartman@zedat.fu-berlin.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/109107: R 2.4.1 does not compile properly on FreeBSD 7.0/AMD64 with ggc42
Message-ID:  <200702122105.l1CL5iWw085265@www.freebsd.org>
Resent-Message-ID: <200702122110.l1CLAInr048529@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702122105.l1CL5iWw085265>