Hello!
https://bugs.pypy.org does not work at the moment, so posting here.

pip install -e git+git://github.com/amauryfa/lxml.git@cffi#egg=lxml-cffi

works under pypy 2.1 and fails with pypy nighly.
Not sure that this does really belong to pypy bugtracker, but it looks
like a regression. Tested under Ubuntu 12.04 and OS X, on the same
machines. In order to install lxml from source on ubuntu 12.04, I
installed the following ubuntu packages: libxml2 libxslt1-dev
zlib1g-dev

pypy nighly (it failed on older nightlies too, and I can check on
other releases if needed)

Python 2.7.3 (8df8a01902f8, Feb 27 2014, 23:00:44)
[PyPy 2.3.0-alpha0 with GCC 4.6.3] on linux2

Error under OS X (here error message is better than with gcc):


    VerificationError: CompileError: command 'cc' failed with exit status 1

    Complete output from command python setup.py egg_info:

    src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c:1555:18:
warning: incompatible pointer types initializing 'xmlBuffer **' (aka
'struct _xmlBuffer **') with an expression of type 'xmlBufPtr *' (aka
'struct _xmlBuf **') [-Wincompatible-pointer-types]


  { xmlBuffer * *tmp = &p->buffer; (void)tmp; }


                 ^     ~~~~~~~~~~


src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c:1556:18:
warning: incompatible pointer types initializing 'xmlBuffer **' (aka
'struct _xmlBuffer **') with an expression of type 'xmlBufPtr *' (aka
'struct _xmlBuf **') [-Wincompatible-pointer-types]


  { xmlBuffer * *tmp = &p->conv; (void)tmp; }


                 ^     ~~~~~~~~


src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c:1603:11:
error: cannot take the address of an rvalue of type 'const xmlChar *'
(aka 'const unsigned char *')


  return (&XML_XML_NAMESPACE);


          ^~~~~~~~~~~~~~~~~~


2 warnings and 1 error generated.


Building lxml version 3.2.1.


Building without Cython.


Using build configuration of libxslt 1.1.28


Building against libxml2/libxslt in the following directory: /opt/local/lib





Full error under Ubuntu 12.04:

(testlxml_nighly)[DEV] kostia@dev ~ $ pip install -e
git+git://github.com/amauryfa/lxml.git@cffi#egg=lxml-cffi

Obtaining lxml-cffi from
git+git://github.com/amauryfa/lxml.git@cffi#egg=lxml-cffi

  Updating ./testlxml_nighly/src/lxml-cffi clone (to cffi)

  Running setup.py
(path:/home/kostia/testlxml_nighly/src/lxml-cffi/setup.py) egg_info
for package lxml-cffi

    src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c: In
function '_cffi_var_XML_XML_NAMESPACE':

    src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c:1603:11:
error: lvalue required as unary '&' operand

    Building lxml version 3.2.1.

    Building without Cython.

    Using build configuration of libxslt 1.1.26

    Building against libxml2/libxslt in the following directory:
/usr/lib/x86_64-linux-gnu

    Traceback (most recent call last):

      File "app_main.py", line 72, in run_toplevel

      File "app_main.py", line 578, in run_it

      File "<string>", line 17, in <module>

      File "/home/kostia/testlxml_nighly/src/lxml-cffi/setup.py", line
220, in <module>

        **setup_extra_options()

      File "/home/kostia/testlxml_nighly/src/lxml-cffi/setup.py", line
131, in setup_extra_options

        STATIC_CFLAGS, STATIC_BINARIES)

      File "setupinfo.py", line 161, in ext_modules

        import lxml.etree

      File "src/lxml/../lxml-cffi/etree.py", line 7, in <module>

        from .apihelpers import _assertValidNode, _assertValidDoc

      File "src/lxml/../lxml-cffi/apihelpers.py", line 3, in <module>

        from .includes.etree_defs import _isString, _getNs, _isElement

      File "src/lxml/includes/../../lxml-cffi/includes/etree_defs.py",
line 1, in <module>

        from . import tree

      File "src/lxml/includes/../../lxml-cffi/includes/tree.py", line
490, in <module>

        libraries=['xml2'])

      File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/api.py",
line 339, in verify

        lib = self.verifier.load_library()

      File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/verifier.py",
line 74, in load_library

        self._compile_module()

      File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/verifier.py",
line 139, in _compile_module

        outputfilename = ffiplatform.compile(tmpdir, self.get_extension())

      File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/ffiplatform.py",
line 25, in compile

        outputfilename = _build(tmpdir, ext)

      File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/ffiplatform.py",
line 50, in _build

        raise VerificationError('%s: %s' % (e.__class__.__name__, e))

    VerificationError: CompileError: command 'cc' failed with exit status 1

    Complete output from command python setup.py egg_info:

    src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c: In
function '_cffi_var_XML_XML_NAMESPACE':


src/lxml-cffi/includes/__pycache__/_cffi__gd9dd9435x1886a454.c:1603:11:
error: lvalue required as unary '&' operand


Building lxml version 3.2.1.


Building without Cython.


Using build configuration of libxslt 1.1.26


Building against libxml2/libxslt in the following directory:
/usr/lib/x86_64-linux-gnu


Traceback (most recent call last):


  File "app_main.py", line 72, in run_toplevel


  File "app_main.py", line 578, in run_it


  File "<string>", line 17, in <module>


  File "/home/kostia/testlxml_nighly/src/lxml-cffi/setup.py", line
220, in <module>


    **setup_extra_options()


  File "/home/kostia/testlxml_nighly/src/lxml-cffi/setup.py", line
131, in setup_extra_options


    STATIC_CFLAGS, STATIC_BINARIES)


  File "setupinfo.py", line 161, in ext_modules


    import lxml.etree


  File "src/lxml/../lxml-cffi/etree.py", line 7, in <module>


    from .apihelpers import _assertValidNode, _assertValidDoc


  File "src/lxml/../lxml-cffi/apihelpers.py", line 3, in <module>


    from .includes.etree_defs import _isString, _getNs, _isElement


  File "src/lxml/includes/../../lxml-cffi/includes/etree_defs.py",
line 1, in <module>


    from . import tree


  File "src/lxml/includes/../../lxml-cffi/includes/tree.py", line 490,
in <module>


    libraries=['xml2'])


  File "/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/api.py",
line 339, in verify


    lib = self.verifier.load_library()


  File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/verifier.py",
line 74, in load_library


    self._compile_module()


  File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/verifier.py",
line 139, in _compile_module


    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())


  File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/ffiplatform.py",
line 25, in compile


    outputfilename = _build(tmpdir, ext)


  File 
"/home/chtd/pypy-c-jit-69524-8df8a01902f8-linux64/lib_pypy/cffi/ffiplatform.py",
line 50, in _build


    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1
----------------------------------------

Cleaning up...
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to