[lxml-dev] Pyrex officially supports gcc4

http://comments.gmane.org/gmane.comp.python.announce/5559 That will make it easier to build lxml on recent linux and MacOSX platforms. -- Olivier

Olivier Grisel wrote:
http://comments.gmane.org/gmane.comp.python.announce/5559
That will make it easier to build lxml on recent linux and MacOSX platforms.
It'll be nice for someone to verify if this works -- I reported the extra work I had to do to make lxml in particular work to the Pyrex mailing list, but I'm not sure that was integrated as well. So, please let us know whether it works for you now with a stock Pyrex. Regards, Martijn

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martijn Faassen wrote:
Olivier Grisel wrote:
http://comments.gmane.org/gmane.comp.python.announce/5559
That will make it easier to build lxml on recent linux and MacOSX platforms.
It'll be nice for someone to verify if this works -- I reported the extra work I had to do to make lxml in particular work to the Pyrex mailing list, but I'm not sure that was integrated as well.
So, please let us know whether it works for you now with a stock Pyrex.
Hi there, Using the latest PyRex release fails for me while tryin' to build lxml. My conf : - FC4 - python-2.4.2 - libxml2 CVS - lxml trunk - PyRex 0.8.3-1 The problem is when building lxml with the following traceback. [anguenot@finlandia lxml]$ sudo python2.4 setup.py install running install running build running build_py running build_ext building 'lxml.etree' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall - -Wstrict-prototypes -fPIC -I/usr/local/include/libxml2 - -I/usr/local/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:3349: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__commentFactory': src/lxml/etree.c:3726: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribFactory': src/lxml/etree.c:4569: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribIteratorFactory': src/lxml/etree.c:4706: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__elementIteratorFactory': src/lxml/etree.c:4842: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_22XPathDocumentEvaluator___init__': src/lxml/etree.c:6058: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_21XPathElementEvaluator___init__': src/lxml/etree.c:6837: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_changeDocumentBelowHelper': src/lxml/etree.c:10305: error: invalid lvalue in assignment error: command 'gcc' failed with exit status 1 When using the Pyrex 0.8.3 with the gcc patch then it works fine. That's it just for the record. J. - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDPYoRGhoG8MxZ/pIRAnnKAKCDe09RLvebe/yS7lChrF8Ww0yoUACeIMla EFvuGq2suyH4aaeWh7yC7X8= =wr3I -----END PGP SIGNATURE-----

Julien Anguenot wrote: [snip]
Using the latest PyRex release fails for me while tryin' to build lxml.
My conf :
- FC4 - python-2.4.2 - libxml2 CVS - lxml trunk - PyRex 0.8.3-1
The problem is when building lxml with the following traceback.
[anguenot@finlandia lxml]$ sudo python2.4 setup.py install running install running build running build_py running build_ext building 'lxml.etree' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall - -Wstrict-prototypes -fPIC -I/usr/local/include/libxml2 - -I/usr/local/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:3349: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__commentFactory': src/lxml/etree.c:3726: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribFactory': src/lxml/etree.c:4569: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribIteratorFactory': src/lxml/etree.c:4706: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__elementIteratorFactory': src/lxml/etree.c:4842: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_22XPathDocumentEvaluator___init__': src/lxml/etree.c:6058: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_21XPathElementEvaluator___init__': src/lxml/etree.c:6837: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_changeDocumentBelowHelper': src/lxml/etree.c:10305: error: invalid lvalue in assignment error: command 'gcc' failed with exit status 1
When using the Pyrex 0.8.3 with the gcc patch then it works fine.
That's it just for the record.
Hi there, I'm responding rather late, but could you please report this to the Pyrex people? Regards, Martijn

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martijn Faassen wrote:
Julien Anguenot wrote: [snip]
Using the latest PyRex release fails for me while tryin' to build lxml.
My conf :
- FC4 - python-2.4.2 - libxml2 CVS - lxml trunk - PyRex 0.8.3-1
The problem is when building lxml with the following traceback.
[anguenot@finlandia lxml]$ sudo python2.4 setup.py install running install running build running build_py running build_ext building 'lxml.etree' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall - -Wstrict-prototypes -fPIC -I/usr/local/include/libxml2 - -I/usr/local/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:3349: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__commentFactory': src/lxml/etree.c:3726: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribFactory': src/lxml/etree.c:4569: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__attribIteratorFactory': src/lxml/etree.c:4706: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree__elementIteratorFactory': src/lxml/etree.c:4842: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_22XPathDocumentEvaluator___init__': src/lxml/etree.c:6058: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_21XPathElementEvaluator___init__': src/lxml/etree.c:6837: error: invalid lvalue in assignment src/lxml/etree.c: In function '__pyx_f_5etree_changeDocumentBelowHelper': src/lxml/etree.c:10305: error: invalid lvalue in assignment error: command 'gcc' failed with exit status 1
When using the Pyrex 0.8.3 with the gcc patch then it works fine.
That's it just for the record.
Hi there,
I'm responding rather late, but could you please report this to the Pyrex people?
Sure, I will. J. - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDaktNGhoG8MxZ/pIRAt+YAJ9yOW3NlqZMEftzknt+Mi1HhmSnnACeN2QN ikwuw1rmYPzweB7PKmkvzro= =Jx7b -----END PGP SIGNATURE-----

Julien Anguenot wrote:
Martijn Faassen wrote:
Julien Anguenot wrote: [snip]
Using the latest PyRex release fails for me while tryin' to build lxml. When using the Pyrex 0.8.3 with the gcc patch then it works fine.
That's it just for the record.
I'm responding rather late, but could you please report this to the Pyrex people?
Sure, I will.
I had the same problem with Pyrex 0.9.3.1 and it's solved by the original patch by Martijn. I resent it to the Author of Pyrex just this morning, so they should know. But it's never bad to have more people bug them... Stefan
participants (4)
-
Julien Anguenot
-
Martijn Faassen
-
Olivier Grisel
-
Stefan Behnel