os x 10.5.2 and macpython

I wanted to try switching over from apple python to mac python 2.5.2, so I went to rebuild matplotlib svn. With the config:

BUILDING MATPLOTLIB
             matplotlib: 0.98pre
                 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
                         4.0.1 (Apple Computer, Inc. build 5363)]
               platform: darwin

REQUIRED DEPENDENCIES
                  numpy: 1.1.0rc1
              freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
                 libpng: 1.2.24
                Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
               wxPython: no
                         * wxPython not found
                   Gtk+: no
                         * Building for Gtk+ requires pygtk; you must be able
                         * to "import gtk" in your build/install environment
                     Qt: no
                    Qt4: no
                  Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
               datetime: present, version unknown
               dateutil: matplotlib will provide
                   pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
                 dvipng: 1.9
            ghostscript: 8.61
                  latex: 3.141592

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
              configobj: matplotlib will provide
       enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]

I get the error:

building 'matplotlib.ft2font' extension
creating build/temp.macosx-10.3-i386-2.5
creating build/temp.macosx-10.3-i386-2.5/src
creating build/temp.macosx-10.3-i386-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/usr/X11/include/freetype2 -I/usr/X11/include -I/sw/lib/freetype219/include -I/usr/local/include -I/usr/include -I/sw/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/ft2font.cpp -o build/temp.macosx-10.3-i386-2.5/src/ft2font.o
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
                  from src/ft2font.h:14,
                  from src/ft2font.cpp:1:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
                  from ./CXX/WrapPython.h:42,
                  from ./CXX/Extensions.hxx:48,
                  from src/ft2font.h:4,
                  from src/ft2font.cpp:1:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition
In file included from /usr/X11/include/freetype2/freetype/freetype.h:41,
                  from src/ft2font.h:14,
                  from src/ft2font.cpp:1:
/usr/X11/include/freetype2/freetype/config/ftconfig.h:65:1: warning: "SIZEOF_LONG" redefined
In file included from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:8,
                  from ./CXX/WrapPython.h:42,
                  from ./CXX/Extensions.hxx:48,
                  from src/ft2font.h:4,
                  from src/ft2font.cpp:1:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyconfig.h:814:1: warning: this is the location of the previous definition
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/usr/X11/include/freetype2 -I/usr/X11/include -I/sw/lib/freetype219/include -I/usr/local/include -I/usr/include -I/sw/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/mplutils.cpp -o build/temp.macosx-10.3-i386-2.5/src/mplutils.o
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/usr/X11/include/freetype2 -I/usr/X11/include -I/sw/lib/freetype219/include -I/usr/local/include -I/usr/include -I/sw/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c CXX/cxx_extensions.cxx -o build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o
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/usr/X11/include/freetype2 -I/usr/X11/include -I/sw/lib/freetype219/include -I/usr/local/include -I/usr/include -I/sw/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c CXX/cxxsupport.cxx -o build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o
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/usr/X11/include/freetype2 -I/usr/X11/include -I/sw/lib/freetype219/include -I/usr/local/include -I/usr/include -I/sw/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c CXX/IndirectPythonInterface.cxx -o build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o
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/usr/X11/include/freetype2 -I/usr/X11/include -I/sw/lib/freetype219/include -I/usr/local/include -I/usr/include -I/sw/include -I/usr/X11R6/include -I. -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c CXX/cxxextensions.c -o build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o
In file included from /usr/include/math.h:26,
                  from /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:231,
                  from /Library/Frameworks/Python.framework/Versions/2.5/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’
g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/src/ft2font.o build/temp.macosx-10.3-i386-2.5/src/mplutils.o build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o -L/usr/X11/lib -L/sw/lib/freetype219/lib -L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/X11R6/lib -lfreetype -lz -lz -lstdc++ -lm -o build/lib.macosx-10.3-i386-2.5/matplotlib/ft2font.so -Wl,-framework,CoreServices,-framework,ApplicationServices
ld: warning in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib, missing required architecture ppc in file
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib, missing required architecture ppc in file for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/yL/yLD5tRJiGWa7oyM6mWJUN++++TI/-Tmp-//ccFeJN3g.out (No such file or directory)
error: command 'g++' failed with exit status 1