Title: MySQLdb compile error with AMD64

>> Can anyone offer any assistance on this one?

>

>Look here:

>

>>> 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.

Hey there!

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 cant work out how to change it.

Any ideas?

Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to