Summary: | x11-wm/xpra w/ CC=clang: /usr/include/python2.7/modsupport.h:27:1: error: ‘_PyArg_ParseTuple_SizeT’ is an unrecognized format function type [-Werror=format=] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergey 'L29Ah' Alirzaev <zl29ah> |
Component: | Current packages | Assignee: | Michael Weber (RETIRED) <xmw> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log amd64 CC=clang |
Description
Sergey 'L29Ah' Alirzaev
2016-04-24 11:16:29 UTC
fixed it locally with https://github.com/l29ah/booboo/blob/158dc25016cbbdab7519ad8424745ff1d2918cfb/x11-wm/xpra/xpra-0.17.0.ebuild#L98 This is no longer an issue, or not reproduce-able with 0.17.4 0.16.3 0.15.10-r1 0.14.34 0.14.27 Please re-open or re-file if the problem persists. Same problem with 0.17.4. (In reply to Sergey 'L29Ah' Alirzaev from comment #3) > Same problem with 0.17.4. Somehow related to Paludis? I also cannot reproduce with Python 2.7. Try with CC=clang. Created attachment 466546 [details]
build.log amd64 CC=clang
I tried 1.0.3-r1 with CC=clang and it compiled fine, esp. the line failing above
clang -O2 -pipe -march=native -fno-strict-aliasing -fPIC -I/usr/include/python2.7 -c xpra/x11/bindings/wait_for_x_server.c -o /var/tmp/portage/x11-wm/xpra-1.0.3-r1/work/xpra-1.0.3-python2_7/temp.linux-x86_64-2.7/xpra/x11/bindings/wait_for_x_server.o -Wall -Werror -Wno-unneeded-internal-declaration -Wno-unknown-attributes -Wno-unused-function -Wno-self-assign -Wno-sometimes-uninitialized
clang -shared -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native -fno-strict-aliasing /var/tmp/portage/x11-wm/xpra-1.0.3-r1/work/xpra-1.0.3-python2_7/temp.linux-x86_64-2.7/xpra/x11/bindings/wait_for_x_server.o -L/usr/lib64 -lX11 -lpython2.7 -o /var/tmp/portage/x11-wm/xpra-1.0.3-r1/work/xpra-1.0.3-python2_7/lib/xpra/x11/bindings/wait_for_x_server.so -O2 -pipe -march=native -fno-strict-aliasing -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wall
I consider this resolved, either by xpra or by python dependencies.
clang -O2 -pipe -O2 -pipe -march=native -fno-strict-aliasing -fPIC -I/usr/include/python2.7 -c xpra/x11/bindings/wait_for_x_server.c -o /var/tmp/paludis/x11-wm-xpra-1.0.3-r1/work/xpra-1.0.3-python2_7/temp.linux-x86_64-2.7/xpra/x11/bindings/wait_for_x_server.o -Wall -Werror -Wno-unneeded-internal-declaration -Wno-unknown-attributes -Wno-unused-function -Wno-self-assign -Wno-sometimes-uninitialized In file included from xpra/x11/bindings/wait_for_x_server.c:36: In file included from /usr/include/python2.7/Python.h:126: /usr/include/python2.7/modsupport.h:27:65: error: 'format' attribute argument not supported: _PyArg_ParseTuple_SizeT [-Werror,-Wignored-attributes] PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3); ^ /usr/include/python2.7/pyport.h:917:57: note: expanded from macro 'Py_FORMAT_PARSETUPLE' #define Py_FORMAT_PARSETUPLE(func,p1,p2) __attribute__((format(func,p1,p2))) ^ 1 error generated. error: command 'clang' failed with exit status 1 |