[SciPy-Dev] Bento build - Test failures

Scott Sinclair scott.sinclair.za@gmail....
Mon Feb 20 05:28:41 CST 2012


On 20 February 2012 12:49, Robert Kern <robert.kern@gmail.com> wrote:
> On Mon, Feb 20, 2012 at 06:23, Scott Sinclair
> <scott.sinclair.za@gmail.com> wrote:
>> Hi,
>>
>> I guess this is aimed at David C..
>>
>> When scipy has been built with Bento/waf there are several test
>> failures related to undefined Fortran symbols (see an example below).
>> Pauli thinks it's related to library link order (see discussion at
>> https://github.com/scipy/scipy/pull/158).
>>
>> It's not yet clear to me how to define the order of the flags at link
>> time. I'm guessing that waf needs to be told about this in the package
>> level bscript?
>>
>> ERROR: Failure: ImportError
>> (/home/scott/.virtualenvs/scipy-sandbox/local/lib/python2.7/site-packages/scipy/special/_cephes.so:
>> undefined symbol: _gfortran_transfer_character_write)
>
> Out of curiosity, can you post the link line that Bento executed for
> the _cephes.so module?

Sure. Here you go:

[1080/1080] cshlib: build/scipy/special/_cephesmodule.c.1.o
build/scipy/special/amos_wrappers.c.1.o
build/scipy/special/specfun_wrappers.c.1.o
build/scipy/special/toms_wrappers.c.1.o
build/scipy/special/cdf_wrappers.c.1.o
build/scipy/special/ufunc_extras.c.1.o ->
build/scipy/special/_cephes.so
13:19:47 runner ['/usr/bin/gcc', '-shared',
'-Wl,-Bsymbolic-functions', '-pthread', '-Wl,-O1',
'-Wl,-Bsymbolic-functions', '-Wl,-Bsymbolic-functions', '-Lrelro',
'-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1',
'-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu',
'-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib',
'-L/lib/x86_64-linux-gnu', '-L/lib/../lib',
'-L/usr/lib/x86_64-linux-gnu', '-L/usr/lib/../lib',
'-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../..', '-lgfortran', '-lm',
'-lquadmath', '-lm', 'scipy/special/_cephesmodule.c.1.o',
'scipy/special/amos_wrappers.c.1.o',
'scipy/special/specfun_wrappers.c.1.o',
'scipy/special/toms_wrappers.c.1.o',
'scipy/special/cdf_wrappers.c.1.o',
'scipy/special/ufunc_extras.c.1.o', '-o',
'/home/scott/external_repos/scipy/build/scipy/special/_cephes.so',
'-Wl,-Bstatic', '-Lscipy/special', '-Lscipy/special',
'-Lscipy/special', '-Lscipy/special', '-Lscipy/special',
'-Lscipy/special', '-Lscipy/special', '-lsc_amos', '-lsc_toms',
'-lsc_c_misc', '-lsc_cephes', '-lsc_mach', '-lsc_cdf',
'-lsc_specfunlib', '-Wl,-Bdynamic',
'-L/home/scott/.local/lib/python2.7/site-packages/numpy/core/lib',
'-lnpymath', '-lm']

No doubt everything in the runner list gets concatenated to form the
command line.

Cheers,
Scott


More information about the SciPy-Dev mailing list