Skip to content

Instantly share code, notes, and snippets.

@flavianmissi
Created September 8, 2013 02:56
Show Gist options
  • Select an option

  • Save flavianmissi/6481472 to your computer and use it in GitHub Desktop.

Select an option

Save flavianmissi/6481472 to your computer and use it in GitHub Desktop.
output of building gevent with pypy on mac and ubuntu
$ python --version
Python 2.7.3 (480845e6b1dd, Jul 31 2013, 10:58:28)
[PyPy 2.1.0 with GCC 4.2.1 Compatible Clang Compiler]
$ uname -a
Darwin MAC185954.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Unpacking /Users/flavia.carlette/projects/gevent
Running setup.py egg_info for package from file:///Users/flavia.carlette/projects/gevent
warning: no files found matching 'Makefile.ext'
Requirement already satisfied (use --upgrade to upgrade): greenlet in /Users/flavia.carlette/pypy-2.1/lib_pypy (from gevent==1.0dev)
Installing collected packages: gevent
Running setup.py install for gevent
/Users/flavia.carlette/.virtualenvs/gevent-pypy/bin/pypy util/cythonpp.py -o gevent.core.c gevent/core.ppyx
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Generating gevent.core.c 2053650 bytes
Saving gevent/core.pyx
echo >> gevent.core.c
echo '#include "callbacks.c"' >> gevent.core.c
mv gevent.core.* gevent/
cython -o gevent.ares.c gevent/ares.pyx
mv gevent.ares.* gevent/
cython -o gevent._semaphore.c gevent/_semaphore.pyx
mv gevent._semaphore.* gevent/
cython -o gevent._util.c gevent/_util.pyx
mv gevent._util.* gevent/
Running '/bin/sh /private/var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build/libev/configure > configure-output.txt' in /private/var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build/build/temp.macosx-10.7-x86_64-2.7/libev
building 'gevent.core' extension
cc -arch x86_64 -O2 -fPIC -Wimplicit -U__llvm__ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.7-x86_64-2.7/libev -Ilibev -I/Users/flavia.carlette/.virtualenvs/gevent-pypy/include -c gevent/gevent.core.c -o build/temp.macosx-10.7-x86_64-2.7/gevent/gevent.core.o
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:467:48: warning: '/*' within block comment [-Wcomment]
/*#define MIN_INTERVAL 0.00000095367431640625 /* 1/2**20, good till 2200 */
^
libev/ev.c:1311:31: warning: 'extern' variable has an initializer [-Wextern-initializer]
EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a definition despite extern */
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
In file included from libev/ev.c:2174:
libev/ev_poll.c:110:18: warning: expression result unused [-Wunused-value]
assert (("libev: poll() returned illegal result, broken BSD kernel?", p < polls + pollcnt));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2580:12: warning: expression result unused [-Wunused-value]
assert (("libev: watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2583:14: warning: expression result unused [-Wunused-value]
assert (("libev: pending watcher not on pending queue", pendings [ABSPRI (w)][w->pending - 1].w == w));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2593:16: warning: expression result unused [-Wunused-value]
assert (("libev: active index mismatch in heap", ev_active (ANHE_w (heap [i])) == i));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2594:16: warning: expression result unused [-Wunused-value]
assert (("libev: heap condition violated", i == HEAP0 || ANHE_at (heap [HPARENT (i)]) <= ANHE_at (heap [i])));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2595:16: warning: expression result unused [-Wunused-value]
assert (("libev: heap at cache mismatch", ANHE_at (heap [i]) == ev_at (ANHE_w (heap [i]))));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2606:16: warning: expression result unused [-Wunused-value]
assert (("libev: active index mismatch", ev_active (ws [cnt]) == cnt + 1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2624:14: warning: expression result unused [-Wunused-value]
assert (("libev: negative fd in fdchanges", fdchanges [i] >= 0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2637:24: warning: expression result unused [-Wunused-value]
assert (("libev: io watcher list contains a loop", w != w2));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2641:20: warning: expression result unused [-Wunused-value]
assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2642:20: warning: expression result unused [-Wunused-value]
assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2824:24: warning: expression result unused [-Wunused-value]
assert (("libev: negative ev_timer repeat value found while processing timers", w->repeat > 0.));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3025:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_loop recursion during release detected", loop_done != EVBREAK_RECURSE));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3146:22: warning: expression result unused [-Wunused-value]
assert (("libev: pipe_w not active, but pipe not written", ev_is_active (&pipe_w)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3320:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_start called with negative fd", fd >= 0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3321:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_start called with illegal event mask", !(w->events & ~(EV__IOFDSET | EV_READ | EV_WRITE))));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3330:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_start called with corrupted watcher", ((WL)w)->next != (WL)w));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3332:34: warning: '&' within '|' [-Wbitwise-op-parentheses]
fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
~~~~~~~~~~^~~~~~~~~~~~~ ~
libev/ev.c:3332:34: note: place parentheses around the '&' expression to silence this warning
fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
^
( )
libev/ev.c:3345:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_stop called with illegal fd (must stay constant after start!)", w->fd >= 0 && w->fd < anfdmax));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3365:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_timer_start called with negative timer repeat value", w->repeat >= 0.));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3393:14: warning: expression result unused [-Wunused-value]
assert (("libev: internal timer heap corruption", ANHE_w (timers [active]) == (WT)w));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3524:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3527:12: warning: expression result unused [-Wunused-value]
assert (("libev: a signal must not be attached to two different loops",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3644:12: warning: expression result unused [-Wunused-value]
assert (("libev: child watchers are only supported in the default loop", loop == ev_default_loop_ptr));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
gevent/gevent.core.c:11424:17: warning: implicit declaration of function 'Py_ReprEnter' is invalid in C99 [-Wimplicit-function-declaration]
__pyx_t_1 = ((Py_ReprEnter(((PyObject*)__pyx_v_self)) != 0) != 0);
^
gevent/gevent.core.c:11792:5: warning: implicit declaration of function 'Py_ReprLeave' is invalid in C99 [-Wimplicit-function-declaration]
Py_ReprLeave(((PyObject*)__pyx_v_self));
^
In file included from gevent/gevent.core.c:44265:
gevent/callbacks.c:8:20: error: no member named 'curexc_type' in 'struct _ts'
type = tstate->curexc_type;
~~~~~~ ^
gevent/callbacks.c:11:21: error: no member named 'curexc_value' in 'struct _ts'
value = tstate->curexc_value;
~~~~~~ ^
gevent/callbacks.c:12:25: error: no member named 'curexc_traceback' in 'struct _ts'
traceback = tstate->curexc_traceback;
~~~~~~ ^
28 warnings and 3 errors generated.
error: command 'cc' failed with exit status 1
Complete output from command /Users/flavia.carlette/.virtualenvs/gevent-pypy/bin/pypy -c "import setuptools;__file__='/var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-Oet451-record/install-record.txt --single-version-externally-managed --install-headers /Users/flavia.carlette/.virtualenvs/gevent-pypy/include/site/python2.7:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-2.7
creating build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/_threading.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/backdoor.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/baseserver.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/coros.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/event.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/fileobject.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/greenlet.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/hub.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/local.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/lock.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/monkey.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/os.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/pool.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/pywsgi.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/queue.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/resolver_ares.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/resolver_thread.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/select.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/server.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/socket.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/ssl.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/subprocess.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/thread.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/threading.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/threadpool.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/timeout.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/util.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/win32util.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
copying gevent/wsgi.py -> build/lib.macosx-10.7-x86_64-2.7/gevent
running build_ext
/Users/flavia.carlette/.virtualenvs/gevent-pypy/bin/pypy util/cythonpp.py -o gevent.core.c gevent/core.ppyx
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Generating gevent.core.c 2053650 bytes
Saving gevent/core.pyx
echo >> gevent.core.c
echo '#include "callbacks.c"' >> gevent.core.c
mv gevent.core.* gevent/
cython -o gevent.ares.c gevent/ares.pyx
mv gevent.ares.* gevent/
cython -o gevent._semaphore.c gevent/_semaphore.pyx
mv gevent._semaphore.* gevent/
cython -o gevent._util.c gevent/_util.pyx
mv gevent._util.* gevent/
Running '/bin/sh /private/var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build/libev/configure > configure-output.txt' in /private/var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build/build/temp.macosx-10.7-x86_64-2.7/libev
building 'gevent.core' extension
creating build/temp.macosx-10.7-x86_64-2.7/gevent
cc -arch x86_64 -O2 -fPIC -Wimplicit -U__llvm__ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.7-x86_64-2.7/libev -Ilibev -I/Users/flavia.carlette/.virtualenvs/gevent-pypy/include -c gevent/gevent.core.c -o build/temp.macosx-10.7-x86_64-2.7/gevent/gevent.core.o
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:467:48: warning: '/*' within block comment [-Wcomment]
/*#define MIN_INTERVAL 0.00000095367431640625 /* 1/2**20, good till 2200 */
^
libev/ev.c:1311:31: warning: 'extern' variable has an initializer [-Wextern-initializer]
EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a definition despite extern */
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
In file included from libev/ev.c:2174:
libev/ev_poll.c:110:18: warning: expression result unused [-Wunused-value]
assert (("libev: poll() returned illegal result, broken BSD kernel?", p < polls + pollcnt));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2580:12: warning: expression result unused [-Wunused-value]
assert (("libev: watcher has invalid priority", ABSPRI (w) >= 0 && ABSPRI (w) < NUMPRI));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2583:14: warning: expression result unused [-Wunused-value]
assert (("libev: pending watcher not on pending queue", pendings [ABSPRI (w)][w->pending - 1].w == w));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2593:16: warning: expression result unused [-Wunused-value]
assert (("libev: active index mismatch in heap", ev_active (ANHE_w (heap [i])) == i));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2594:16: warning: expression result unused [-Wunused-value]
assert (("libev: heap condition violated", i == HEAP0 || ANHE_at (heap [HPARENT (i)]) <= ANHE_at (heap [i])));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2595:16: warning: expression result unused [-Wunused-value]
assert (("libev: heap at cache mismatch", ANHE_at (heap [i]) == ev_at (ANHE_w (heap [i]))));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2606:16: warning: expression result unused [-Wunused-value]
assert (("libev: active index mismatch", ev_active (ws [cnt]) == cnt + 1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2624:14: warning: expression result unused [-Wunused-value]
assert (("libev: negative fd in fdchanges", fdchanges [i] >= 0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2637:24: warning: expression result unused [-Wunused-value]
assert (("libev: io watcher list contains a loop", w != w2));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2641:20: warning: expression result unused [-Wunused-value]
assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2642:20: warning: expression result unused [-Wunused-value]
assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:2824:24: warning: expression result unused [-Wunused-value]
assert (("libev: negative ev_timer repeat value found while processing timers", w->repeat > 0.));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3025:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_loop recursion during release detected", loop_done != EVBREAK_RECURSE));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3146:22: warning: expression result unused [-Wunused-value]
assert (("libev: pipe_w not active, but pipe not written", ev_is_active (&pipe_w)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3320:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_start called with negative fd", fd >= 0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3321:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_start called with illegal event mask", !(w->events & ~(EV__IOFDSET | EV_READ | EV_WRITE))));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3330:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_start called with corrupted watcher", ((WL)w)->next != (WL)w));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3332:34: warning: '&' within '|' [-Wbitwise-op-parentheses]
fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
~~~~~~~~~~^~~~~~~~~~~~~ ~
libev/ev.c:3332:34: note: place parentheses around the '&' expression to silence this warning
fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
^
( )
libev/ev.c:3345:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_io_stop called with illegal fd (must stay constant after start!)", w->fd >= 0 && w->fd < anfdmax));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3365:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_timer_start called with negative timer repeat value", w->repeat >= 0.));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3393:14: warning: expression result unused [-Wunused-value]
assert (("libev: internal timer heap corruption", ANHE_w (timers [active]) == (WT)w));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3524:12: warning: expression result unused [-Wunused-value]
assert (("libev: ev_signal_start called with illegal signal number", w->signum > 0 && w->signum < EV_NSIG));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3527:12: warning: expression result unused [-Wunused-value]
assert (("libev: a signal must not be attached to two different loops",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
In file included from gevent/gevent.core.c:313:
In file included from gevent/libev.h:2:
libev/ev.c:3644:12: warning: expression result unused [-Wunused-value]
assert (("libev: child watchers are only supported in the default loop", loop == ev_default_loop_ptr));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
gevent/gevent.core.c:11424:17: warning: implicit declaration of function 'Py_ReprEnter' is invalid in C99 [-Wimplicit-function-declaration]
__pyx_t_1 = ((Py_ReprEnter(((PyObject*)__pyx_v_self)) != 0) != 0);
^
gevent/gevent.core.c:11792:5: warning: implicit declaration of function 'Py_ReprLeave' is invalid in C99 [-Wimplicit-function-declaration]
Py_ReprLeave(((PyObject*)__pyx_v_self));
^
In file included from gevent/gevent.core.c:44265:
gevent/callbacks.c:8:20: error: no member named 'curexc_type' in 'struct _ts'
type = tstate->curexc_type;
~~~~~~ ^
gevent/callbacks.c:11:21: error: no member named 'curexc_value' in 'struct _ts'
value = tstate->curexc_value;
~~~~~~ ^
gevent/callbacks.c:12:25: error: no member named 'curexc_traceback' in 'struct _ts'
traceback = tstate->curexc_traceback;
~~~~~~ ^
28 warnings and 3 errors generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /Users/flavia.carlette/.virtualenvs/gevent-pypy/bin/pypy -c "import setuptools;__file__='/var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-Oet451-record/install-record.txt --single-version-externally-managed --install-headers /Users/flavia.carlette/.virtualenvs/gevent-pypy/include/site/python2.7 failed with error code 1 in /var/folders/pt/83nhzyk51lsf_13hrj6rng9h0000gp/T/pip-kSE9Yl-build
Storing complete log in /Users/flavia.carlette/.pip/pip.log
environment:
$ python --version
Python 2.7.3 (480845e6b1dd, Jul 31 2013, 09:57:07)
[PyPy 2.1.0 with GCC 4.6.3]
$ uname -a
Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Unpacking /home/ubuntu/gevent
Running setup.py egg_info for package from file:///home/ubuntu/gevent
warning: no files found matching 'Makefile.ext'
Requirement already satisfied (use --upgrade to upgrade): greenlet in /home/ubuntu/pypy-2.1/lib_pypy (from gevent==1.0dev)
Installing collected packages: gevent
Running setup.py install for gevent
/home/ubuntu/.virtualenvs/gevent-pypy/bin/pypy util/cythonpp.py -o gevent.core.c gevent/core.ppyx
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Generating gevent.core.c 2053338 bytes
Saving gevent/core.pyx
echo >> gevent.core.c
echo '#include "callbacks.c"' >> gevent.core.c
mv gevent.core.* gevent/
cython -o gevent.ares.c gevent/ares.pyx
mv gevent.ares.* gevent/
cython -o gevent._semaphore.c gevent/_semaphore.pyx
mv gevent._semaphore.* gevent/
cython -o gevent._util.c gevent/_util.pyx
mv gevent._util.* gevent/
Running '/bin/sh /tmp/pip-8mA_Xy-build/libev/configure > configure-output.txt' in /tmp/pip-8mA_Xy-build/build/temp.linux-x86_64-2.7/libev
building 'gevent.core' extension
cc -O2 -fPIC -Wimplicit -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-2.7/libev -Ilibev -I/home/ubuntu/.virtualenvs/gevent-pypy/include -c gevent/gevent.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core.o
In file included from gevent/libev.h:2:0,
from gevent/gevent.core.c:313:
libev/ev.c:1311:31: warning: ‘ev_default_loop_ptr’ initialized and declared ‘extern’ [enabled by default]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_8callback_6__repr__’:
gevent/gevent.core.c:11424:3: warning: implicit declaration of function ‘Py_ReprEnter’ [-Wimplicit-function-declaration]
gevent/gevent.core.c:11792:5: warning: implicit declaration of function ‘Py_ReprLeave’ [-Wimplicit-function-declaration]
In file included from gevent/gevent.core.c:44265:0:
gevent/callbacks.c: In function ‘gevent_handle_error’:
gevent/callbacks.c:8:18: error: ‘PyThreadState’ has no member named ‘curexc_type’
gevent/callbacks.c:11:19: error: ‘PyThreadState’ has no member named ‘curexc_value’
gevent/callbacks.c:12:23: error: ‘PyThreadState’ has no member named ‘curexc_traceback’
In file included from gevent/libev.h:2:0,
from gevent/gevent.core.c:313:
gevent/gevent.core.c: In function ‘evpipe_write’:
libev/ev.c:1940:17: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
libev/ev.c:1952:17: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
gevent/gevent.core.c: In function ‘pipecb’:
libev/ev.c:1973:16: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
libev/ev.c:1987:16: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
error: command 'cc' failed with exit status 1
Complete output from command /home/ubuntu/.virtualenvs/gevent-pypy/bin/pypy -c "import setuptools;__file__='/tmp/pip-8mA_Xy-build/setup.py';exec(compile(open(__file__).read( ).replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WbCyYv-record/install-record.txt --single-version-externally-managed --install-headers /home/ubuntu/.virtu alenvs/gevent-pypy/include/site/python2.7:
running install
53
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/gevent
copying gevent/__init__.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/resolver_thread.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/hub.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/os.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/thread.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/pywsgi.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/win32util.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/greenlet.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/monkey.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/coros.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/threadpool.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/event.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/server.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/baseserver.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/local.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/socket.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/queue.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/backdoor.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/ssl.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/select.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/wsgi.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/_threading.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/subprocess.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/pool.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/lock.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/resolver_ares.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/timeout.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/fileobject.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/threading.py -> build/lib.linux-x86_64-2.7/gevent
copying gevent/util.py -> build/lib.linux-x86_64-2.7/gevent
running build_ext
/home/ubuntu/.virtualenvs/gevent-pypy/bin/pypy util/cythonpp.py -o gevent.core.c gevent/core.ppyx
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Running cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32)
Reusing cython -o gevent.core.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32)
Generating gevent.core.c 2053338 bytes
Saving gevent/core.pyx
echo >> gevent.core.c
echo '#include "callbacks.c"' >> gevent.core.c
mv gevent.core.* gevent/
cython -o gevent.ares.c gevent/ares.pyx
mv gevent.ares.* gevent/
cython -o gevent._semaphore.c gevent/_semaphore.pyx
mv gevent._semaphore.* gevent/
cython -o gevent._util.c gevent/_util.pyx
mv gevent._util.* gevent/
Running '/bin/sh /tmp/pip-8mA_Xy-build/libev/configure > configure-output.txt' in /tmp/pip-8mA_Xy-build/build/temp.linux-x86_64-2.7/libev
building 'gevent.core' extension
creating build/temp.linux-x86_64-2.7/gevent
cc -O2 -fPIC -Wimplicit -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CHECK_ENABLE=0 -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.linux-x86_64-2.7/libev -Il ibev -I/home/ubuntu/.virtualenvs/gevent-pypy/include -c gevent/gevent.core.c -o build/temp.linux-x86_64-2.7/gevent/gevent.core.o
In file included from gevent/libev.h:2:0,
from gevent/gevent.core.c:313:
libev/ev.c:1311:31: warning: ‘ev_default_loop_ptr’ initialized and declared ‘extern’ [enabled by default]
gevent/gevent.core.c: In function ‘__pyx_pf_6gevent_4core_8callback_6__repr__’:
gevent/gevent.core.c:11424:3: warning: implicit declaration of function ‘Py_ReprEnter’ [-Wimplicit-function-declaration]
gevent/gevent.core.c:11792:5: warning: implicit declaration of function ‘Py_ReprLeave’ [-Wimplicit-function-declaration]
In file included from gevent/gevent.core.c:44265:0:
gevent/callbacks.c: In function ‘gevent_handle_error’:
gevent/callbacks.c:8:18: error: ‘PyThreadState’ has no member named ‘curexc_type’
gevent/callbacks.c:11:19: error: ‘PyThreadState’ has no member named ‘curexc_value’
gevent/callbacks.c:12:23: error: ‘PyThreadState’ has no member named ‘curexc_traceback’
In file included from gevent/libev.h:2:0,
from gevent/gevent.core.c:313:
gevent/gevent.core.c: In function ‘evpipe_write’:
libev/ev.c:1940:17: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
libev/ev.c:1952:17: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
gevent/gevent.core.c: In function ‘pipecb’:
libev/ev.c:1973:16: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
libev/ev.c:1987:16: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/ubuntu/.virtualenvs/gevent-pypy/bin/pypy -c "import setuptools;__file__='/tmp/pip-8mA_Xy-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-WbCyYv-record/install-record.txt --single-version-externally-managed --install-headers /home/ubuntu/.virtualenvs/gevent-pypy/includ e/site/python2.7 failed with error code 1 in /tmp/pip-8mA_Xy-build
Storing complete log in /tmp/tmpr4rihN
@flavianmissi
Copy link
Copy Markdown
Author

I feel kinda dumb, all I needed to do to fix this was installing the pypy version of gevent:

$ pip install git+git://github.com/schmir/gevent@pypy-hacks

See http://doc.pypy.org/en/latest/release-2.0.0-beta2.html#highlights

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment