Bug#828929: cairocffi: FTBFS with gcc-6 and glibc 2.23
Hi Jean-Christophe (2016.07.02_11:15:36_-0700) > I don’t think it has anything to do with gcc/glibc. I agree. I suggest doing a build with a debug python interpreter, then you get a very helpful error message: $ LC_ALL=C.UTF-8 xvfb-run -a --server-args="-screen 0 1024x768x24" python3-dbg -m pytest test session starts platform linux -- Python 3.5.2+, pytest-3.0.2, py-1.4.31, pluggy-0.3.1 rootdir: /build/cairocffi-op2T2E/cairocffi-0.7.2, inifile: collected 44 items cairocffi/test_cairo.py .. cairocffi/test_pixbuf.py cairocffi/test_xcb.py FF = FAILURES == __ test_xcb_pixmap __ xcb_conn = def test_xcb_pixmap(xcb_conn): width = 10 height = 10 # create a new window wid = create_window(xcb_conn, width, height) # create the pixmap used to draw with cairo pixmap = create_pixmap(xcb_conn, wid, width, height) # create graphics context to copy pixmap on window gc = create_gc(xcb_conn) # create XCB surface on pixmap root_visual = find_root_visual(xcb_conn) > surface = XCBSurface(xcb_conn, pixmap, root_visual, width, height) cairocffi/test_xcb.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn = , drawable = 2097153 visual = , width = 10, height = 10 def __init__(self, conn, drawable, visual, width, height): c_visual = visualtype_to_c_struct(visual) p = cairo.cairo_xcb_surface_create( > conn._conn, drawable, c_visual, width, height) E TypeError: initializer for ctype 'xcb_connection_t *' appears indeed to be 'xcb_connection_t *', but the types are different (check that you are not e.g. mixing up different ffi instances) cairocffi/xcb.py:38: TypeError __ test_xcb_window __ xcb_conn = @pytest.mark.xfail(cairo_version() < 11200, reason="Cairo version too low") def test_xcb_window(xcb_conn): width = 10 height = 10 # create a new window used to draw with cairo wid = create_window(xcb_conn, width, height) # map the window and wait for it to appear xcb_conn.core.MapWindow(wid) xcb_conn.flush() start = time.time() while time.time() < start + 10: event = xcb_conn.wait_for_event() if isinstance(event, xcffib.xproto.ExposeEvent): break else: pytest.fail("Never received ExposeEvent") # create XCB surface on window root_visual = find_root_visual(xcb_conn) > surface = XCBSurface(xcb_conn, wid, root_visual, width, height) cairocffi/test_xcb.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = conn = , drawable = 2097152 visual = , width = 10, height = 10 def __init__(self, conn, drawable, visual, width, height): c_visual = visualtype_to_c_struct(visual) p = cairo.cairo_xcb_surface_create( > conn._conn, drawable, c_visual, width, height) E TypeError: initializer for ctype 'xcb_connection_t *' appears indeed to be 'xcb_connection_t *', but the types are different (check that you are not e.g. mixing up different ffi instances) cairocffi/xcb.py:38: TypeError 2 failed, 42 passed in 0.87 seconds -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
Bug#828929: cairocffi: FTBFS with gcc-6 and glibc 2.23
Hi Daniel, I believe this package fails to build randomly because of a test times out depending on the charge on the CPU. The FTBFS already occurs on testing/unstable and in my pbuilder sometimes. I don’t think it has anything to do with gcc/glibc. I will poke the upstream to see how modify this test. Thanks, JC On Tue, 28 Jun 2016 20:06:25 -0700 Daniel Scheplerwrote: > Source: cairocffi > Version: 0.7.2-1 > Severity: important > > From my pbuilder build log, using a chroot preferring gcc-defaults and > glibc from experimental: > > ... >debian/rules override_dh_auto_test > make[1]: Entering directory '/build/cairocffi-0.7.2' > LC_ALL=C.UTF-8 xvfb-run -a --server-args="-screen 0 1024x768x24" dh_auto_test > I: pybuild base:184: cd > /build/cairocffi-0.7.2/.pybuild/pythonX.Y_2.7/build; python2.7 -m > pytest > = test session starts > == > platform linux2 -- Python 2.7.12rc1, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 > rootdir: /build/cairocffi-0.7.2, inifile: > collected 44 items > > cairocffi/test_cairo.py .. > cairocffi/test_pixbuf.py > cairocffi/test_xcb.py .Aborted > E: pybuild pybuild:274: test: plugin distutils failed with: exit > code=134: cd /build/cairocffi-0.7.2/.pybuild/pythonX.Y_2.7/build; > python2.7 -m pytest > dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13 > debian/rules:14: recipe for target 'override_dh_auto_test' failed > make[1]: *** [override_dh_auto_test] Error 25 > make[1]: Leaving directory '/build/cairocffi-0.7.2' > debian/rules:11: recipe for target 'build' failed > make: *** [build] Error 2 > dpkg-buildpackage: error: debian/rules build gave error exit status 2 > -- > Daniel Schepler > > -- Jean-Christophe Jaskula
Bug#828929: cairocffi: FTBFS with gcc-6 and glibc 2.23
Source: cairocffi Version: 0.7.2-1 Severity: important >From my pbuilder build log, using a chroot preferring gcc-defaults and glibc from experimental: ... debian/rules override_dh_auto_test make[1]: Entering directory '/build/cairocffi-0.7.2' LC_ALL=C.UTF-8 xvfb-run -a --server-args="-screen 0 1024x768x24" dh_auto_test I: pybuild base:184: cd /build/cairocffi-0.7.2/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest = test session starts == platform linux2 -- Python 2.7.12rc1, pytest-2.9.2, py-1.4.31, pluggy-0.3.1 rootdir: /build/cairocffi-0.7.2, inifile: collected 44 items cairocffi/test_cairo.py .. cairocffi/test_pixbuf.py cairocffi/test_xcb.py .Aborted E: pybuild pybuild:274: test: plugin distutils failed with: exit code=134: cd /build/cairocffi-0.7.2/.pybuild/pythonX.Y_2.7/build; python2.7 -m pytest dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13 debian/rules:14: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 25 make[1]: Leaving directory '/build/cairocffi-0.7.2' debian/rules:11: recipe for target 'build' failed make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 -- Daniel Schepler