Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499530 - x11-wm/xpra-0.11.1 with dev-python/cython-0.20 - xpra/x11/bindings/ximage.pyx:255:33: Compiler crash in AnalyseExpressionsTransform - AttributeError: 'PrimaryCmpNode' object has no attribute 'is_pycmp'
Summary: x11-wm/xpra-0.11.1 with dev-python/cython-0.20 - xpra/x11/bindings/ximage.pyx...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-28 02:30 UTC by Serge Plyukhin
Modified: 2014-02-06 10:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,41.88 KB, text/plain)
2014-01-28 20:15 UTC, Serge Plyukhin
Details
xpra buld other log (build-python2_7.log,40.99 KB, text/plain)
2014-01-28 20:18 UTC, Serge Plyukhin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Plyukhin 2014-01-28 02:30:33 UTC
[ebuild     U ~] x11-wm/xpra-0.11.1 [0.11.0] USE="client clipboard opengl pulseaudio rencode server sound webp x264 -csc -dec_av -dec_av2 -vpx" PYTHON_TARGETS="python2_7 -python2_6" 

emerge xpra

xpra/x11/bindings/ximage.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: x11-wm/xpra-0.11.1::gentoo failed (compile phase):


Reproducible: Always

Steps to Reproduce:
1. emerge xpra
2.
3.
Actual Results:  
 * Package:    x11-wm/xpra-0.11.1
 * Repository: gentoo
 * Maintainer: xmw@gentoo.org
 * Upstream:   https://www.xpra.org/trac/report
 * USE:        amd64 client clipboard elibc_glibc kernel_linux opengl pulseaudio python_targets_python2_7 rencode server sound userland_GNU webp x264
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking xpra-0.11.1.tar.xz to /var/tmp/portage/x11-wm/xpra-0.11.1/work
>>> Source unpacked in /var/tmp/portage/x11-wm/xpra-0.11.1/work
>>> Preparing source in /var/tmp/portage/x11-wm/xpra-0.11.1/work/xpra-0.11.1 ...
 * Applying xpra-0.7.1-ignore-gentoo-no-compile.patch ...
 [ ok ]
 * Applying xpra-0.10.1-prefix.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-wm/xpra-0.11.1/work/xpra-0.11.1 ...
 * python2_7: running distutils-r1_run_phase python_configure_all
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-wm/xpra-0.11.1/work/xpra-0.11.1 ...
 ... 

cythoning xpra/x11/bindings/ximage.pyx to xpra/x11/bindings/ximage.c

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

xpra/x11/bindings/ximage.pyx:255:33: Compiler crash in AnalyseExpressionsTransform

...

building 'xpra.x11.bindings.ximage' extension
x86_64-pc-linux-gnu-gcc -pthread -march=native -O2 -pipe -fPIC -I/usr/include/python2.7 -c xpra/x11/bindings/ximage.c -o /var/tmp/portage/x11-wm/xpra-0.11.1/work/xpra-0.11.1-python2_7/temp.linux-x86_64-2.7/xpra/x11/bindings/ximage.o -Wall -Werror-implicit-function-declaration
xpra/x11/bindings/ximage.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: x11-wm/xpra-0.11.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3484:  Called distutils-r1_src_compile
 *   environment, line 1234:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  344:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3338:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2545:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2493:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2491:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2536:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  761:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1223:  Called distutils-r1_python_compile
 *   environment, line 1106:  Called esetup.py 'build'
 *   environment, line 1673:  Called die
 * The specific snippet of code:
 *       "${@}" || die



if downgrade to dev-python/cython-0.19.1 then xpra-0.1.1 compile without troubles but "emerge -uDN world" update to dev-python/cython-0.20



emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.18-r1, 3.12.8-gentoo x86_64)
=================================================================
System uname: Linux-3.12.8-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.2
KiB Mem:     7412280 total,   1298084 free
KiB Swap:   15624976 total,  15624780 free
Timestamp of tree: Mon, 27 Jan 2014 19:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.8-r3, 2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.1-r4
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.3-r2, 4.6.3, 4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo steam-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --autounmask-write=y --keep-going=y --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit cracklib crypt css cups cxx dbus declarative doc dri dts dvd dvdr emboss encode examples exif fam firefox flac foomaticdb fortran gif gpm gstreamer htmlhandbook iconv java jpeg jpeg2k kde kipi latex lcms libnotify lm_sensors mad mbox mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt qt3support qt4 readline rtc sdl semantic-desktop session slang sound spell sse sse2 sse3 sse4.1 ssl ssse3 startup-notification svg symlink tcpd tiff truetype ttf type1 udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xulrunner xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="alias negotiation auth_basic auth_digest cgi cgid headers unique_id authz_host authn_file dir mime env filter ext_filter setenvif usertrack speling revrite access log_config" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" NETBEANS_MODULES="java javafx webcommon mobility php" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="hp mustek net plustek plustek_pp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Helmut Jarausch 2014-01-28 09:04:26 UTC
Here, too.

But it looks like a cython problem :

xpra/x11/bindings/ximage.pyx:255:33: Compiler crash in AnalyseExpressionsTransform
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-28 10:56:42 UTC
The earlier cython message could be aptly displayed in the Summary, were it not that it's rather uninformative.

Please attach the entire build log to this bug report.
Comment 3 Serge Plyukhin 2014-01-28 20:15:23 UTC
Created attachment 368998 [details]
build.log
Comment 4 Serge Plyukhin 2014-01-28 20:18:15 UTC
Created attachment 369000 [details]
xpra buld other log
Comment 5 Siuchung Cheung (Clement) 2014-02-01 09:15:45 UTC
Same here. Seems to be known issue from upstream. http://xpra.org/trac/ticket/503

Grabbed the r5271 changeset from the bug and dropped it in /etc/portage/patches/x11-wm/xpra-0.11.1/cython-0.20.patch and it now compiles.

Note: Please ignore the r5291 from the bug. It fixes a bug that's not yet in our tree. That patch is not going to apply.

Upstream says fix will be in next release 0.11.2.
Comment 6 Michael Weber (RETIRED) gentoo-dev 2014-02-06 10:20:04 UTC
+*xpra-0.11.2 (06 Feb 2014)
+
+  06 Feb 2014; Michael Weber <xmw@gentoo.org> +xpra-0.11.2.ebuild,
+  -xpra-0.11.0.ebuild, -xpra-0.11.1.ebuild:
+  Version bump including patches mentioned on bug 499530, thanks all.
+