* Package: dev-python/kaa-display-0.1.0-r1 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking kaa-display-0.1.0.tar.gz to /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work >>> Source unpacked in /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work >>> Preparing source in /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0 ... * Will copy sources from /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0 * python2_7: copying to /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0 ... * python2_7: running distutils-r1_run_phase distutils-r1_python_compile python2.7 setup.py build checking for X11 ... ok checking for imlib2 >= 1.1.1 ... 1.5.1 checking for pygame ... pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html ok checking for pygame header files ... ok checking for sdl >= 1.2.5 ... 1.2.15 checking for XComposite ... ok + X11 (imlib2) + Framebuffer (imlib2) + SDL (imlib2) running build running build_py creating /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa creating /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/lcdproc.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/x11.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/gtkwin.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/fb.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/version.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/__init__.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display copying src/sdl.py -> /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display warning: build_py: byte-compiling is disabled, skipping. running build_ext building 'kaa.display._X11module' extension creating /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7 creating /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c src/x11.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/x11.o -Wall In file included from /usr/include/python2.7/Python.h:83, from src/x11.c:33: src/x11.c: In function ‘init_X11’: /usr/include/python2.7/object.h:769:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 769 | ((PyObject*)(op))->ob_refcnt++) | ~^~~~~~~~~~~~~~~~ src/x11.c:156:5: note: in expansion of macro ‘Py_INCREF’ 156 | Py_INCREF(&X11Display_PyObject_Type); | ^~~~~~~~~ /usr/include/python2.7/object.h:769:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 769 | ((PyObject*)(op))->ob_refcnt++) | ~^~~~~~~~~~~~~~~~ src/x11.c:161:5: note: in expansion of macro ‘Py_INCREF’ 161 | Py_INCREF(&X11Window_PyObject_Type); | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c src/x11display.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/x11display.o -Wall In file included from /usr/include/python2.7/Python.h:83, from src/x11display.c:35: src/x11display.c: In function ‘X11Display_PyObject__glx_supported’: /usr/include/python2.7/object.h:769:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 769 | ((PyObject*)(op))->ob_refcnt++) | ~^~~~~~~~~~~~~~~~ src/x11display.c:229:5: note: in expansion of macro ‘Py_INCREF’ 229 | Py_INCREF(Py_False); | ^~~~~~~~~ src/x11display.c: In function ‘X11Display_PyObject__composite_supported’: /usr/include/python2.7/object.h:769:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 769 | ((PyObject*)(op))->ob_refcnt++) | ~^~~~~~~~~~~~~~~~ src/x11display.c:249:6: note: in expansion of macro ‘Py_INCREF’ 249 | Py_INCREF(Py_True); | ^~~~~~~~~ /usr/include/python2.7/object.h:769:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 769 | ((PyObject*)(op))->ob_refcnt++) | ~^~~~~~~~~~~~~~~~ src/x11display.c:254:5: note: in expansion of macro ‘Py_INCREF’ 254 | Py_INCREF(Py_False); | ^~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c src/x11window.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/x11window.o -Wall src/x11window.c: In function ‘X11Window_PyObject__set_fullscreen’: src/x11window.c:326:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 326 | data[0] = (void *)(fs ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE); | ^ src/x11window.c: In function ‘X11Window_PyObject__get_properties’: src/x11window.c:532:57: warning: passing argument 3 of ‘PyObject_AsWriteBuffer’ from incompatible pointer type [-Wincompatible-pointer-types] 532 | PyObject_AsWriteBuffer(pydata, &buffer_ptr, &buffer_len); | ^~~~~~~~~~~ | | | int * In file included from /usr/include/python2.7/Python.h:136, from src/x11window.c:33: /usr/include/python2.7/abstract.h:519:56: note: expected ‘Py_ssize_t *’ {aka ‘long int *’} but argument is of type ‘int *’ 519 | Py_ssize_t *buffer_len); | ~~~~~~~~~~~~^~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c src/common.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/common.o -Wall x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/x11.o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/x11display.o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/x11window.o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/common.o -L/usr/lib64 -L/usr/lib64 -lrt -lXcomposite -lImlib2 -lpython2.7 -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display/_X11module.so building 'kaa.display._FBmodule' extension x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c src/fb.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/fb.o -Wall x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c src/common.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/common.o -Wall x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/fb.o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/common.o -L/usr/lib64 -L/usr/lib64 -lImlib2 -lpython2.7 -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/lib/kaa/display/_FBmodule.so building 'kaa.display._SDLmodule' extension x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7/pygame -I/usr/include/SDL -I_GNU_SOURCE=1 -I_REENTRANT -I/usr/include/python2.7 -c src/sdl.c -o /var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7/build/temp.linux-x86_64-2.7/src/sdl.o -Wall src/sdl.c: In function ‘image_to_surface’: src/sdl.c:48:5: error: unknown type name ‘PySurfaceObject’; did you mean ‘pgSurfaceObject’? 48 | PySurfaceObject *pysurf; | ^~~~~~~~~~~~~~~ | pgSurfaceObject src/sdl.c:61:28: error: ‘PySurface_Type’ undeclared (first use in this function); did you mean ‘pgSurface_Type’? 61 | &PySurface_Type, &pysurf)) | ^~~~~~~~~~~~~~ | pgSurface_Type src/sdl.c:61:28: note: each undeclared identifier is reported only once for each function it appears in src/sdl.c:67:18: error: request for member ‘surf’ in something not a structure or union 67 | memcpy(pysurf->surf->pixels, pixels, imlib_image_get_width() * | ^~ error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1 * ERROR: dev-python/kaa-display-0.1.0-r1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 3560: Called distutils-r1_src_compile * environment, line 941: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile' * environment, line 374: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 3113: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2286: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 2284: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile' * environment, line 659: Called distutils-r1_run_phase 'distutils-r1_python_compile' * environment, line 932: Called distutils-r1_python_compile * environment, line 802: Called esetup.py 'build' * environment, line 1413: Called die * The specific snippet of code: * "${@}" || die "${die_args[@]}"; * * If you need support, post the output of `emerge --info '=dev-python/kaa-display-0.1.0-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/kaa-display-0.1.0-r1::gentoo'`. * The complete build log is located at '/var/log/portage/dev-python:kaa-display-0.1.0-r1:20190809-043249.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/kaa-display-0.1.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/kaa-display-0.1.0-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0-python2_7' * S: '/var/tmp/portage/dev-python/kaa-display-0.1.0-r1/work/kaa-display-0.1.0'