Skip to content

Instantly share code, notes, and snippets.

@radimk
Created September 20, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radimk/b4d1339494a052af4a599dd596c697bc to your computer and use it in GitHub Desktop.
Save radimk/b4d1339494a052af4a599dd596c697bc to your computer and use it in GitHub Desktop.
lxml build error
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-HVkOs2/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -I/tmp/pip-1g11WY-build/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__getFilenameForFile’:
src/lxml/lxml.etree.c:26719:7: warning: variable ‘__pyx_clineno’ set but not used [-Wunused-but-set-variable]
int __pyx_clineno = 0;
^~~~~~~~~~~~~
src/lxml/lxml.etree.c:26718:15: warning: variable ‘__pyx_filename’ set but not used [-Wunused-but-set-variable]
const char *__pyx_filename = NULL;
^~~~~~~~~~~~~~
src/lxml/lxml.etree.c:26717:7: warning: variable ‘__pyx_lineno’ set but not used [-Wunused-but-set-variable]
int __pyx_lineno = 0;
^~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__tostring’:
src/lxml/lxml.etree.c:99594:126: warning: implicit declaration of function ‘xmlBufLength’ [-Wimplicit-function-declaration]
__pyx_t_6 = ((PyObject *)__Pyx_decode_c_string(((char *)((unsigned char *)xmlBufContent(__pyx_v_c_result_buffer))), 0, xmlBufLength(__pyx_v_c_result_buffer), NULL, NULL, PyUnicode_DecodeUTF8)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L16;}
^~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_4XSLT_18__call__’:
src/lxml/lxml.etree.c:138025:72: warning: passing argument 1 of ‘__pyx_f_4lxml_5etree_12_XSLTContext__copy’ from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;}
^
src/lxml/lxml.etree.c:135981:52: note: expected ‘struct __pyx_obj_4lxml_5etree__XSLTContext *’ but argument is of type ‘struct __pyx_obj_4lxml_5etree__BaseContext *’
static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy(struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__copyXSLT’:
src/lxml/lxml.etree.c:139419:70: warning: passing argument 1 of ‘__pyx_f_4lxml_5etree_12_XSLTContext__copy’ from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
src/lxml/lxml.etree.c:135981:52: note: expected ‘struct __pyx_obj_4lxml_5etree__XSLTContext *’ but argument is of type ‘struct __pyx_obj_4lxml_5etree__BaseContext *’
static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy(struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__callExtensionElement’:
src/lxml/lxml.etree.c:143530:11: error: format not a string literal and no format arguments [-Werror=format-security]
xsltTransformError(__pyx_v_c_ctxt, NULL, __pyx_v_c_inst_node, __pyx_t_23);
^~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c:143580:11: error: format not a string literal and no format arguments [-Werror=format-security]
xsltTransformError(__pyx_v_c_ctxt, NULL, __pyx_v_c_inst_node, __pyx_t_23);
^~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c:143644:69: error: format not a string literal and no format arguments [-Werror=format-security]
xsltTransformError(__pyx_v_c_ctxt, NULL, __pyx_v_c_inst_node, __pyx_k_363);
^~~~~~~~~~~
At top level:
src/lxml/lxml.etree.c:12378:13: warning: ‘__pyx_f_4lxml_5etree_displayNode’ defined but not used [-Wunused-function]
static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for lxml
Failed to build lxml
Installing collected packages: lxml
Running setup.py install for lxml
Complete output from command /home/rkubacki/git/data/vostok-gradle/common/utils/build/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-1g11WY-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p8sBnu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/rkubacki/git/data/vostok-gradle/common/utils/build/venv/include/site/python2.7/lxml:
Building lxml version 3.1.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
running install
running build
running build_py
copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-HVkOs2/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -I/tmp/pip-1g11WY-build/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__getFilenameForFile’:
src/lxml/lxml.etree.c:26719:7: warning: variable ‘__pyx_clineno’ set but not used [-Wunused-but-set-variable]
int __pyx_clineno = 0;
^~~~~~~~~~~~~
src/lxml/lxml.etree.c:26718:15: warning: variable ‘__pyx_filename’ set but not used [-Wunused-but-set-variable]
const char *__pyx_filename = NULL;
^~~~~~~~~~~~~~
src/lxml/lxml.etree.c:26717:7: warning: variable ‘__pyx_lineno’ set but not used [-Wunused-but-set-variable]
int __pyx_lineno = 0;
^~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__tostring’:
src/lxml/lxml.etree.c:99594:126: warning: implicit declaration of function ‘xmlBufLength’ [-Wimplicit-function-declaration]
__pyx_t_6 = ((PyObject *)__Pyx_decode_c_string(((char *)((unsigned char *)xmlBufContent(__pyx_v_c_result_buffer))), 0, xmlBufLength(__pyx_v_c_result_buffer), NULL, NULL, PyUnicode_DecodeUTF8)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[6]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L16;}
^~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_pf_4lxml_5etree_4XSLT_18__call__’:
src/lxml/lxml.etree.c:138025:72: warning: passing argument 1 of ‘__pyx_f_4lxml_5etree_12_XSLTContext__copy’ from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L9;}
^
src/lxml/lxml.etree.c:135981:52: note: expected ‘struct __pyx_obj_4lxml_5etree__XSLTContext *’ but argument is of type ‘struct __pyx_obj_4lxml_5etree__BaseContext *’
static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy(struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__copyXSLT’:
src/lxml/lxml.etree.c:139419:70: warning: passing argument 1 of ‘__pyx_f_4lxml_5etree_12_XSLTContext__copy’ from incompatible pointer type [-Wincompatible-pointer-types]
__pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
src/lxml/lxml.etree.c:135981:52: note: expected ‘struct __pyx_obj_4lxml_5etree__XSLTContext *’ but argument is of type ‘struct __pyx_obj_4lxml_5etree__BaseContext *’
static struct __pyx_obj_4lxml_5etree__BaseContext *__pyx_f_4lxml_5etree_12_XSLTContext__copy(struct __pyx_obj_4lxml_5etree__XSLTContext *__pyx_v_self) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c: In function ‘__pyx_f_4lxml_5etree__callExtensionElement’:
src/lxml/lxml.etree.c:143530:11: error: format not a string literal and no format arguments [-Werror=format-security]
xsltTransformError(__pyx_v_c_ctxt, NULL, __pyx_v_c_inst_node, __pyx_t_23);
^~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c:143580:11: error: format not a string literal and no format arguments [-Werror=format-security]
xsltTransformError(__pyx_v_c_ctxt, NULL, __pyx_v_c_inst_node, __pyx_t_23);
^~~~~~~~~~~~~~~~~~
src/lxml/lxml.etree.c:143644:69: error: format not a string literal and no format arguments [-Werror=format-security]
xsltTransformError(__pyx_v_c_ctxt, NULL, __pyx_v_c_inst_node, __pyx_k_363);
^~~~~~~~~~~
At top level:
src/lxml/lxml.etree.c:12378:13: warning: ‘__pyx_f_4lxml_5etree_displayNode’ defined but not used [-Wunused-function]
static void __pyx_f_4lxml_5etree_displayNode(xmlNode *__pyx_v_c_node, PyObject *__pyx_v_indent) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/rkubacki/git/data/vostok-gradle/common/utils/build/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-1g11WY-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-p8sBnu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/rkubacki/git/data/vostok-gradle/common/utils/build/venv/include/site/python2.7/lxml" failed with error code 1 in /tmp/pip-1g11WY-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment