MySQLdb compile error with AMD64
keith at nekotaku.com
Wed Mar 1 04:03:32 CET 2006
>> Can anyone offer any assistance on this one?
>>> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fmessage-length=0 -Wall
>>> -D_FORTIFY_SOURCE=2 -g -fPIC -I/usr/include/mysql
>>> -I/usr/include/python2.4 -c _mysql.c -o
>>> build/temp.linux-x86_64-2.4/_mysql.o -I/usr/include/mysql -g
>>> -march=i586 -mcpu=i686 -fmessage-length=0
>specifically at -march=i586. MySQLdb sets CFLAGS which aren't applicable to
>your processor, and as such the compile barfs. You should probably just run
>it with something like
>CFLAGS="-march=athlon-64" python setup.py build
>I am positive that MySQLdb works on AMD64, I have it running there. Anyway,
>the CFLAGS fix should work.
Appreciate the help but the CFLAGS did not change the gcc -march (I tried it
as above and with CFLAGS="-march=athlon64" which I found in a GCC flag FAQ).
I realize that the -march is my problem but I can't work out how to change
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list