Xpra: Ticket #503: compile problem cython 0.20 on archlinux

archlinux 64 xpra-winswitch 0.11.1-1 => xpra-winswitch dependencies:

community/cython 0.20-1

Error compiling Cython file:
                self.pixel_format = ARGB
                self.pixel_format = BGRA
            raise Exception("invalid image depth: %s bpp" % self.depth)
        assert self.pixel_format in RGB_FORMATS

compile fine with downgrade to cython2-0.19.2-1

Fri, 24 Jan 2014 16:15:31 GMT - Antoine Martin: owner, status, description changed; milestone set

r5271 removes the offending line, which didn't do anything anyway. (will backport to v0.11.x)

Hopefully, this is the only problem with Cython 0.20, which I have only tested with win32 and OSX...

Sun, 26 Jan 2014 03:08:20 GMT - Antoine Martin: status changed; resolution set

Backported in r5273 (will be included in 0.11.2), tested on Ubuntu 13.10 and Fedora 20, closing.

Tue, 28 Jan 2014 20:00:30 GMT - Smo: status changed; resolution deleted

Seems to be another one

cythoning xpra/codecs/nvenc/encoder.pyx to xpra/codecs/nvenc/encoder.c
Error compiling Cython file:
            self.cuda_context = self.cuda_device.make_context(flags=driver.ctx_flags.SCHED_AUTO | driver.ctx_flags.MAP_HOST)
            debug("init_cuda() cuda_context=%s", self.cuda_context)
            self.cuda_device_info = {
                "device.name"       : self.cuda_device.name(),
                "device.pci_bus_id" : self.cuda_device.pci_bus_id()
                "device.memory"     : self.cuda_device.total_memory()/1024/1024,
xpra/codecs/nvenc/encoder.pyx:1328:16: Expected '}', found 'BEGIN_STRING'
building 'xpra.codecs.nvenc.encoder' extension
creating build/temp.linux-x86_64-2.7/xpra/codecs/nvenc
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/opt/cuda/include -I/opt/nvenc_3.0_linux_sdk/Samples/core/include -I/opt/nvenc_3.0_linux_sdk/Samples/nvEncodeApp/inc -I/usr/include/python2.7 -c xpra/codecs/nvenc/encoder.c -o build/temp.linux-x86_64-2.7/xpra/codecs/nvenc/encoder.o -Wall -Werror=implicit-function-declaration -fPIC
xpra/codecs/nvenc/encoder.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
 #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1

Tue, 28 Jan 2014 20:09:27 GMT - Smo: attachment set

Tue, 28 Jan 2014 20:10:03 GMT - Smo:

I added a comma and recompiled. It seems to have worked is this correct?

I've attached the patch

Wed, 29 Jan 2014 01:39:13 GMT - Antoine Martin: status changed; resolution set

Yes, applied in r5291, thanks.

(this one broke all versions of Cython - not just 0.20)

Sat, 23 Jan 2021 04:57:35 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/503