RE: MySQLdb compile error with AMD64



Can anyone offer any assistance on this one?

Is it unsupported on AMD64 ? Nothing in the README points to that. I
thought it would default to 32bit if not supported under 64.

Hi,

I have been using MySQLdb on a 32-bit processor, no worries. Love it.

I went to install on an AMD64 running the 64-bit version of SUSE 10.0.

I get the following error during the "python setup.py build"

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
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
_mysql.c:1: error: CPU you selected does not support x86-64 instruction
set
_mysql.c:1: error: CPU you selected does not support x86-64 instruction
set
error: command 'gcc' failed with exit status 1

Any ideas on what I have to do to make this work?

Any help appreciated!

Cheers
Keith

.



Relevant Pages

  • Re: amd64 questions
    ... used by gcc. ... because it is integrated into the FreeBSD tree without the full ... the default amd64 buildworld does build the i386 bits. ... very fragile and occasionally breaks for no obvious reason. ...
    (freebsd-hackers)
  • Re: Passing options to a make install clean
    ... So basically the builds and installs made no difference to the gcc problem. ... tardis# uname -a ... Configured with: FreeBSD/amd64 system compiler ... Wasn't that the original name for the amd64 platform, ...
    (freebsd-questions)
  • Re: Compiling packages for the standard distribution with -Os instead of -O2
    ... If gcc generally generates faster code with -Os than -O2, ... are there that man AMD64 machines with limited memory? ... Or IA64?] ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Gcc bugs break java/jdk15 build? [Workaround]
    ... The good news is perhaps that jdk15 builds ok on amd64 -CURRENT with diablo-jdk. ... That is, on amd64 I was already able to build jdk15, even with the 'old' gcc. ...
    (freebsd-current)
  • Re: gcc -m32 option on amd64.
    ... You are using gcc 4.2 from ports. ... compiler needs i386 headers in many cases. ... gcc on amd64 is capable of generating i386 code, ... we use a large number of amd64 boxes as compile farm servers ...
    (freebsd-hackers)