Any idea of what I can do? I thought trying to remove these options sent to gcc, but I do not know where they are coming from, there is no such a thing as a Make file no?
Thanks.
Javier.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Those compiler options are coming from one of two places:
1) mysql_config
2) Your Python installation's Makefile (probably /usr/local/python2.4/config/Makefile)
My suspicion is if you are using mysql.com RPM packages, these are probably compiled with the Intel compiler and these options are for it. Not sure what the best solution is here, but you may have to hack setup.py to filter out these options.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to install MySQL-python-1.2.1_p2 on RedHat and when doing:
sudo python setup.py install
I get:
.....
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/mysql/include -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -unroll2 -ip -mp -restrict -Dversion_info="(1,2,1,'final',2)" -Dversion="1.2.1_p2"
gcc: unrecognized option
-restrict' cc1: error: unrecognized command line option "-ip" cc1: error: invalid option
p'error: command 'gcc' failed with exit status 1
Any idea of what I can do? I thought trying to remove these options sent to gcc, but I do not know where they are coming from, there is no such a thing as a Make file no?
Thanks.
Javier.
I recommend you try this instead:
python setup.py bdist_rpm
and install the resulting RPM.
Those compiler options are coming from one of two places:
1) mysql_config
2) Your Python installation's Makefile (probably /usr/local/python2.4/config/Makefile)
My suspicion is if you are using mysql.com RPM packages, these are probably compiled with the Intel compiler and these options are for it. Not sure what the best solution is here, but you may have to hack setup.py to filter out these options.