Kobotoolbox установить ошибку uWSGI

Мне нужно установить Kobotoolbox (kpi - https://github.com/kobotoolbox/kpi) на Fedora 27, и у меня возникла проблема с установкой требований (pip install -r ./dependencies/pip/requeriment.txt).

   Requirement already satisfied: xlwt==1.0.0 in /home/vagrant/venv/lib/python2.7/site-packages (from -r ./dependencies/pip/requirements.txt (line 91))
Requirement already satisfied: asn1crypto>=0.21.0 in /home/vagrant/venv/lib/python2.7/site-packages (from cryptography==2.1.4->-r ./dependencies/pip/requirements.txt (line 19))
Building wheels for collected packages: uwsgi
  Running setup.py bdist_wheel for uwsgi ... error
  Complete output from command /home/vagrant/venv/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-UCutdF/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpU3Iojzpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  copying uwsgidecorators.py -> build/lib
  installing to build/bdist.linux-x86_64/wheel
  running install
  using profile: buildconf/default.ini
  detected include path: ['/usr/lib/gcc/x86_64-redhat-linux/7/include', '/usr/local/include', '/usr/include']
  Patching "bin_name" to properly install_scripts dir
  detected CPU cores: 1
  configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY  -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_VERSION="\"2.0.13\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="13" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);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);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);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);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
  *** uWSGI compiling server core ***
  [gcc -pthread] core/utils.o
  [gcc -pthread] core/protocol.o
  [gcc -pthread] core/socket.o
  [gcc -pthread] core/logging.o
  [gcc -pthread] core/master.o
  [gcc -pthread] core/master_utils.o
  [gcc -pthread] core/emperor.o
  [gcc -pthread] core/notify.o
  [gcc -pthread] core/mule.o
  [gcc -pthread] core/subscription.o
  [gcc -pthread] core/stats.o
  [gcc -pthread] core/sendfile.o
  [gcc -pthread] core/async.o
  [gcc -pthread] core/master_checks.o
  [gcc -pthread] core/fifo.o
  [gcc -pthread] core/offload.o
  [gcc -pthread] core/io.o
  [gcc -pthread] core/static.o
  [gcc -pthread] core/websockets.o
  [gcc -pthread] core/spooler.o
  [gcc -pthread] core/snmp.o
  [gcc -pthread] core/exceptions.o
  [gcc -pthread] core/config.o
  [gcc -pthread] core/setup_utils.o
  [gcc -pthread] core/clock.o
  [gcc -pthread] core/init.o
  [gcc -pthread] core/buffer.o
  [gcc -pthread] core/reader.o
  [gcc -pthread] core/writer.o
  [gcc -pthread] core/alarm.o
  [gcc -pthread] core/cron.o
  [gcc -pthread] core/hooks.o
  [gcc -pthread] core/plugins.o
  [gcc -pthread] core/lock.o
  [gcc -pthread] core/cache.o
  [gcc -pthread] core/daemons.o
  [gcc -pthread] core/errors.o
  [gcc -pthread] core/hash.o
  core/hash.c: In function 'murmur2_hash':
  core/hash.c:44:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
             h ^= key[2] << 16;
             ~~^~~~~~~~~~~~~~~
  core/hash.c:45:7: note: here
         case 2:
         ^~~~
  core/hash.c:46:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
             h ^= key[1] << 8;
             ~~^~~~~~~~~~~~~~
  core/hash.c:47:7: note: here
         case 1:
         ^~~~
  cc1: all warnings being treated as errors
  
  ----------------------------------------
  Failed building wheel for uwsgi
  Running setup.py clean for uwsgi
Failed to build uwsgi
Installing collected packages: django-digest, pyxform, formpack, uwsgi, whitenoise, whoosh
  Found existing installation: django-digest 1.14
    Uninstalling django-digest-1.14:
      Successfully uninstalled django-digest-1.14
  Running setup.py develop for django-digest
  Found existing installation: pyxform 0.9.22
    Uninstalling pyxform-0.9.22:
      Successfully uninstalled pyxform-0.9.22
  Running setup.py develop for pyxform
  Found existing installation: formpack 1.4
    Uninstalling formpack-1.4:
      Successfully uninstalled formpack-1.4
  Running setup.py develop for formpack
  Running setup.py install for uwsgi ... error
    Complete output from command /home/vagrant/venv/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-UCutdF/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-0ohK8b-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/vagrant/venv/include/site/python2.7/uwsgi:
    running install
    using profile: buildconf/default.ini
    detected include path: ['/usr/lib/gcc/x86_64-redhat-linux/7/include', '/usr/local/include', '/usr/include']
    Patching "bin_name" to properly install_scripts dir
    detected CPU cores: 1
    configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY  -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_VERSION="\"2.0.13\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="13" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);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);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);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);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
    *** uWSGI compiling server core ***
    core/utils.o is up to date
    core/protocol.o is up to date
    core/socket.o is up to date
    core/logging.o is up to date
    core/master.o is up to date
    core/master_utils.o is up to date
    core/emperor.o is up to date
    core/notify.o is up to date
    core/mule.o is up to date
    core/subscription.o is up to date
    core/stats.o is up to date
    core/sendfile.o is up to date
    core/async.o is up to date
    core/master_checks.o is up to date
    core/fifo.o is up to date
    core/offload.o is up to date
    core/io.o is up to date
    core/static.o is up to date
    core/websockets.o is up to date
    core/spooler.o is up to date
    core/snmp.o is up to date
    core/exceptions.o is up to date
    core/config.o is up to date
    core/setup_utils.o is up to date
    core/clock.o is up to date
    core/init.o is up to date
    core/buffer.o is up to date
    core/reader.o is up to date
    core/writer.o is up to date
    core/alarm.o is up to date
    core/cron.o is up to date
    core/hooks.o is up to date
    core/plugins.o is up to date
    core/lock.o is up to date
    core/cache.o is up to date
    core/daemons.o is up to date
    core/errors.o is up to date
    [gcc -pthread] core/hash.o
    core/hash.c: In function 'murmur2_hash':
    core/hash.c:44:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
               h ^= key[2] << 16;
               ~~^~~~~~~~~~~~~~~
    core/hash.c:45:7: note: here
           case 2:
           ^~~~
    core/hash.c:46:13: error: this statement may fall through [-Werror=implicit-fallthrough=]
               h ^= key[1] << 8;
               ~~^~~~~~~~~~~~~~
    core/hash.c:47:7: note: here
           case 1:
           ^~~~
    cc1: all warnings being treated as errors
    
    ----------------------------------------

Не могли бы вы помочь мне, как это исправить?

0 ответов

Другие вопросы по тегам