Robert Kern <robert.kern <at> gmail.com> writes:

> 
> Ryan Welch wrote:
> 
> > When I run a normal build, it always uses -arch ppc -arch i386 to compile C
> > sources. I'd like to get it to do -arch ppc64 instead, and remove the
> > unnecessary i386 if at all possible. 
> 
> Those parameters come from the BASECFLAGS variable in
> $prefix/lib/python2.5/config/Makefile and should be whatever Python was
> configured with. Check that file and see what it has for that variable.
> 

Actually my mistake completely, I realized my python was pointing incorrectly to
an older version once I saw your statement there. So, I fixed it to correctly
use python2.5 to run the build, but it still seems to fail: 

C compiler: gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -DNDEBUG -fast -arch ppc64 -Wall -Wstrict-prototypes -fno-common
-fPIC

compile options: '-I/usr/local/include/python2.5 -Inumpy/core/src
-Inumpy/core/include -I/usr/local/include/python2.5 -c'
gcc: _configtest.c
_configtest.c: In function 'main':
_configtest.c:50: warning: format '%d' expects type 'int', but argument 3 has
type 'long unsigned int'
_configtest.c:57: warning: format '%d' expects type 'int', but argument 3 has
type 'long unsigned int'
_configtest.c:72: warning: format '%d' expects type 'int', but argument 3 has
type 'long unsigned int'
gcc _configtest.o -L/usr/local/lib -L/usr/lib -L/sw/lib -o _configtest
/usr/bin/ld: _configtest.o bad magic number (not a Mach-O file)
collect2: ld returned 1 exit status
/usr/bin/ld: _configtest.o bad magic number (not a Mach-O file)
collect2: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o


_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to