wirtualenvwrapper pip install psycopg2 с ошибкой undefined reference to `floor'

Ответить
agedz
Сообщения: 9
Зарегистрирован: 27 июн 2016, 07:06
Operating system: Linux agedz-x1-carbon 4.1.25-nrj-desktop-1rosa-x86_64 #1 SMP PREEMPT Tue May 24 16:25:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

wirtualenvwrapper pip install psycopg2 с ошибкой undefined reference to `floor'

Сообщение agedz » 27 июн 2016, 07:31

Нужна помощь с проблемой компиляции пакетов в окружение(virtualenv)
1. установил wirtualenvwrapper
2. создал окружение и
3. при установке pip install psycopg2==2.6.1 или pip install -r requirements.txt
в общем пакеты которые должны собираться из исходников не могут быть скомпилированы по причине

undefined reference to `floor'
undefined reference to `round'

эти функции входят в библиотеку стандартную Math
но почему то автоматически не линкуются (я думаю что должны)
я только перешел на ваш дистрибутив, до этого работал на Ubuntu LTS так вот там я с таким никогда не сталкивался(обычно проблемы были в не установленной библиотеке)

как я понял из http://stackoverflow.com/questions/1033 ... brary-in-c
у меня установлен libstdc++6 и по идее должно автоматом линковать math библиотеку при компиляции чего не происходит

при установке других пакетов тоже происходят ошибки связанные с линком библиотек хотя выставлен флаг -Wl,--no-as-needed
которые как я понимаю как раз и говорят gcc что нужно подключать библиотеки по необходимости

проблема происходит только внутри окружения, если просто устанавливать в системе все работает нормально

$ uname -a
Linux agedz-x1-carbon 4.1.25-nrj-desktop-1rosa-x86_64 #1 SMP PREEMPT Tue May 24 16:25:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

