My initial answer was a bit rushed. The spkg needs fixing in my opinion. I 
think -fPIC should be used for scipy and I overlooked that in my ticket review. 
I think it can be fixed with redefining FC,
I'll check later tonight when I have some time.

Francois

On 28/01/2013, at 15:51, "Stephen Montgomery-Smith" <step...@missouri.edu> 
wrote:

> I am getting this error when building scipy-0.11.0.p0.
> 
> 
> /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
> 
> 
> The reason seems to be because in scipy-0.11.0.p0/spkg-install the
> definitions setting fortran to sage_fortran have been removed.  But the
> file $SAGE_LOCAL/bin/sage_fortran contains lines like:
> exec $myFC -fPIC "$@"
> 
> 
> This is on FreeBSD, and I use the gfortran that comes in the gcc46 port.
> Does the gcc built inside of sage have the "-fPIC" flag set
> automatically on its fortran?  I can easily make the FreeBSD port do
> this.  But I would like to know exactly how you did it, so that I don't
> unnecessarily "-fPIC" too many files.
> 
> Stephen
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to