On Sep 9, 2010, at 1:53 PM, Michael Lerner wrote:

> gcc -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -arch i386 
> -isysroot /Developer/SDKs/MacOSX10.5.sdk 
> -I/Library/Frameworks/Python.framework/Versions/6.2/include 
> -I/usr/local/include -I../../include 
> -I/Library/Frameworks/Python.framework/Versions/6.2/include/python2.6 -c 
> openbabel_python.cpp -o build/temp.macosx-10.5-i386-2.6/openbabel_python.o
> cc1plus: error: unrecognized command line option "-arch"
> error: command 'gcc' failed with exit status 1

You're not using Apple's compiler. It seems like you installed a new version of 
GCC, which is fine. But Python on Mac is compiled by Apple to be a Universal 
binary (i.e., i368, ppc, x86_64 all rolled into one). The standard GNU GCC 
doesn't know how to do this.

So you want to be sure you're finding /usr/bin/gcc and /usr/bin/g++ instead of 
/usr/local/bin/gcc / g++.

Hope that helps,
-Geoff
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to