[SciPy-dev] NumPy/SciPy test results, x86 and PPC

Darren Dale dd55 at cornell.edu
Tue Jan 10 14:05:06 EST 2006


On Tuesday 10 January 2006 11:43, Pearu Peterson wrote:
> On Tue, 10 Jan 2006, Darren Dale wrote:
> >>> Has anyone successfully built and tested the scipy-0.4.4 with fftw-3?
> >>
> >> Yes.
> >
> > Really? Any suggestions then? All my tests were passing with scipy/fftw-3
> > for, up until about a week ago.
>
> What scipy/numpy versions are you using? 

numpy-0.9.3.1864
scipy-0.4.4.1544

> Here (debian sid 
> linux,fftw-3.0.1):
>
> In [10]: scipy.show_config()
> <snip>
> fft_opt_info:
>      libraries = ['fftw3']
>      library_dirs = ['/usr/lib']
>      define_macros = [('SCIPY_FFTW3_H', None)]
>      include_dirs = ['/usr/include']
>
> In [11]: scipy.__version__
> Out[11]: '0.4.4.1544'
>
> In [12]: scipy.__numpy_version__
> Out[12]: '0.9.3.1863'
>
> In [7]: scipy.fftpack.test(10)
> <snip>
> ----------------------------------------------------------------------
> Ran 51 tests in 127.203s
>
> OK

fft_opt_info:
    libraries = ['fftw3', 'djbfft']
    library_dirs = ['/usr/lib']
    define_macros = [('SCIPY_FFTW3_H', None), ('SCIPY_DJBFFT_H', None)]
    include_dirs = ['/usr/include']

ah, here it is. It looks like scipy doesnt like my djbfft.  

* I can build scipy against a dynamically linked djbfft, and get failures. 
* I can't build scipy with a statically linked djbfft (I dont know why):

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libdjbfft.a(8u5.o): 
relocation R_X86_64_32 against `fftc8_roots4096' can not be used when making 
a shared object; recompile with -fPIC
/usr/lib/libdjbfft.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libdjbfft.a(8u5.o): 
relocation R_X86_64_32 against `fftc8_roots4096' can not be used when making 
a shared object; recompile with -fPIC
/usr/lib/libdjbfft.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: Command "/usr/bin/g77 -shared 
build/temp.linux-x86_64-2.4/build/src/Lib/fftpack/_fftpackmodule.o 
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zfft.o 
build/temp.linux-x86_64-2.4/Lib/fftpack/src/drfft.o 
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zrfft.o 
build/temp.linux-x86_64-2.4/Lib/fftpack/src/zfftnd.o 
build/temp.linux-x86_64-2.4/build/src/fortranobject.o -L/usr/lib 
-Lbuild/temp.linux-x86_64-2.4 -ldfftpack -lfftw3 -ldjbfft -lg2c -o 
build/lib.linux-x86_64-2.4/scipy/fftpack/_fftpack.so" failed with exit status 
1

* I can revert the changes we made to distutils/system_info.py so scipy doesnt 
find libdjbfft.so, then scipy builds, and tests pass.

I dont know enough about linking to diagnose the static djbfft problem on my 
own. It may be specific to gentoo.




More information about the SciPy-Dev mailing list