Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.97k stars 11.35k forks source link

uwsgi failed to build on 10.10 #33488

Closed asminog closed 9 years ago

asminog commented 9 years ago

brew install uwsgi ==> Downloading http://projects.unbit.it/downloads/uwsgi-2.0.7.tar.gz Already downloaded: /Library/Caches/Homebrew/uwsgi-2.0.7.tar.gz ==> python uwsgiconfig.py --build brew ==> python uwsgiconfig.py --plugin plugins/airbrake brew ==> python uwsgiconfig.py --plugin plugins/alarm_curl brew ==> python uwsgiconfig.py --plugin plugins/alarm_speech brew ==> python uwsgiconfig.py --plugin plugins/asyncio brew ==> python uwsgiconfig.py --plugin plugins/cache brew ==> python uwsgiconfig.py --plugin plugins/carbon brew ==> python uwsgiconfig.py --plugin plugins/cgi brew ==> python uwsgiconfig.py --plugin plugins/cheaper_backlog2 brew ==> python uwsgiconfig.py --plugin plugins/cheaper_busyness brew ==> python uwsgiconfig.py --plugin plugins/corerouter brew ==> python uwsgiconfig.py --plugin plugins/curl_cron brew ==> python uwsgiconfig.py --plugin plugins/cplusplus brew ==> python uwsgiconfig.py --plugin plugins/dumbloop brew ==> python uwsgiconfig.py --plugin plugins/dummy brew ==> python uwsgiconfig.py --plugin plugins/echo brew ==> python uwsgiconfig.py --plugin plugins/emperor_amqp brew using profile: buildconf/brew.ini detected include path: ['/usr/local/include', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/apache2', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks'] * uWSGI building and linking plugin plugins/emperor_amqp * [clang] /usr/local/Cellar/uwsgi/2.0.7/libexec/uwsgi/emperor_amqp_plugin.so * unable to build emperor_amqp plugin *

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

Sergeys-MacBook-Pro:~ s_akudovich$ brew gist-logs uwsgi https://gist.github.com/edeb4e0b5808acc68df9 Sergeys-MacBook-Pro:~ s_akudovich$ brew update Already up-to-date. Sergeys-MacBook-Pro:~ s_akudovich$ brew doctor Your system is ready to brew.

DomT4 commented 9 years ago

Kinda frustratingly, because of the way Github Gists work it has cut off the Gist output after the first 13 files, and it looks like the part the failed is below the first 13.

Yeah, It's file 17 that includes the failure. It's the known 10.10 issue, ntohll.

plugins/emperor_amqp/amqp.c:8:9: error: 'ntohll' macro redefined [-Werror]
#define ntohll(x) ( ( (uint64_t)(ntohl( (uint32_t)((x << 32) >> 32) )) << 32) | ntohl( ((uint32_t)(x >> 32)) ) )     
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:140:9: note: previous definition is here
#define ntohll(x)       __DARWIN_OSSwapInt64(x)
        ^
plugins/emperor_amqp/amqp.c:10:9: error: 'htonll' macro redefined [-Werror]
#define htonll(x) ntohll(x)
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_endian.h:141:9: note: previous definition is here
#define htonll(x)       __DARWIN_OSSwapInt64(x)
        ^
2 errors generated.
using profile: buildconf/brew.ini
detected include path: ['/usr/local/include', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/apache2', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks']
*** uWSGI building and linking plugin plugins/emperor_amqp ***
[clang] /usr/local/Cellar/uwsgi/2.0.7/libexec/uwsgi/emperor_amqp_plugin.so
*** unable to build emperor_amqp plugin ***

Jack might have some idea here. Maybe. He's fixed a few of these errors that have come up thus far.

hawko2600 commented 9 years ago

For backwards compatibility, #ifdef them out on yosemite. If you don't care for backwards compatibility, just delete the offending lines.