для примера полный вывод для psycopg2:
(geocloud)agedz@agedz-x1-carbon ~/projects/geocloud (master) $ pip install psycopg2==2.6.1
Collecting psycopg2==2.6.1
Using cached psycopg2-2.6.1.tar.gz
Building wheels for collected packages: psycopg2
Running setup.py bdist_wheel for psycopg2 ... error
Complete output from command /home/agedz/.virtualenvs/geocloud/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wUCK1O/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpx4jNTXpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/psycopg2
copying lib/errorcodes.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/_json.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/psycopg1.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/_range.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/extensions.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/extras.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/pool.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/tz.py -> build/lib.linux-x86_64-2.7/psycopg2
creating build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_bugX000.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_notify.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_connection.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_cursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_with.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/testutils.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_green.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_module.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_types_extras.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_copy.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_lobject.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_dates.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_cancel.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_transaction.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_types_basic.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_quote.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/testconfig.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_async.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_bug_gc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psycopg
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/green.c -o build/temp.linux-x86_64-2.7/psycopg/green.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/pqpath.c -o build/temp.linux-x86_64-2.7/psycopg/pqpath.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/utils.c -o build/temp.linux-x86_64-2.7/psycopg/utils.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/bytes_format.c -o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/connection_int.c -o build/temp.linux-x86_64-2.7/psycopg/connection_int.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/connection_type.c -o build/temp.linux-x86_64-2.7/psycopg/connection_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/cursor_int.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/cursor_type.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/diagnostics_type.c -o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/error_type.c -o build/temp.linux-x86_64-2.7/psycopg/error_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/lobject_int.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/lobject_type.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/notify_type.c -o build/temp.linux-x86_64-2.7/psycopg/notify_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/xid_type.c -o build/temp.linux-x86_64-2.7/psycopg/xid_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_binary.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_datetime.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_list.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pboolean.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pdecimal.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pint.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pfloat.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_qstring.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/microprotocols.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/microprotocols_proto.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/typecast.c -o build/temp.linux-x86_64-2.7/psycopg/typecast.o -Wdeclaration-after-statement
gcc -pthread -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wl,--hash-style=gnu build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o build/temp.linux-x86_64-2.7/psycopg/green.o build/temp.linux-x86_64-2.7/psycopg/pqpath.o build/temp.linux-x86_64-2.7/psycopg/utils.o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o build/temp.linux-x86_64-2.7/psycopg/connection_int.o build/temp.linux-x86_64-2.7/psycopg/connection_type.o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o build/temp.linux-x86_64-2.7/psycopg/error_type.o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o build/temp.linux-x86_64-2.7/psycopg/notify_type.o build/temp.linux-x86_64-2.7/psycopg/xid_type.o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o build/temp.linux-x86_64-2.7/psycopg/typecast.o -L/usr/lib64 -L/usr/lib64 -lpython2.7 -lpq -o build/lib.linux-x86_64-2.7/psycopg2/_psycopg.so
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `_psyco_Timestamp':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:332: undefined reference to `floor'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:344: undefined reference to `round'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:339: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_Time':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:305: undefined reference to `floor'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:313: undefined reference to `round'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:310: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_DateFromTicks':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:381: undefined reference to `floor'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_TimeFromTicks':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:407: undefined reference to `floor'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_TimestampFromTicks':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:441: undefined reference to `floor'
build/temp.linux-x86_64-2.7/psycopg/typecast.o: In function `typecast_PYINTERVAL_cast':
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:320: undefined reference to `floor'
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:323: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/typecast.o: In function `typecast_PYDATETIME_cast':
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:151: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/typecast.o: In function `typecast_PYTIME_cast':
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:205: undefined reference to `round'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
error: command 'gcc' failed with exit status 1

----------------------------------------
Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... error
Complete output from command /home/agedz/.virtualenvs/geocloud/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wUCK1O/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ruB8qr-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/agedz/.virtualenvs/geocloud/include/site/python2.7/psycopg2:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/psycopg2
copying lib/errorcodes.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/_json.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/psycopg1.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/_range.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/extensions.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/extras.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/pool.py -> build/lib.linux-x86_64-2.7/psycopg2
copying lib/tz.py -> build/lib.linux-x86_64-2.7/psycopg2
creating build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_bugX000.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_notify.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_connection.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_cursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_with.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/testutils.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_green.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/__init__.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_module.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_types_extras.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_copy.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_lobject.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_dates.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_cancel.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_transaction.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_types_basic.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_quote.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/testconfig.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_async.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/test_bug_gc.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
copying tests/dbapi20.py -> build/lib.linux-x86_64-2.7/psycopg2/tests
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psycopg
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/green.c -o build/temp.linux-x86_64-2.7/psycopg/green.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/pqpath.c -o build/temp.linux-x86_64-2.7/psycopg/pqpath.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/utils.c -o build/temp.linux-x86_64-2.7/psycopg/utils.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/bytes_format.c -o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/connection_int.c -o build/temp.linux-x86_64-2.7/psycopg/connection_int.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/connection_type.c -o build/temp.linux-x86_64-2.7/psycopg/connection_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/cursor_int.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/cursor_type.c -o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/diagnostics_type.c -o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/error_type.c -o build/temp.linux-x86_64-2.7/psycopg/error_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/lobject_int.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/lobject_type.c -o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/notify_type.c -o build/temp.linux-x86_64-2.7/psycopg/notify_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/xid_type.c -o build/temp.linux-x86_64-2.7/psycopg/xid_type.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_binary.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_datetime.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_list.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pboolean.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pdecimal.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pint.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_pfloat.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/adapter_qstring.c -o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/microprotocols.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/microprotocols_proto.c -o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o -Wdeclaration-after-statement
gcc -pthread -fno-strict-aliasing -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6.1 (dt dec pq3 ext lo64)" -DPG_VERSION_HEX=0x09030C -DHAVE_LO64=1 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/postgresql/server -c psycopg/typecast.c -o build/temp.linux-x86_64-2.7/psycopg/typecast.o -Wdeclaration-after-statement
gcc -pthread -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wl,--hash-style=gnu build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o build/temp.linux-x86_64-2.7/psycopg/green.o build/temp.linux-x86_64-2.7/psycopg/pqpath.o build/temp.linux-x86_64-2.7/psycopg/utils.o build/temp.linux-x86_64-2.7/psycopg/bytes_format.o build/temp.linux-x86_64-2.7/psycopg/connection_int.o build/temp.linux-x86_64-2.7/psycopg/connection_type.o build/temp.linux-x86_64-2.7/psycopg/cursor_int.o build/temp.linux-x86_64-2.7/psycopg/cursor_type.o build/temp.linux-x86_64-2.7/psycopg/diagnostics_type.o build/temp.linux-x86_64-2.7/psycopg/error_type.o build/temp.linux-x86_64-2.7/psycopg/lobject_int.o build/temp.linux-x86_64-2.7/psycopg/lobject_type.o build/temp.linux-x86_64-2.7/psycopg/notify_type.o build/temp.linux-x86_64-2.7/psycopg/xid_type.o build/temp.linux-x86_64-2.7/psycopg/adapter_asis.o build/temp.linux-x86_64-2.7/psycopg/adapter_binary.o build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o build/temp.linux-x86_64-2.7/psycopg/adapter_list.o build/temp.linux-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.linux-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.linux-x86_64-2.7/psycopg/adapter_pint.o build/temp.linux-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.linux-x86_64-2.7/psycopg/adapter_qstring.o build/temp.linux-x86_64-2.7/psycopg/microprotocols.o build/temp.linux-x86_64-2.7/psycopg/microprotocols_proto.o build/temp.linux-x86_64-2.7/psycopg/typecast.o -L/usr/lib64 -L/usr/lib64 -lpython2.7 -lpq -o build/lib.linux-x86_64-2.7/psycopg2/_psycopg.so
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `_psyco_Timestamp':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:332: undefined reference to `floor'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:344: undefined reference to `round'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:339: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_Time':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:305: undefined reference to `floor'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:313: undefined reference to `round'
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:310: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_DateFromTicks':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:381: undefined reference to `floor'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_TimeFromTicks':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:407: undefined reference to `floor'
build/temp.linux-x86_64-2.7/psycopg/adapter_datetime.o: In function `psyco_TimestampFromTicks':
/tmp/pip-build-wUCK1O/psycopg2/psycopg/adapter_datetime.c:441: undefined reference to `floor'
build/temp.linux-x86_64-2.7/psycopg/typecast.o: In function `typecast_PYINTERVAL_cast':
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:320: undefined reference to `floor'
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:323: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/typecast.o: In function `typecast_PYDATETIME_cast':
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:151: undefined reference to `round'
build/temp.linux-x86_64-2.7/psycopg/typecast.o: In function `typecast_PYTIME_cast':
/tmp/pip-build-wUCK1O/psycopg2/./psycopg/typecast_datetime.c:205: undefined reference to `round'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/home/agedz/.virtualenvs/geocloud/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wUCK1O/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ruB8qr-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/agedz/.virtualenvs/geocloud/include/site/python2.7/psycopg2" failed with error code 1 in /tmp/pip-build-wUCK1O/psycopg2/

