Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72934 - x11-libs/nucleo-0.1-r2 fails to build
Summary: x11-libs/nucleo-0.1-r2 fails to build
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop WM Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 09:21 UTC by MAL
Modified: 2004-12-03 02:59 UTC (History)
0 users

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


Attachments
nucleo-0.1_p20041130-r1.ebuild (nucleo-0.1_p20041130-r1.ebuild,775 bytes, text/plain)
2004-12-03 02:47 UTC, MAL
Details
nucleo-0.1_p20041130-glfix.patch (nucleo-0.1_p20041130-glfix.patch,512 bytes, patch)
2004-12-03 02:48 UTC, MAL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MAL 2004-11-30 09:21:19 UTC
nucleo, needed for metisse, fails to build with:

 g++ -DHAVE_CONFIG_H -I. -I. -I../../../nucleo -I../../.. -I../../.. -I/usr/X11R6/include -I/usr/include/freetype2 -march=athlon-xp -O3 -pipe -MT glTexture.lo -MD -MP -MF .deps/glTexture.Tpo -c glTexture.cxx  -fPIC -DPIC -o .libs/glTexture.o
glTextureTile.cxx: In function `const char* nucleo::getTargetName(unsigned int)
   ':
glTextureTile.cxx:39: error: duplicate case value
glTextureTile.cxx:36: error: previously used here
make[4]: *** [glTextureTile.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-ck2 i686)
=================================================================
System uname: 2.6.9-ck2 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv
usersandbox"
GENTOO_MIRRORS="ftp://mir.zyrianes.net/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.254/gentoo-portage"
USE="3dnow X aalib acpi alsa apm avi berkdb bitmap-fonts bonobo cdr chroot crypt
cscope cups curl dga directfb dvd encode esd f77 faac faad fam flac fmod
foomaticdb fortran freetype gb gd gdbm ggi ggz gif gphoto2 gpm gstreamer gtk
gtk2 gtkhtml guile imagemagick imap imlib jack java jbig jikes jpeg lcms ldap
libg++ libwww mad maildir mailwrapper matroska md5sum mikmod mmx motif mozilla
mpeg mysql nas ncurses nls oav oggvorbis opengl operanom2 oss pam pdflib perl
png python qt quicktime radeon readline ruby samba sdl slang slp snmp speex
spell sqlite sse ssl svga tcltk tcpd tetex theora tiff truetype usb wmf x86
xface xml xml2 xmms xv zlib"
Comment 1 MAL 2004-11-30 09:27:48 UTC
Additional info:

I use x11-base/xorg-x11-6.8.0-r3, media-video/nvidia-glx-1.0.6629 and have run "opengl-update nvidia" before emerging.
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-02 03:02:09 UTC
Where did you get nucleo-0.1-r2? We only have nucleo-0.1-r1.ebuild
at the moment (will add nucleo-0.1_p20041130.ebuild, though).
Comment 3 MAL 2004-12-02 03:19:10 UTC
Sorry, I created -r2, adding the changes in bug #68322 just in case that helped.

The same happens when emerging -r1.
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-02 21:00:47 UTC
No worries. Could you try nucleo-0.1_p20041130.ebuild, again?
Comment 5 MAL 2004-12-03 01:45:00 UTC
Exactly the same:

 g++ -DHAVE_CONFIG_H -I. -I. -I../../../nucleo -I../../.. -I../../.. -I/usr/X11R6/include -I/usr/include/freetype2 -march=athlon-xp -O3 -fomit-frame-pointer -pipe -MT glTextureTile.lo -MD -MP -MF .deps/glTextureTile.Tpo -c glTextureTile.cxx  -fPIC -DPIC -o .libs/glTextureTile.o
glTextureTile.cxx: In function `const char* nucleo::getTargetName(unsigned int)
   ':
glTextureTile.cxx:39: error: duplicate case value
glTextureTile.cxx:36: error: previously used here
distcc[25649] ERROR: compile glTextureTile.cxx on 192.168.0.2 failed
make[4]: *** [glTextureTile.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

I've tried it without distcc and it's the same.

I get the same error on my home machine, which is a much older Gentoo.
Comment 6 MAL 2004-12-03 02:46:50 UTC
looking into it, it turns out to be a problem with the upstream code.  If you have an nvidia card, GL_TEXTURE_RECTANGLE_NV is defined.  If GL_TEXTURE_RECTANGLE_EXT is also defined, the #ifdefs try to include them in the same switch statement, and at least on my machines, GL_TEXTURE_RECTANGLE_NV and GL_TEXTURE_RECTANGLE_EXT have the same value, causing upset.

I have attached a patch and updated ebuild to only use one or the other (taking GL_TEXTURE_RECTANGLE_EXT as preference - no idea what this does in code terms).

Probably worth mentioning this upstream.

HTH

Onto the next hurdle - metisse doesn't build 8-|
Comment 7 MAL 2004-12-03 02:47:47 UTC
Created attachment 45189 [details]
nucleo-0.1_p20041130-r1.ebuild

Updated ebuild to fix nvidia gl problems.
Comment 8 MAL 2004-12-03 02:48:31 UTC
Created attachment 45190 [details, diff]
nucleo-0.1_p20041130-glfix.patch

patch used by nucleo-0.1_p20041130-r1.ebuild
Comment 9 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-03 02:59:51 UTC
Oh, I've just looked at the source and made similar
patch to fix it. Thanks for reporting the bug to
upstream.