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'
-restrict' cc1: error: unrecognized option
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 ?
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.
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 ?
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