d_uragan
Сообщения: 505
Зарегистрирован: 23 ноя 2011, 21:27

Re: wirtualenvwrapper pip install psycopg2 с ошибкой undefined reference to `floor'

Сообщение d_uragan » 28 июн 2016, 11:57

agedz писал(а): эти функции входят в библиотеку стандартную Math
но почему то автоматически не линкуются (я думаю что должны)
я только перешел на ваш дистрибутив, до этого работал на Ubuntu LTS так вот там я с таким никогда не сталкивался(обычно проблемы были в не установленной библиотеке)

как я понял из http://stackoverflow.com/questions/1033 ... brary-in-c
у меня установлен libstdc++6 и по идее должно автоматом линковать math библиотеку при компиляции чего не происходит
Нет, библиотека math у нас по умолчанию не линкуется, ее надо явно указывать во флагах компиляции. В случае с модулями python надо указывать соответсвующие опции/параметры в setup.py. К сожалению, разработчики некоторых модулей тоже считают, что флаги типа "-lm" должны подставляться автоматом.

Btw, psycopg2 у нас собран в репозитории, можете поставить пакет python-psycopg2. И можете посмотреть на небольшой патч к его setup.py, который мы накладываем, чтобы его собрать в Росе, я его послал сейчас в апстрим, может вмерджат - https://github.com/psycopg/psycopg2/pull/445.

agedz
Сообщения: 9
Зарегистрирован: 27 июн 2016, 07:06
Operating system: Linux agedz-x1-carbon 4.1.25-nrj-desktop-1rosa-x86_64 #1 SMP PREEMPT Tue May 24 16:25:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Re: wirtualenvwrapper pip install psycopg2 с ошибкой undefined reference to `floor'

