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"
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.
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).
Sorry, I created -r2, adding the changes in bug #68322 just in case that helped. The same happens when emerging -r1.
No worries. Could you try nucleo-0.1_p20041130.ebuild, again?
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.
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-|
Created attachment 45189 [details] nucleo-0.1_p20041130-r1.ebuild Updated ebuild to fix nvidia gl problems.
Created attachment 45190 [details, diff] nucleo-0.1_p20041130-glfix.patch patch used by nucleo-0.1_p20041130-r1.ebuild
Oh, I've just looked at the source and made similar patch to fix it. Thanks for reporting the bug to upstream.