MySQLdb compile error with AMD64

Heiko Wundram modelnine at bit-bukket.org
Tue Feb 28 18:11:28 EST 2006


keith at nekotaku.com wrote:

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

--- Heiko.



More information about the Python-list mailing list