[lxml-dev] Re: lxml build problem

Olivier Grisel ogrisel at nuxeo.com
Mon Feb 27 10:14:03 CET 2006


Allan Curtis a écrit :

> I am trying to build lxml from the latest svn build on a Suse10.0 based 
> computer with GCC4.02 and I seem to be getting gcc related errors when 
> compiling etree.
> 
> python setup.py  build_ext -i
[snip]
> src/lxml/etree.c:13105: error: invalid lvalue in assignment
> error: command 'gcc' failed with exit status 1
> make: *** [inplace] Error 1


This is a konwn problem: your version of Pyrex does not support gcc4 as 
explained on the installation page of lxml:

  http://codespeak.net/lxml/installation.html

Pyrex 0.9.3.1 does not fix the problem entirely.

You can download a patch above or you can directly 'svn co' a prepatched version 
of pyrex here for instance:

  http://svn.nuxeo.org/pub/vendor/Pyrex/tags/0.9.3-gcc4-patched/

Best,

-- 
Olivier



More information about the lxml-dev mailing list