I apologize for cross-posting - I realized I probably shouldn't have
posted this on the user's list first...
Hello - I am attempting to build matplotlib from source on os X, and
getting an error about a shared library being the wrong architecture.
The confusing thing is that the call to g++ has two settings for arch:
"g++ -arch i386 -arch ppc..."
The error I get is:
"ld: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/
Python.framework/Versions/4.3.0/lib/libz.1.dylib, file is not of
required architecture for architecture ppc"
Is there some way to turn off the "-arch ppc" option to g++ in
setup.py? Or do I have some other problem?
Build output is included below.
Thanks,
Mike
=
=
=
=
========================================================================
BUILDING MATPLOTLIB
matplotlib: 0.99.0
python: 2.5.4 |EPD_Py25 4.3.0| (r254:67916, May 17 2009,
20:07:12) [GCC 4.0.1 (Apple Computer, Inc.
build
5370)]
platform: darwin
REQUIRED DEPENDENCIES
numpy: 1.3.0
freetype2: 9.20.3
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.37
Tkinter: Tkinter: 67737, Tk: 8.4, Tcl: 8.4
wxPython: 2.8.7.1
* WxAgg extension not required for wxPython >=
2.8
Gtk+: no
* Building for Gtk+ requires pygtk; you must
be able
* to "import gtk" in your build/install
environment
Mac OS X native: yes
Qt: no
Qt4: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4
pytz: 2008c
OPTIONAL USETEX DEPENDENCIES
dvipng: no
ghostscript: 8.54
latex: no
[Edit setup.cfg to suppress the above messages]
=
=
=
=
========================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.projections', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.delaunay']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.3-
fat-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf -> build/
lib.macosx-10.3-fat-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._tkagg' extension
creating build/temp.macosx-10.3-fat-2.5
creating build/temp.macosx-10.3-fat-2.5/src
creating build/temp.macosx-10.3-fat-2.5/CXX
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/
include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/
Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/
Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/
Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/
usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-
macosx-10.3-fat.egg/numpy/core/include -Isrc -Iagg24/include -I. -I/
Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-
packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/
opt/local/include/freetype2 -I/opt/local/include -I/usr/local/include -
I/usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/include/python2.5 -c src/agg_py_transforms.cpp -o build/
temp.macosx-10.3-fat-2.5/src/agg_py_transforms.o -framework Tcl -
framework Tk
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/
include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/
Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/
Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/
Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/
usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-
macosx-10.3-fat.egg/numpy/core/include -Isrc -Iagg24/include -I. -I/
Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-
packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/
opt/local/include/freetype2 -I/opt/local/include -I/usr/local/include -
I/usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/include/python2.5 -c src/_tkagg.cpp -o build/
temp.macosx-10.3-fat-2.5/src/_tkagg.o -framework Tcl -framework Tk
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/
include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/
Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/
Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/
Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/
usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-
macosx-10.3-fat.egg/numpy/core/include -Isrc -Iagg24/include -I. -I/
Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-
packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/
opt/local/include/freetype2 -I/opt/local/include -I/usr/local/include -
I/usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/include/python2.5 -c CXX/cxx_extensions.cxx -o build/
temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o -framework Tcl -
framework Tk
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/
include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/
Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/
Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/
Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/
usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-
macosx-10.3-fat.egg/numpy/core/include -Isrc -Iagg24/include -I. -I/
Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-
packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/
opt/local/include/freetype2 -I/opt/local/include -I/usr/local/include -
I/usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/include/python2.5 -c CXX/cxxsupport.cxx -o build/
temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o -framework Tcl -framework Tk
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/
include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/
Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/
Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/
Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/
usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-
macosx-10.3-fat.egg/numpy/core/include -Isrc -Iagg24/include -I. -I/
Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-
packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/
opt/local/include/freetype2 -I/opt/local/include -I/usr/local/include -
I/usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o
build/temp.macosx-10.3-fat-2.5/CXX/IndirectPythonInterface.o -
framework Tcl -framework Tk
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -
fno-common -dynamic -DNDEBUG -g -O3 -I/tmp/_py/libraries/usr/local/
include -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -I/System/Library/
Frameworks/Tcl.framework/Headers -I/System/Library/Frameworks/
Tcl.framework/Versions/Current/PrivateHeaders -I/System/Library/
Frameworks/Tk.framework/Headers -I/System/Library/Frameworks/
Tk.framework/Versions/Current/PrivateHeaders -I/usr/local/include -I/
usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/lib/python2.5/site-packages/numpy-1.3.0n1-py2.5-
macosx-10.3-fat.egg/numpy/core/include -Isrc -Iagg24/include -I. -I/
Library/Frameworks/Python.framework/Versions/4.3.0/lib/python2.5/site-
packages/numpy-1.3.0n1-py2.5-macosx-10.3-fat.egg/numpy/core/include -I/
opt/local/include/freetype2 -I/opt/local/include -I/usr/local/include -
I/usr/include -I/sw/include -I. -I/Library/Frameworks/Python.framework/
Versions/4.3.0/include/python2.5 -c CXX/cxxextensions.c -o build/
temp.macosx-10.3-fat-2.5/CXX/cxxextensions.o -framework Tcl -framework
Tk
In file included from /usr/include/math.h:26,
from /Library/Frameworks/Python.framework/Versions/
4.3.0/include/python2.5/pyport.h:231,
from /Library/Frameworks/Python.framework/Versions/
4.3.0/include/python2.5/Python.h:57,
from ./CXX/WrapPython.h:42,
from CXX/cxxextensions.c:38:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types
for built-in function ‘scalb’
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
powerpc-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
powerpc-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin9-gcc-4.0.1: -framework: linker input file unused
because linking not done
i686-apple-darwin9-gcc-4.0.1: Tk: linker input file unused because
linking not done
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -
L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/4.3.0/
lib -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5/
src/agg_py_transforms.o build/temp.macosx-10.3-fat-2.5/src/_tkagg.o
build/temp.macosx-10.3-fat-2.5/CXX/cxx_extensions.o build/
temp.macosx-10.3-fat-2.5/CXX/cxxsupport.o build/temp.macosx-10.3-
fat-2.5/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-fat-2.5/
CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/sw/lib -L/opt/local/
lib -L/usr/local/lib -L/usr/lib -L/sw/lib -lstdc++ -lm -lfreetype -lz -
lz -lstdc++ -lm -o build/lib.macosx-10.3-fat-2.5/matplotlib/backends/
_tkagg.so -framework Tcl -framework Tk
ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/
libfreetype.dylib, file is not of required architecture
ld warning: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/
Python.framework/Versions/4.3.0/lib/libz.dylib, file is not of
required architecture
ld: in /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks/
Python.framework/Versions/4.3.0/lib/libz.1.dylib, file is not of
required architecture for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Jw/JwxT7AESFT0tNEoDB0a7rE++
+TI/-Tmp-//ccskM2Il.out (No such file or directory)
error: command 'g++' failed with exit status 1
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel