[zeromq-dev] pyzmq build fails ?

xantares 09 xantares09 at hotmail.com
Fri Feb 22 09:55:28 CET 2013


Hi

I'm trying to build pyzmq from git.

I installed libzmq from git successfully.

The configure in pyzmq went OK after my patch:
pyzmq $ python ./setup.py configure --zmq=../libzmq/build/install
running configure
cc -c /tmp/timer_create0hukf0.c -o tmp/timer_create0hukf0.o
cc tmp/timer_create0hukf0.o -o a.out
tmp/timer_create0hukf0.o: In function `main':
timer_create0hukf0.c:(.text+0x15): undefined reference to `timer_create'
collect2: ld returned 1 exit status
cc -c /tmp/timer_createy_kGTs.c -o tmp/timer_createy_kGTs.o
cc tmp/timer_createy_kGTs.o -lrt -o a.out
************************************************
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       ../libzmq/build/install
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../libzmq/build/install/include -Izmq/utils -Izmq/core -Izmq/devices -c build/temp.linux-x86_64-2.7/scratch/vers.c -o build/temp.linux-x86_64-2.7/scratch/vers.o
gcc -pthread build/temp.linux-x86_64-2.7/scratch/vers.o -L../libzmq/build/install/lib -Wl,-R/home/schueller/projects/libzmq/build/install/lib -lzmq -lrt -o build/temp.linux-x86_64-2.7/scratch/vers
    ZMQ version detected: 3.3.0
************************************************

Then the cython build fails:
pyzmq $ python ./setup.py build
running build
running build_py
running build_ext
running configure
cc -c /tmp/timer_createnanPIx.c -o tmp/timer_createnanPIx.o
cc tmp/timer_createnanPIx.o -o a.out
tmp/timer_createnanPIx.o: In function `main':
timer_createnanPIx.c:(.text+0x15): undefined reference to `timer_create'
collect2: ld returned 1 exit status
cc -c /tmp/timer_createolhYyX.c -o tmp/timer_createolhYyX.o
cc tmp/timer_createolhYyX.o -lrt -o a.out
************************************************
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       ../libzmq/build/install
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../libzmq/build/install/include -Izmq/utils -Izmq/core -Izmq/devices -c build/temp.linux-x86_64-2.7/scratch/vers.c -o build/temp.linux-x86_64-2.7/scratch/vers.o
gcc -pthread build/temp.linux-x86_64-2.7/scratch/vers.o -L../libzmq/build/install/lib -Wl,-R/home/schueller/projects/libzmq/build/install/lib -lzmq -lrt -o build/temp.linux-x86_64-2.7/scratch/vers
    ZMQ version detected: 3.3.0
************************************************
skipping 'zmq/core/_device.c' Cython extension (up-to-date)
skipping 'zmq/core/_poll.c' Cython extension (up-to-date)
skipping 'zmq/core/_version.c' Cython extension (up-to-date)
cythoning zmq/core/constants.pyx to zmq/core/constants.c

Error compiling Cython file:
------------------------------------------------------------
...

#-----------------------------------------------------------------------------
# Symbols to export
#-----------------------------------------------------------------------------

__all__ = [ key for key in locals().keys() if not key.startswith('_') ]
                                ^
------------------------------------------------------------

zmq/core/constants.pyx:190:33: Cannot convert 'size_t (zmq_msg_t *) nogil' to Python object

Error compiling Cython file:
------------------------------------------------------------
...
[[[ The same kind of error repeated a bunch of times ]]]
...
zmq/core/constants.pyx:190:33: Cannot convert 'void *(void) nogil' to Python object
building 'zmq.core.constants' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../libzmq/build/install/include -Izmq/utils -Izmq/core -Izmq/devices -I/usr/include/python2.7 -c zmq/core/constants.c -o build/temp.linux-x86_64-2.7/zmq/core/constants.o
zmq/core/constants.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1


What's wrong ?
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130222/5f8db974/attachment.html>


More information about the zeromq-dev mailing list