Closed RobertWang closed 12 years ago
ld: warning: ignoring file /usr/local/Cellar/pcre/8.31/lib/libpcre.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386):
That's weird.
Oh, try brew remove pcre && brew install --universal pcre
then reinstall uwsgi.
it's worked. thanks!
Robert 已使用 Sparrow (http://www.sparrowmailapp.com/?sig)
在 2012年10月29日星期一,上午12:26,Adam Vandenberg 写道:
Oh, try brew remove pcre && brew install --universal pcre then reinstall uwsgi.
— Reply to this email directly or view it on GitHub (https://github.com/mxcl/homebrew/issues/15715#issuecomment-9847308).
clang: warning: argument unused during compilation: '-rdynamic' ld: warning: ignoring file /usr/local/Cellar/pcre/8.31/lib/libpcre.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/pcre/8.31/lib/libpcre.dylib Undefined symbols for architecture i386: "_pcre_compile", referenced from: _uwsgi_regexp_build in regexp.o "_pcre_exec", referenced from: _uwsgi_regexp_match in regexp.o _uwsgi_regexp_match_ovec in regexp.o "_pcre_free", referenced from: _uwsgi_remove_subscribe_node in subscription.o _uwsgi_regexp_build in regexp.o _uwsgi_remove_subscribe_node in subscription.o _uwsgi_regexp_build in regexp.o "_pcre_fullinfo", referenced from: _uwsgi_regexp_ovector in regexp.o "_pcre_study", referenced from: _uwsgi_regexp_build in regexp.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) using profile: buildconf/default.ini detected include path: ['/usr/include', '/usr/local/include'] configured CFLAGS: -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -arch i386 -arch x86_64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_BUILD_DATE="\"29 October 2012 00:15:08\"" -DUWSGI_HAS_IFADDRS -mmacosx-version-min=10.5 -DUWSGI_LOCK_USE_OSX_SPINLOCK -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -DUWSGI_EMBEDDED -DUWSGI_UDP -I/usr/local/Cellar/pcre/8.31/include -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_UUID -DUWSGI_VERSION="\"1.2.6\"" -DUWSGI_VERSION_BASE="1" -DUWSGI_VERSION_MAJOR="2" -DUWSGI_VERSION_MINOR="6" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML -DUWSGI_LDAP -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3 -DUWSGI_PLUGIN_DIR=\".\" -DUWSGI_SPOOLER -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);" * uWSGI compiling server core * [cc] utils.o [cc] protocol.o [cc] socket.o [cc] logging.o [cc] master.o [cc] master_utils.o [cc] emperor.o [cc] notify.o [cc] mule.o [cc] subscription.o [cc] plugins.o [cc] lock.o [cc] cache.o [cc] queue.o [cc] event.o [cc] signal.o [cc] cluster.o [cc] rpc.o [cc] gateway.o [cc] loop.o [cc] lib/rbtree.o [cc] lib/amqp.o [cc] rb_timers.o [cc] main.o [cc] proto/base.o [cc] proto/uwsgi.o [cc] proto/http.o [cc] proto/fastcgi.o [cc] regexp.o [cc] routing.o [cc] async.o [cc] ini.o [cc] yaml.o [cc] ldap.o [cc] snmp.o [cc] sendfile.o [cc] xmlconf.o [cc] sqlite3.o [cc] spooler.o * uWSGI compiling embedded plugins * [cc] plugins/python/python_plugin.o [cc] plugins/python/pyutils.o [cc] plugins/python/pyloader.o [cc] plugins/python/wsgi_handlers.o [cc] plugins/python/wsgi_headers.o [cc] plugins/python/wsgi_subhandler.o [cc] plugins/python/web3_subhandler.o [cc] plugins/python/pump_subhandler.o [cc] plugins/python/gil.o [cc] plugins/python/uwsgi_pymodule.o [cc] plugins/python/profiler.o [cc] plugins/python/symimporter.o [cc] plugins/ping/ping_plugin.o [cc] plugins/cache/cache.o [cc] plugins/nagios/nagios.o [cc] plugins/rrdtool/rrdtool.o [cc] plugins/carbon/carbon.o [cc] plugins/rpc/rpc_plugin.o [cc] plugins/fastrouter/fr_sctp.o [cc] plugins/fastrouter/fr_map.o [cc] plugins/fastrouter/fastrouter.o [cc] plugins/fastrouter/fr_events.o [cc] plugins/http/http.o [cc] plugins/ugreen/ugreen.o [cc] plugins/signal/signal_plugin.o [cc] plugins/syslog/syslog_plugin.o [cc] plugins/rsyslog/rsyslog_plugin.o [cc] plugins/logsocket/logsocket_plugin.o [cc] plugins/router_uwsgi/router_uwsgi.o [cc] plugins/router_redirect/router_redirect.o [cc] plugins/router_basicauth/router_basicauth.o [cc] plugins/zergpool/zergpool.o [cc] plugins/redislog/redislog_plugin.o * uWSGI linking * cc -o uwsgi -arch i386 -arch x86_64 utils.o protocol.o socket.o logging.o master.o master_utils.o emperor.o notify.o mule.o subscription.o plugins.o lock.o cache.o queue.o event.o signal.o cluster.o rpc.o gateway.o loop.o lib/rbtree.o lib/amqp.o rb_timers.o main.o proto/base.o proto/uwsgi.o proto/http.o proto/fastcgi.o regexp.o routing.o async.o ini.o yaml.o ldap.o snmp.o sendfile.o xmlconf.o sqlite3.o spooler.o plugins/python/python_plugin.o plugins/python/pyutils.o plugins/python/pyloader.o plugins/python/wsgi_handlers.o plugins/python/wsgi_headers.o plugins/python/wsgi_subhandler.o plugins/python/web3_subhandler.o plugins/python/pump_subhandler.o plugins/python/gil.o plugins/python/uwsgi_pymodule.o plugins/python/profiler.o plugins/python/symimporter.o plugins/ping/ping_plugin.o plugins/cache/cache.o plugins/nagios/nagios.o plugins/rrdtool/rrdtool.o plugins/carbon/carbon.o plugins/rpc/rpc_plugin.o plugins/fastrouter/fr_sctp.o plugins/fastrouter/fr_map.o plugins/fastrouter/fastrouter.o plugins/fastrouter/fr_events.o plugins/http/http.o plugins/ugreen/ugreen.o plugins/signal/signal_plugin.o plugins/syslog/syslog_plugin.o plugins/rsyslog/rsyslog_plugin.o plugins/logsocket/logsocket_plugin.o plugins/router_uwsgi/router_uwsgi.o plugins/router_redirect/router_redirect.o plugins/router_basicauth/router_basicauth.o plugins/zergpool/zergpool.o plugins/redislog/redislog_plugin.o -lpthread -lm -rdynamic -L/usr/local/Cellar/pcre/8.31/lib -lpcre -lldap -lxml2 -lsqlite3 -ldl -framework CoreFoundation -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 * error linking uWSGI *
HOMEBREW_VERSION: 0.9.3 HEAD: 55c03df39e221fdcfb42ff355017824a87c09aab CPU: 8-core 64-bit ivybridge OS X: 10.8.2-x86_64 Xcode: 4.5.1 CLT: 4.5.0.0.1.1249367152 X11: N/A clang: warning: argument unused during compilation: '-rdynamic' ld: warning: ignoring file /usr/local/Cellar/pcre/8.31/lib/libpcre.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/local/Cellar/pcre/8.31/lib/libpcre.dylib Undefined symbols for architecture i386: "_pcre_compile", referenced from: _uwsgi_regexp_build in regexp.o "_pcre_exec", referenced from: _uwsgi_regexp_match in regexp.o _uwsgi_regexp_match_ovec in regexp.o "_pcre_free", referenced from: _uwsgi_remove_subscribe_node in subscription.o _uwsgi_regexp_build in regexp.o _uwsgi_remove_subscribe_node in subscription.o _uwsgi_regexp_build in regexp.o "_pcre_fullinfo", referenced from: _uwsgi_regexp_ovector in regexp.o "_pcre_study", referenced from: _uwsgi_regexp_build in regexp.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) using profile: buildconf/default.ini detected include path: ['/usr/include', '/usr/local/include'] configured CFLAGS: -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -arch i386 -arch x86_64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_BUILD_DATE="\"29 October 2012 00:15:08\"" -DUWSGI_HAS_IFADDRS -mmacosx-version-min=10.5 -DUWSGI_LOCK_USE_OSX_SPINLOCK -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -DUWSGI_EMBEDDED -DUWSGI_UDP -I/usr/local/Cellar/pcre/8.31/include -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_UUID -DUWSGI_VERSION="\"1.2.6\"" -DUWSGI_VERSION_BASE="1" -DUWSGI_VERSION_MAJOR="2" -DUWSGI_VERSION_MINOR="6" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML -DUWSGI_LDAP -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3 -DUWSGI_PLUGIN_DIR=\".\" -DUWSGI_SPOOLER -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);" * uWSGI compiling server core * [cc] utils.o [cc] protocol.o [cc] socket.o [cc] logging.o [cc] master.o [cc] master_utils.o [cc] emperor.o [cc] notify.o [cc] mule.o [cc] subscription.o [cc] plugins.o [cc] lock.o [cc] cache.o [cc] queue.o [cc] event.o [cc] signal.o [cc] cluster.o [cc] rpc.o [cc] gateway.o [cc] loop.o [cc] lib/rbtree.o [cc] lib/amqp.o [cc] rb_timers.o [cc] main.o [cc] proto/base.o [cc] proto/uwsgi.o [cc] proto/http.o [cc] proto/fastcgi.o [cc] regexp.o [cc] routing.o [cc] async.o [cc] ini.o [cc] yaml.o [cc] ldap.o [cc] snmp.o [cc] sendfile.o [cc] xmlconf.o [cc] sqlite3.o [cc] spooler.o * uWSGI compiling embedded plugins * [cc] plugins/python/python_plugin.o [cc] plugins/python/pyutils.o [cc] plugins/python/pyloader.o [cc] plugins/python/wsgi_handlers.o [cc] plugins/python/wsgi_headers.o [cc] plugins/python/wsgi_subhandler.o [cc] plugins/python/web3_subhandler.o [cc] plugins/python/pump_subhandler.o [cc] plugins/python/gil.o [cc] plugins/python/uwsgi_pymodule.o [cc] plugins/python/profiler.o [cc] plugins/python/symimporter.o [cc] plugins/ping/ping_plugin.o [cc] plugins/cache/cache.o [cc] plugins/nagios/nagios.o [cc] plugins/rrdtool/rrdtool.o [cc] plugins/carbon/carbon.o [cc] plugins/rpc/rpc_plugin.o [cc] plugins/fastrouter/fr_sctp.o [cc] plugins/fastrouter/fr_map.o [cc] plugins/fastrouter/fastrouter.o [cc] plugins/fastrouter/fr_events.o [cc] plugins/http/http.o [cc] plugins/ugreen/ugreen.o [cc] plugins/signal/signal_plugin.o [cc] plugins/syslog/syslog_plugin.o [cc] plugins/rsyslog/rsyslog_plugin.o [cc] plugins/logsocket/logsocket_plugin.o [cc] plugins/router_uwsgi/router_uwsgi.o [cc] plugins/router_redirect/router_redirect.o [cc] plugins/router_basicauth/router_basicauth.o [cc] plugins/zergpool/zergpool.o [cc] plugins/redislog/redislog_plugin.o * uWSGI linking * cc -o uwsgi -arch i386 -arch x86_64 utils.o protocol.o socket.o logging.o master.o master_utils.o emperor.o notify.o mule.o subscription.o plugins.o lock.o cache.o queue.o event.o signal.o cluster.o rpc.o gateway.o loop.o lib/rbtree.o lib/amqp.o rb_timers.o main.o proto/base.o proto/uwsgi.o proto/http.o proto/fastcgi.o regexp.o routing.o async.o ini.o yaml.o ldap.o snmp.o sendfile.o xmlconf.o sqlite3.o spooler.o plugins/python/python_plugin.o plugins/python/pyutils.o plugins/python/pyloader.o plugins/python/wsgi_handlers.o plugins/python/wsgi_headers.o plugins/python/wsgi_subhandler.o plugins/python/web3_subhandler.o plugins/python/pump_subhandler.o plugins/python/gil.o plugins/python/uwsgi_pymodule.o plugins/python/profiler.o plugins/python/symimporter.o plugins/ping/ping_plugin.o plugins/cache/cache.o plugins/nagios/nagios.o plugins/rrdtool/rrdtool.o plugins/carbon/carbon.o plugins/rpc/rpc_plugin.o plugins/fastrouter/fr_sctp.o plugins/fastrouter/fr_map.o plugins/fastrouter/fastrouter.o plugins/fastrouter/fr_events.o plugins/http/http.o plugins/ugreen/ugreen.o plugins/signal/signal_plugin.o plugins/syslog/syslog_plugin.o plugins/rsyslog/rsyslog_plugin.o plugins/logsocket/logsocket_plugin.o plugins/router_uwsgi/router_uwsgi.o plugins/router_redirect/router_redirect.o plugins/router_basicauth/router_basicauth.o plugins/zergpool/zergpool.o plugins/redislog/redislog_plugin.o -lpthread -lm -rdynamic -L/usr/local/Cellar/pcre/8.31/lib -lpcre -lldap -lxml2 -lsqlite3 -ldl -framework CoreFoundation -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 * error linking uWSGI *
HOMEBREW_VERSION: 0.9.3 HEAD: 55c03df39e221fdcfb42ff355017824a87c09aab CPU: 8-core 64-bit ivybridge OS X: 10.8.2-x86_64 Xcode: 4.5.1 CLT: 4.5.0.0.1.1249367152 X11: N/A