xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 4 years ago

Last modified 12 months ago

#1882 closed defect

Cannot build with python3 — at Initial Version

Reported by: أحمد المحمودي Owned by: Antoine Martin
Priority: major Milestone: 2.4
Component: packaging Version: 2.3.x
Keywords: Cc:

Description

When building xpra 2.3.1 with python3, I got the following build error:

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/xpra-2.3.1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c xpra/x11/bindings/core_bindings.c -o build/temp.linux-amd64-3.6/xpra/x11/bindings/core_bindings.o -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wall -Werror -Wno-error=strict-prototypes -fPIC -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/xpra-2.3.1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security
xpra/x11/bindings/core_bindings.c: In function ‘pyx_pf_4xpra_3x11_8bindings_13core_bindings_16_X11CoreBindings_10get_xatom’:
xpra/x11/bindings/core_bindings.c:3243:188: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

pyx_t_1 = ((struct pyx_vtabstruct_4xpra_3x11_8bindings_13core_bindingsX11CoreBindings *)pyx_v_self->pyx_vtab)->xatom(pyx_v_self, pyx_v_str_or_int); if (unlikely(pyx_t_1 == -1L)) PYX_ERR(0, 131, pyx_L1_error)


xpra/x11/bindings/core_bindings.c:715:43: note: in definition of macro ‘unlikely’

#define unlikely(x) builtin_expect(!!(x), 0)


setup.py was called using the arguments:
python3 setup.py build --with-verbose --with-Xdummy --without-Xdummy_wrapper --without-html5

I didn't have this problem when building xpra 2.1.3 with python3, using the same options.

Full build log can be found at: https://launchpadlibrarian.net/375084690/buildlog_ubuntu-bionic-amd64.xpra_2.3.1+dfsg-2~1.gbp085c5a_BUILDING.txt.gz

Change History (0)

Note: See TracTickets for help on using tickets.