xpra icon
Bug tracker and wiki

Opened 6 years ago

Closed 6 years ago

#503 closed defect (fixed)

compile problem cython 0.20 on archlinux

Reported by: Opsomer Owned by: Antoine Martin
Priority: minor Milestone: 0.12
Component: core Version: 0.11.x
Keywords: Cc:

Description (last modified by Antoine Martin)

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

  • python2 (already installed)
  • pygtk (already installed)
  • libxtst (already installed)
  • xorg-server-xvfb (already installed)
  • python2-imaging (already installed)
  • ffmpeg (already installed)
  • x264 (already installed)
  • xf86-video-dummy (already installed)
  • libwebp (already installed)
  • python2-distribute (already installed)
  • cython2 (already installed)

community/cython 0.20-1

Error compiling Cython file:
------------------------------------------------------------
...
                self.pixel_format = ARGB
            else:
                self.pixel_format = BGRA
        else:
            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

Attachments (1)

nvenc_cython.patch (734 bytes) - added by Smo 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by Antoine Martin

Description: modified (diff)
Milestone: 0.12
Owner: changed from Antoine Martin to Antoine Martin
Status: newassigned

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...

comment:2 Changed 6 years ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

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

comment:3 Changed 6 years ago by Smo

Resolution: fixed
Status: closedreopened

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

Changed 6 years ago by Smo

Attachment: nvenc_cython.patch added

comment:4 Changed 6 years ago by Smo

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

I've attached the patch

comment:5 Changed 6 years ago by Antoine Martin

Resolution: fixed
Status: reopenedclosed

Yes, applied in r5291, thanks.

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

Note: See TracTickets for help on using tickets.