Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237421 - dev-python/visual-3.2.9-r1 fails to compile
Summary: dev-python/visual-3.2.9-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 250926 (view as bug list)
Depends on:
Blocks: gcc-4.3 259136
  Show dependency tree
 
Reported: 2008-09-11 19:57 UTC by Andrés Becerra Sandoval
Modified: 2009-02-15 19:51 UTC (History)
5 users (show)

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


Attachments
patch for mutex::lock (visual-3.2.9-typedef.patch,317 bytes, patch)
2008-10-12 10:11 UTC, Nikolay Orlyuk
Details | Diff
sorry last time missed visual namespace (visual-3.2.9-typedef.patch,325 bytes, patch)
2008-10-12 10:26 UTC, Nikolay Orlyuk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés Becerra Sandoval 2008-09-11 19:57:31 UTC
Fails compiling src/arrow.cpp
The direct compilation (without portage) of visual is also failing.

My system is ~x86, with sys-devel/gcc-4.3.1-r1 

This is the error I get in build.log:

i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c arrow.cpp  -fPIC -DPIC -o .libs/arrow.o
 i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c box.cpp  -fPIC -DPIC -o .libs/box.o
 i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c axial.cpp  -fPIC -DPIC -o .libs/axial.o
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/axial.h:8,
                 from axial.cpp:5:
../include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/axial.h:8,
                 from ../include/arrow.h:7,
                 from arrow.cpp:4:
../include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/box.h:8,
                 from box.cpp:5:
../include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
/bin/sh ..//libtool --mode=compile i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c -o arrow.lo arrow.cpp
 i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c arrow.cpp  -fPIC -DPIC -o .libs/arrow.o
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/axial.h:8,
                 from ../include/arrow.h:7,
                 from arrow.cpp:4:
./include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
/bin/sh ..//libtool --mode=compile i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c -o arrow.lo arrow.cpp
 i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c arrow.cpp  -fPIC -DPIC -o .libs/arrow.o
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/axial.h:8,
                 from ../include/arrow.h:7,
                 from arrow.cpp:4:
../include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
/bin/sh ..//libtool --mode=compile i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c -o arrow.lo arrow.cpp
 i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c arrow.cpp  -fPIC -DPIC -o .libs/arrow.o
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/axial.h:8,
                 from ../include/arrow.h:7,
                 from arrow.cpp:4:
../include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
/bin/sh ..//libtool --mode=compile i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c -o arrow.lo arrow.cpp
 i686-pc-linux-gnu-g++ -I/usr/include/python2.5 -DHAVE_CONFIG_H -I../include -I..//include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -fpic -DPIC -O2 -mtune=pentium4 -pipe -fomit-frame-pointer -ftemplate-depth-120 -g0 -c arrow.cpp  -fPIC -DPIC -o .libs/arrow.o
In file included from ../include/platform.h:107,
                 from ../include/cvisual.h:10,
                 from ../include/displaylist.h:8,
                 from ../include/prim.h:8,
                 from ../include/axial.h:8,
                 from ../include/arrow.h:7,
                 from arrow.cpp:4:
../include/platlinux.h:27: error: declaration of 'typedef class visual::lock<visual::mutex> visual::mutex::lock'
../include/vthread.h:13: error: changes meaning of 'lock' from 'class visual::lock<visual::mutex>'
Comment 1 Mart Raudsepp gentoo-dev 2008-09-12 01:08:10 UTC
Smells like something that hasn't been ported to work with header changes in g++-4.3, but not sure - didn't succeed in convincing my old gcc-4.1 and gcc-4.2 installations to work.

It MIGHT be useful for the maintainers to know if this builds with gcc-4.2 or not.
Comment 2 Nikolay Orlyuk 2008-10-12 10:11:56 UTC
Created attachment 168140 [details, diff]
patch for mutex::lock

use "typedef ::lock<mutex> lock"
Comment 3 Nikolay Orlyuk 2008-10-12 10:26:56 UTC
Created attachment 168146 [details, diff]
sorry last time missed visual namespace
Comment 4 brent 2008-11-04 05:26:31 UTC
just confirming this bug and letting you know i use gcc 4.3.x


>>> Failed to emerge dev-python/visual-3.2.9-r1, Log file:

>>>  '/var/tmp/portage/dev-python/visual-3.2.9-r1/temp/build.log'

 * Messages for package dev-python/visual-3.2.9-r1:

 * Support for Numeric or Numarray was not specified.
 * Building with Numeric support
 * 
 * ERROR: dev-python/visual-3.2.9-r1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2398:  Called die
 * The specific snippet of code:
 * emake || die "emake failed"
 * The die message:
 * emake failed




praetorian ~ # emerge --info
Portage 2.2_rc13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-i686-Intel-R-_Core-TM-2_Extreme_CPU_X9000_@_2.80GHz-with-glibc2.0
Timestamp of tree: Tue, 04 Nov 2008 04:20:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://gentoo.llarian.net/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi ads alsa async audit automount avahi avi bash-completion bashcompletion berkdb branding bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus divx divx4linux dri dv dvd dvdr dvdread eds emboss encode esd evo examples fam fbcon fbcondecor ffmpeg firefox flac fortran gcrypt gdbm geoip gif glitz gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv idea ipv6 irda isdnlog jpeg kerberos lame ldap libnotify live loop-aes lzo mad midi mikmod mjpeg mp3 mpeg mudflap ncurses networkmanager nls nptl nptlonly nss offensive ogg openal opengl openmp pam passwordsave pcre pdf perl pkcs11 plugins png ppds pppd profile python qt3 qt3support qt4 quicktime readline real reflection samba sdl session slang speex spell spl ssl startup-notification svg sysfs syslog tcpd theora threads tiff truetype unicode usb utils vcd vidix vim-syntax vorbis wifi win32codecs winbind wireshark x86 xcb xinerama xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 5 Patrick Lauer gentoo-dev 2009-02-03 17:59:42 UTC
+*visual-3.2.9-r2 (03 Feb 2009)
+
+  03 Feb 2009; Patrick Lauer <patrick@gentoo.org>
+  +files/visual-3.2.9-gcc43.patch, +visual-3.2.9-r2.ebuild:
+  gcc 4.3 fix, closes bug #237421. Patch from Nikolay Orlyuk
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2009-02-15 19:50:07 UTC
*** Bug 250926 has been marked as a duplicate of this bug. ***