[SciPy-User] Mismatch architecture type, compiling scipy on Mac 10.6

Jeremy Conlin jlconlin at gmail.com
Mon Feb 7 17:45:03 EST 2011


I have compiled python 2.7 and numpy.1.5.1 in 64-bit on my Mac running
10.6.3.  I'm trying to compile 64 bit scipy as well, but I'm running
into a problem.  I'm pretty sure that the problem is architecture
related.  The error(s) I get are copied below.  The command I used to
compile scipy is:

LDFLAGS="-arch x86_64 -Wall -undefined dynamic_lookup -bundle"
FFLAGS="-arch x86_64"  python setup.py install

I used the same command to compile numpy without any problems.  I am
using g95 and gcc (version info below).

If someone has some hints for me, I'd be most appreciative.

Thanks,
Jeremy


$ g95 --version
G95 (GCC 4.0.4 (g95 0.91!) Oct 15 2008)
Copyright (C) 2002-2005 Free Software Foundation, Inc.

G95 comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of G95
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.




Errors:
g95:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/LAPACK/zlahqr.f
g95:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/FWRAPPERS/veclib_cabi_f.f
ar: adding 50 object files to build/temp.macosx-10.4-x86_64-2.7/libarpack.a
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cgetv0.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cnaitr.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cnapps.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cnaup2.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cnaupd.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cneigh.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
/usr/bin/ranlib: archive member:
build/temp.macosx-10.4-x86_64-2.7/libarpack.a(cneupd.o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
...



More information about the SciPy-User mailing list