Сообщение agedz » 06 июл 2016, 10:48

virtualenvwrapper нужен для нескольких проектов на разном окружении и в части из них будет использован этот пакет psycopg2, но опять же вместо него может быть и другие которые собираются из исходников, и дело в том что под каждый из них вы же не будете создавать пакет в системе, тем более что использовать разные окружения не получится через virtualenvwrapper или по простому в virtualenv так как процесс несколько усложняется, да и проблема как мне кажется в том что virtualenv не находит библиотеки установленные в системе. В убунту это работает корректно.
Так провел эксперимент над пакетом Pillow для python3
1. удалил пакет который ставит его python3-pillow
2. попробовал его установить(потребовал lib64jpeg)
pip3 install Pillow
agedz@agedz-x1-carbon ~ $ sudo pip3 install Pillow
[sudo] пароль для agedz:
Collecting Pillow
Downloading Pillow-3.3.0.zip (10.8MB)
100% |████████████████████████████████| 10.8MB 51kB/s
Installing collected packages: Pillow
Running setup.py install for Pillow ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ctiup5s6/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bge5888v-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/PIL
copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageMorph.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/_util.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PaletteFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageDraw.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageOps.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageMath.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ContainerIO.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/GdImageFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/features.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageMode.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageFilter.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImagePath.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PyAccess.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageColor.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageShow.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/TarIO.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageTk.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageFont.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/Image.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImagePalette.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/__init__.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageWin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/_tkinter_finder.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageStat.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageCms.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/TiffTags.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageQt.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/WalImageFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/FontFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageSequence.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/_binary.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PSDraw.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/OleFileIO.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/JpegPresets.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageChops.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ExifTags.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.4/PIL
copying PIL/ImageGrab.py -> build/lib.linux-x86_64-3.4/PIL
running egg_info
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
writing Pillow.egg-info/PKG-INFO
warning: manifest_maker: standard file '-c' not found

reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
writing manifest file 'Pillow.egg-info/SOURCES.txt'
copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-3.4/PIL
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ctiup5s6/Pillow/setup.py", line 753, in <module>
zip_safe=not debug_build(), )
File "/usr/lib64/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib64/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.4/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib64/python3.4/distutils/command/install.py", line 539, in run
self.run_command('build')
File "/usr/lib64/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib64/python3.4/distutils/command/build.py", line 126, in run
self.run_command(cmd_name)
File "/usr/lib64/python3.4/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib64/python3.4/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/tmp/pip-build-ctiup5s6/Pillow/setup.py", line 521, in build_extensions
' using --disable-%s, aborting' % (f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ctiup5s6/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bge5888v-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ctiup5s6/Pillow
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
agedz@agedz-x1-carbon ~ $ sudo pip3 install Pillow
Collecting Pillow
Using cached Pillow-3.3.0.zip
Installing collected packages: Pillow
Running setup.py install for Pillow ... done
Successfully installed Pillow-3.3.0
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
agedz@agedz-x1-carbon ~ $ pip3 list
-lxc (0.1)
cffi (1.3.1)
coloredlogs (5.0)
cryptography (1.1)
executor (11.0)
fasteners (0.14.1)
humanfriendly (1.44.7)
idna (2.0)
jsonschema (2.5.1)
lxml (3.4.0)
monotonic (1.1)
naturalsort (1.5.1)
Pillow (3.3.0)
pip (8.0.2)
property-manager (2.1)
psycopg2 (2.6.1)
pyasn1 (0.1.9)
pycparser (2.10)
pyinotify (0.9.5)
setuptools (18.6.1)
six (1.10.0)
vcs-repo-mgr (0.32)
verboselogs (1.4)
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
agedz@agedz-x1-carbon ~ $
3. установлен из исходников
это если не в окружении(в окружение если не изменяет память пробовал, не работает)

еще раз проверил в окружении:
не компилируется и ругается
g.so
build/temp.linux-x86_64-2.7/path.o: In function `path_transform':
/tmp/pip-build-QJV9s8/Pillow/path.c:527: undefined reference to `fmod'
build/temp.linux-x86_64-2.7/libImaging/Resample.o: In function `sinc_filter':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Resample.c:19: undefined reference to `sin'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Resample.c:19: undefined reference to `sin'
build/temp.linux-x86_64-2.7/libImaging/Resample.o: In function `ImagingPrecompute':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Resample.c:95: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Resample.c:118: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Resample.c:121: undefined reference to `ceil'
build/temp.linux-x86_64-2.7/libImaging/Convert.o: In function `rgb2hsv':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Convert.c:319: undefined reference to `fmod'
build/temp.linux-x86_64-2.7/libImaging/Convert.o: In function `hsv2rgb':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Convert.c:353: undefined reference to `trunc'
build/temp.linux-x86_64-2.7/libImaging/Convert.o: In function `round':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Convert.c:54: undefined reference to `floor'
build/temp.linux-x86_64-2.7/libImaging/Draw.o: In function `polygon_generic':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `ceilf'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `floorf'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `trunc'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `ceilf'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `floorf'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `trunc'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `ceilf'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `floorf'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:487: undefined reference to `trunc'
build/temp.linux-x86_64-2.7/libImaging/Draw.o: In function `ellipse':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:827: undefined reference to `sincos'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:828: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:827: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:796: undefined reference to `sincos'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:797: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:796: undefined reference to `floor'
build/temp.linux-x86_64-2.7/libImaging/Draw.o: In function `ImagingDrawWideLine':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:622: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:623: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:625: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:626: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:627: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:628: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:622: undefined reference to `trunc'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:623: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:628: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:627: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:626: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:625: undefined reference to `ceil'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Draw.c:620: undefined reference to `sqrt'
build/temp.linux-x86_64-2.7/libImaging/Effects.o: In function `ImagingEffectNoise':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Effects.c:105: undefined reference to `log'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Effects.c:105: undefined reference to `sqrt'
build/temp.linux-x86_64-2.7/libImaging/Fill.o: In function `ImagingFillRadialGradient':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Fill.c:96: undefined reference to `sqrt'
build/temp.linux-x86_64-2.7/libImaging/Geometry.o: In function `bicubic_filter32F':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Geometry.c:490: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Geometry.c:490: undefined reference to `floor'
build/temp.linux-x86_64-2.7/libImaging/Geometry.o: In function `bicubic_filter32I':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Geometry.c:481: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/Geometry.c:481: undefined reference to `floor'
build/temp.linux-x86_64-2.7/libImaging/Geometry.o: In function `bicubic_filter32LA':
/tmp/pip-build-QJV9s8/Pillow/libImaging/Geometry.c:499: undefined reference to `floor'
build/temp.linux-x86_64-2.7/libImaging/Geometry.o:/tmp/pip-build-QJV9s8/Pillow/libImaging/Geometry.c:499: more undefined references to `floor' follow
build/temp.linux-x86_64-2.7/libImaging/QuantHash.o: In function `_findPrime':
/tmp/pip-build-QJV9s8/Pillow/libImaging/QuantHash.c:82: undefined reference to `sqrt'
/tmp/pip-build-QJV9s8/Pillow/libImaging/QuantHash.c:85: undefined reference to `sqrt'
build/temp.linux-x86_64-2.7/libImaging/BoxBlur.o: In function `ImagingGaussianBlur':
/tmp/pip-build-QJV9s8/Pillow/libImaging/BoxBlur.c:305: undefined reference to `floor'
/tmp/pip-build-QJV9s8/Pillow/libImaging/BoxBlur.c:303: undefined reference to `sqrt'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/home/agedz/.virtualenvs/foo/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-QJV9s8/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-G6RzYb-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/agedz/.virtualenvs/foo/include/site/python2.7/Pillow" failed with error code 1 in /tmp/pip-build-QJV9s8/Pillow
то есть проблема возникает только внутри virtualenv
возможно нужно какие линки библиотек или пути поправить и это буде работать

Ответить

Вернуться в «Обсуждение ROSA Fresh R4 - R8 (платформа 2014.1)»