[SciPy-user] Install failure on AIX 5.3 due to missing linker flagprefix for compiler
Loris Bennett
loris.bennett at fu-berlin.de
Fri May 29 06:09:27 EDT 2009
On Tue, 2009-05-26 at 09:51 -0700, Whitcomb, Mr. Tim wrote:
> > Now I am getting the following error when I try to install SciPy:
> >
> > g++ g++ -pthread
> >
> > -bI:/opt/sw/python/Python-2.6.2/lib/python2.6/config/python.exp
> > build/temp.aix-5.3-2.6/scipy/interpolate/src/_interpolate.o
> > -Lbuild/temp.aix-5.3-2.6 -o
> > build/lib.aix-5.3-2.6/scipy/interpolate/_interpolate.so
> > g++: '-b' must come at the start of the command line
> > g++: '-b' must come at the start of the command line
> > error: Command "g++ g++ -pthread
>
> I ran into this issue with Scipy as well - the command *should* look
> something like
> /path/to/ld_so_aix [c++ compiler]....
> but gets changed to
> [c++ compiler] [c++ compiler]
> which I believe is an error.
>
> The fix that I used was to edit unixccompiler.py in the distutils
> package, and move the
> linker[i] = self.compiler_cxx[i]
> statement under the
> if os.path.basename(linker[0]) == "env"
> statement - this got rid of that issue.
This worked. Thanks.
> It also looks like it's including files using -bI:, which is more XL
> C++-ish than g++. I am very new to working on AIX machines, so I can't
> say if this is an error as well. Hopefully someone with more AIX
> experience than me can comment on these issues.
>
> On a side note, does numpy.test() crash with a MemoryError on your
> installation?
I haven't installed nose, so I couldn't do numpy.test(), but I tried the
test program you posted and also got a MemoryError.
> Tim
--
Dr. Loris Bennett (Mr.)
Freie Universität Berlin
ZEDAT - Zentraleinrichtung für Datenverarbeitung / Computer Center
Compute & Media Service
Fabeckstr. 32, Room 221
D-14195 Berlin
Tel ++49 30 838 51024
Fax ++49 30 838 56721
Email loris.bennett at fu-berlin.de
Web www.zedat.fu-berlin.de
More information about the SciPy-User
mailing list