[lxml-dev] compilation using gcc 4.0.1
Hi I'm trying to build lxml 0.6 using gcc 4.0: $ gcc --version gcc (GCC) 4.0.1 20050604 (prerelease) (Debian 4.0.0-8ubuntu3) Copyright (C) 2005 Free Software Foundation, Inc. The compilation fails with the following result: python2.4 setup.py build_ext -i running build_ext building 'lxml.etree' extension creating build creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/src creating build/temp.linux-i686-2.4/src/lxml gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.4 -c src/lxml/etree.c -o build/temp.linux-i686-2.4/src/lxml/etree.o -w src/lxml/etree.c: In function '__pyx_f_5etree__elementFactory': src/lxml/etree.c:3008: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__commentFactory': src/lxml/etree.c:3385: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribFactory': src/lxml/etree.c:4228: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribIteratorFactory': src/lxml/etree.c:4365: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__elementIteratorFactory': src/lxml/etree.c:4501: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_14XPathEvaluator___init__': src/lxml/etree.c:5494: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_changeDocumentBelow': src/lxml/etree.c:9110: error: invalid lvalue in assignment error: command 'gcc' failed with exit status 1 make: *** [inplace] Error 1 Any suggestions? :) It might be a question to pyrex developers though. Kind Regards -- Misha SysInfo: python2.4 2.4.1-1ubuntu2 python2.4-pyrex 0.9.3-1ubuntu5
[I accidentally only sent this to Mikhail directly before; sending to the list as well] Mikhail Sobolev wrote:
I'm trying to build lxml 0.6 using gcc 4.0:
$ gcc --version gcc (GCC) 4.0.1 20050604 (prerelease) (Debian 4.0.0-8ubuntu3) Copyright (C) 2005 Free Software Foundation, Inc. [snip] Any suggestions? :) It might be a question to pyrex developers though.
Thanks for the report! I don't dare trying to install gcc 4.0 on this box yet right now, so debugging this is going to be hard. It may indeed be better to ask pyrex developers, though it'd be nice to get this down to a small test sample in that case. I'd be happy to help you figure this out; if you need information about what a particular piece of lxml code does please ask! I'll also look at getting a gcc-4.0 safely installed on my system, so I can do some experimenting myself. Regards, Martijn
participants (2)
-
Martijn Faassen
-
mss@mawhrin.net