Can't build PyXML-0.8.4 on RedHat AS-4

View: New views
2 Messages — Rating Filter:   Alert me  

Can't build PyXML-0.8.4 on RedHat AS-4

by Roy Smith-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to build PyXML-0.8.4 on a RedHat AS-4 box.

$ /usr/bin/python -V
Python 2.3.4

$ cat /etc/redhat-release 
Red Hat Enterprise Linux AS release 4 (Nahant Update 7)

$ uname -a
Linux korz 2.6.9-78.0.1.ELsmp #1 SMP Tue Jul 22 18:01:05 EDT 2008 x86_64 unknown

$ gcc --version
gcc (GCC) 3.4.3

When I run "/usr/bin/python setup.py build", it hums along for a while, and then I get:


creating build/temp.linux-x86_64-2.3/extensions/expat/lib
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m64 -D_GNU_SOURCE -fPIC -fPIC -DXML_NS=1 -DXML_DTD=1 -DBYTEORDER=1234 -DXML_CONTEXT_BYTES=1024 -DHAVE_MEMMOVE=1 -Iextensions/expat/lib -I/usr/include/python2.3 -c extensions/expat/lib/xmltok.c -o build/temp.linux-x86_64-2.3/extensions/expat/lib/xmltok.o
extensions/expat/lib/xmltok.c:1: sorry, unimplemented: 64-bit mode not compiled in
error: command 'gcc' failed with exit status 1


-------------------
Roy Smith <smith_roy@...>
Software Guy, EMC
1133 Westchester Ave, 3rd floor
White Plains, NY 10604
+1 914 461 3597
AIM: roysmith649


_______________________________________________
XML-SIG maillist  -  XML-SIG@...
http://mail.python.org/mailman/listinfo/xml-sig

Re: Can't build PyXML-0.8.4 on RedHat AS-4

by "Martin v. Löwis" :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> extensions/expat/lib/xmltok.c:1: sorry, unimplemented: 64-bit mode not
> compiled in
> error: command 'gcc' failed with exit status 1

That's a problem with your gcc installation. It doesn't support the -m64
option. You need to invoke the 64-bit compiler, or build for a 32-bit
Python.

Regards,
Martin
_______________________________________________
XML-SIG maillist  -  XML-SIG@...
http://mail.python.org/mailman/listinfo/xml-sig