Menu

Duplicated -arch flag on Mac OS 10.4.10

Help
2007-10-25
2012-09-19
  • JamesJackson

    JamesJackson - 2007-10-25

    Hi,

    I'm trying to build MySQL-python-1.2.2 on an Intel Mac 10.4.10 with Python 2.5. When running python setup.build I am getting the following:

    unknown-00-16-cb-9e-87-be:~/Desktop/MySQL-python-1.2.2 jamesjackson$ python setup.py build
    <snip>
    building '_mysql' extension
    creating build/temp.macosx-10.3-fat-2.5
    gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/usr/local/mysql-5.0.45-osx10.4-i686/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-fat-2.5/_mysql.o -Os -arch i386 -fno-common
    gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5/_mysql.o -L/usr/local/mysql-5.0.45-osx10.4-i686/lib -lmysqlclient_r -lz -lm -o build/lib.macosx-10.3-fat-2.5/_mysql.so
    /usr/bin/ld: for architecture ppc
    /usr/bin/ld: warning build/temp.macosx-10.3-fat-2.5/_mysql.o cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)
    /usr/bin/ld: warning /usr/local/mysql-5.0.45-osx10.4-i686/lib/libmysqlclient_r.dylib cputype (7, architecture i386) does not match cputype (18) for specified -arch flag: ppc (file not loaded)

    I note than in the second call to gcc, the arch flag is duplicated - clearly only -arch i386 should be present here. Has anyone got any suggestions?

    Regards,
    James Jackson.

     
    • JamesJackson

      JamesJackson - 2007-10-25

      Sorted, it installed anyway.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.