gevent 1.0.2 (and earlier) fails to build on OS X Yosemite

Created on 23 Sep 2015  路  8Comments  路  Source: gevent/gevent

libev/ev.c:1029:42: error: '_Noreturn' keyword must precede function declarator
  ecb_inline void ecb_unreachable (void) ecb_noreturn;

I noticed this problem in about the last week. I think it started since I upgraded xcode on my laptop on the 18th. It can be fixed by replacing libev/ev.c and libev/ev.h in the sdist of gevent 1.0.2 with those files from libev 4.20 release and then running 'python setup.py build'.

I see issue #590 upgrades to this version in master. Can we have that backported to 1.0.x branch? I note the branch named 1.0.x is well behind 1.0.2. If I were to submit a PR for this what should i base it against?

not gevent

Most helpful comment

Try this
CFLAGS='-std=c99' pip install gevent==1.0.2

All 8 comments

xcode

gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

I suggest using 1.1b5. It's reasonably stable, has many bugfixes over 1.0, and is being used in production. It's only awaiting some burn time to declare it final. Partly because of the interesting branch situation, I don't expect to produce any more 1.0 releases.

Just ran into this problem. Will use 1.1b5 ;) Thanks @jamadden!

Try this
CFLAGS='-std=c99' pip install gevent==1.0.2

@jumpchat Thanks, that works. :+1:

@jumpchat Thanks, that is great!

@jumpchat :+1: Thanks. That worked.

Thanks @jumpchat !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gbasood picture gbasood  路  3Comments

ClericPy picture ClericPy  路  6Comments

SanderBeekhuis picture SanderBeekhuis  路  3Comments

Michael-F-Ellis picture Michael-F-Ellis  路  4Comments

SiegelDaniel picture SiegelDaniel  路  7Comments