[lxml-dev] build & performance issues with 2.0beta2

jholg at gmx.de jholg at gmx.de
Fri Feb 1 11:46:04 CET 2008


Hi Stefan,

> which lets me assume that PY_LONG_LONG is the usual "long long" on your
> machine, which apparently fails in gcc 2.95.
> 
> Let me guess: your Python install was not compiled with gcc 2.95, was it?
> 

It was compiled with 2.95:

0 pytaf at adevp02 .../lxml-2.0beta2 $ gcc -dumpversion
2.95.2
0 pytaf at adevp02 .../lxml-2.0beta2 $ /apps/pydev/hjoukl/bin/python2.4 setup.py build
Building with Cython 0.9.6.11b.
Building lxml version 2.0.beta2-51091.
running build
running build_py
writing byte-compilation script '/tmp/tmp61b-gM.py'
/apps/pydev/hjoukl/bin/python2.4 -O /tmp/tmp61b-gM.py
removing /tmp/tmp61b-gM.py
running build_ext
building 'lxml.etree' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/apps/prod//include -I/apps/prod//include/libxml2 -I/apps/prod/include/libxml2 -I/apps/prod/include -I/apps/pydev/hjoukl/include/python2.4 -c src/lxml/lxml.etree.c -o build/temp.solaris-2.8-sun4u-2.4/src/lxml/lxml.etree.o -w
src/lxml/lxml.etree.c: In function `__pyx_PyInt_AsLongLong':
src/lxml/lxml.etree.c:110165: parse error before `long'
src/lxml/lxml.etree.c:110167: `val' undeclared (first use in this function)
src/lxml/lxml.etree.c:110167: (Each undeclared identifier is reported only once
src/lxml/lxml.etree.c:110167: for each function it appears in.)
src/lxml/lxml.etree.c: In function `__pyx_PyInt_AsUnsignedLongLong':
src/lxml/lxml.etree.c:110185: parse error before `long'
src/lxml/lxml.etree.c:110187: `val' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
1 pytaf at adevp02 .../lxml-2.0beta2 $ 
0 pytaf at adevp02 .../lxml-2.0beta2 $
0 pytaf at adevp02 .../lxml-2.0beta2 $
0 pytaf at adevp02 .../lxml-2.0beta2 $
0 pytaf at adevp02 .../lxml-2.0beta2 $
0 pytaf at adevp02 .../lxml-2.0beta2 $
0 pytaf at adevp02 .../lxml-2.0beta2 $/apps/pydev/hjoukl/bin/python2.4
Python 2.4.4 (#1, Mar  6 2007, 11:22:31)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>>
0 pytaf at adevp02 .../lxml-2.0beta2 $

So I don't *think* it's s.th. to do with my setup, which is the same I used with the successful 2.0alpha builds (older cython version then, of course).

Holger
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the lxml-dev mailing list