[SciPy-user] Can't even begin to build/install scipy 0.4.4

skip@pobox.com skip at pobox.com
Thu Feb 9 13:20:13 CST 2006


We'd been running an old version of scipy (0.3) in our Solaris 8/9/10
environment.  In preparation for migrating to a new GCC (3.4 from 3.3.2),
Python (2.4.2 from 2.3.4) and Gtk (2.6 from 2.4), we have been busy
rebuilding all our libraries and applications.  One application (the one I
happen to work on) uses a tiny bit of scipy.  The guy doing the building
tried to build scipy 0.3.2.  That failed.  He got to a certain point but
found that scipy's distutils apparently fails to honor the --rpath flag.

I told him I'd take a look at it and decided to try scipy 0.4.4 instead (no
sense fiddling with an old version that won't build - might as well see if
the new version is any better).  I downloaded numpy 0.9.4, but can't even
get help.  For some reason, distutils believes it needs to compile something
just to give me help:

    $ python setup.py --help
    Running from numpy source directory.
    Assuming default configuration
    (numpy/distutils/command/{setup_command,setup}.py was not found)
    Appending numpy.distutils.command configuration to numpy.distutils
    Assuming default configuration
    (numpy/distutils/fcompiler/{setup_fcompiler,setup}.py was not found)
    Appending numpy.distutils.fcompiler configuration to numpy.distutils
    Appending numpy.distutils configuration to numpy
    Appending numpy.testing configuration to numpy
    F2PY Version 2_1975
    Appending numpy.f2py configuration to numpy
    blas_opt_info:
    blas_mkl_info:
      NOT AVAILABLE

    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
    Setting PTATLAS=ATLAS
    Setting PTATLAS=ATLAS
      FOUND:
        libraries = ['ptf77blas', 'ptcblas', 'atlas']
        library_dirs = ['/opt/lib']
        language = c
        include_dirs = ['/opt/include']

    running build_src
    building extension "atlas_version" sources
      adding 'build/src/atlas_version_0x4568501b.c' to sources.
    running build_ext
    customize UnixCCompiler
    customize UnixCCompiler using build_ext
    building 'atlas_version' extension
    compiling C sources
    gcc options: '-fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
    -fPIC'
    compile options: '-I/opt/include -Inumpy/core/include
    -I/opt/app/g++lib6/python-2.4/include/python2.4 -c'
    /opt/lang/gcc-3.4/bin/gcc -shared
    build/temp.solaris-2.8-i86pc-2.4/build/src/atlas_version_0x4568501b.o
    -L/opt/lib -lptf77blas -lptcblas -latlas -o
    build/temp.solaris-2.8-i86pc-2.4/atlas_version.so
    Text relocation remains                         referenced
        against symbol                  offset      in file
    <unknown>                           0x7
    /opt/lib/libatlas.a(ATL_buildinfo.o)
    <unknown>                           0xc
    /opt/lib/libatlas.a(ATL_buildinfo.o)
    <unknown>                           0x11
    ... blah blah blah ...
    ##### msg: error: Command "/opt/lang/gcc-3.4/bin/gcc -shared
    ##### build/temp.solaris-2.8-i86pc-2.4/build/src/atlas_version_0x4568501b.o
    ##### -L/opt/lib -lptf77blas -lptcblas -latlas -o
    ##### build/temp.solaris-2.8-i86pc-2.4/atlas_version.so" failed with exit
    ##### status 1
    error: Command "/opt/lang/gcc-3.4/bin/gcc -shared
    build/temp.solaris-2.8-i86pc-2.4/build/src/atlas_version_0x4568501b.o
    -L/opt/lib -lptf77blas -lptcblas -latlas -o
    build/temp.solaris-2.8-i86pc-2.4/atlas_version.so" failed with exit status 1
     FOUND:
        libraries = ['ptf77blas', 'ptcblas', 'atlas']
        library_dirs = ['/opt/lib']
        language = c
        define_macros = [('NO_ATLAS_INFO', 2)]
        include_dirs = ['/opt/include']

    distutils distribution has been initialized, it may be too late to add an
    extension _dotblas
    Traceback (most recent call last):
      File "setup.py", line 73, in ?
        setup_package()
      File "setup.py", line 58, in setup_package
        config.add_subpackage('numpy')
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/distutils/misc_util.py", line
      409, in add_subpackage
        config = self.get_subpackage(subpackage_name,subpackage_path)
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/distutils/misc_util.py", line
      399, in get_subpackage
        config = setup_module.configuration(*args)
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/setup.py", line 10, in
      configuration
        config.add_subpackage('core')
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/distutils/misc_util.py", line
      409, in add_subpackage
        config = self.get_subpackage(subpackage_name,subpackage_path)
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/distutils/misc_util.py", line
      399, in get_subpackage
        config = setup_module.configuration(*args)
      File "numpy/core/setup.py", line 201, in configuration
        config.add_data_dir('tests')
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/distutils/misc_util.py", line
      453, in add_data_dir
        self.add_data_files((ds,filenames))
      File "/home/ink/skipm/src/numpy-0.9.4/numpy/distutils/misc_util.py", line
      508, in add_data_files
        dist.data_files.extend(data_dict.items())
    AttributeError: 'NoneType' object has no attribute 'extend'

What's up with that?

Thx,

-- 
Skip Montanaro
http://www.musi-cal.com/
skip at pobox.com



More information about the SciPy-user mailing list