#14022: Get scipy fortran objects be built with -fPIC again
----------------------------+-----------------------------------------------
Reporter: fbissey | Owner: tbd
Type: defect | Status: new
Priority: blocker | Milestone: sage-5.7
Component: packages | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Old description:
> This is a follow up to #13985. After that ticket was merged FC/F90/F77
> are not set to something that includes -fPIC. This leads to problems like
> the one reported by Stephen Montgomery-Smith working on the BSD port.
> {{{
> /usr/home/stephen/sage-devel/work/sage-5.7.beta1/local/bin/gfortran
> -Wall -shared
> -Wl,-rpath=/usr/home/stephen/sage-devel/work/sage-5.7.beta1/local/lib
> -Wl,-rpath=/usr/local/lib/gcc46
> build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
> amd64-2.7/scipy/fftpack/_fftpackmodule.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/zfft.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/drfft.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/zrfft.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/zfftnd.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
> amd64-2.7/scipy/fftpack/src/dct.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
> amd64-2.7/scipy/fftpack/src/dst.o
> build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
> amd64-2.7/fortranobject.o
> -L/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd8.3/4.6.3
> -Lbuild/temp.freebsd-8.3-STABLE-amd64-2.7 -ldfftpack -lfftpack
> -lpython2.7 -lgfortran -o
> build/lib.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/_fftpack.so
> /usr/local/bin/ld:
> build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a(dffti1.o):
> relocation R_X86_64_32S against `.rodata' can not be used when making a
> shared object; recompile with -fPIC
> build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a: could not read
> symbols: Bad value
> collect2: ld returned 1 exit status
> /usr/local/bin/ld:
> build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a(dffti1.o):
> relocation R_X86_64_32S against `.rodata' can not be used when making a
> shared object; recompile with -fPIC
> build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a: could not read
> symbols: Bad value
> collect2: ld returned 1 exit status
> }}}
>
> {F,FC}FLAGS should be set to append "-fPIC" when compiling scipy.
New description:
This is a follow up to #13985. After that ticket was merged FC/F90/F77 are
not set to something that includes -fPIC. This leads to problems like the
one reported by Stephen Montgomery-Smith working on the BSD port.
{{{
/usr/home/stephen/sage-devel/work/sage-5.7.beta1/local/bin/gfortran
-Wall -shared
-Wl,-rpath=/usr/home/stephen/sage-devel/work/sage-5.7.beta1/local/lib
-Wl,-rpath=/usr/local/lib/gcc46
build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
amd64-2.7/scipy/fftpack/_fftpackmodule.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/zfft.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/drfft.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/zrfft.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/src/zfftnd.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
amd64-2.7/scipy/fftpack/src/dct.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
amd64-2.7/scipy/fftpack/src/dst.o
build/temp.freebsd-8.3-STABLE-amd64-2.7/build/src.freebsd-8.3-STABLE-
amd64-2.7/fortranobject.o
-L/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd8.3/4.6.3
-Lbuild/temp.freebsd-8.3-STABLE-amd64-2.7 -ldfftpack -lfftpack
-lpython2.7 -lgfortran -o
build/lib.freebsd-8.3-STABLE-amd64-2.7/scipy/fftpack/_fftpack.so
/usr/local/bin/ld:
build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a(dffti1.o):
relocation R_X86_64_32S against `.rodata' can not be used when making a
shared object; recompile with -fPIC
build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
/usr/local/bin/ld:
build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a(dffti1.o):
relocation R_X86_64_32S against `.rodata' can not be used when making a
shared object; recompile with -fPIC
build/temp.freebsd-8.3-STABLE-amd64-2.7/libdfftpack.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
}}}
{F,FC}FLAGS should be set to append "-fPIC" when compiling scipy.
* new spkg:
[http://spkg-upload.googlecode.com/files/scipy-0.11.0.p1.spkg]
--
Comment (by fbissey):
New spkg available in ticket description.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14022#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.