Menu

compile problem with AMD64 (Suse 9.3)

Help
2006-03-16
2012-09-19
  • Joerg Nowak

    Joerg Nowak - 2006-03-16

    During "python setup.py build"
    the following error occurs:

    gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall -g -fPIC -I/usr/local/mysql/include -I/usr/include/python2.4 -c _mysql.c -o build/temp.linux-x86_64-2.4/_mysql.o -unroll2 -ip -mp -restrict -Dversion_info="(1,2,1,'gamma',7)" -Dversion="1.2.1c7"
    gcc: unrecognized option -restrict' cc1: error: unrecognized option-ip'
    cc1: error: invalid option `p'


    I use MySQL-python-1.2.1c7 and MySQL 4.1. The compiler is gcc 3.3.5

    How can I change the compiler options ?

     
    • Andy Dustman

      Andy Dustman - 2006-03-16

      First, what is the output of the mysql_config command? There may be an argument parsing problem there.

      Second, to override mysql_config, edit site.cfg, specifically the [compiler] section and extra_compile_args

       

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.