OPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2 -march=pentium4 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DKDE_NO_COMPAT -DQT_NO_COMPAT -Wall -c -o kexttabctl.o kexttabctl.cc i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../koenig/libcgc -isystem /usr/include -isystem /usr/include -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -DQT_THREAD_SUPPORT -D_REENTRANT -isystem /usr/games/include -isystem /usr/local/include -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -O2 -march=pentium4 -Wformat-security -Wmissing-format-attribute -c ai.c ai.c: In function `chess_ai_rochade': ai.c:383: error: syntax error before '/' token ai.c: In function `chess_ai_find_alphabeta': ai.c:451: warning: unused parameter `color' make[3]: *** [ai.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/ggz-kde-games-0.0.13/work/ggz-kde-games-0.0.13/koenig' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/ggz-kde-games-0.0.13/work/ggz-kde-games-0.0.13/koenig' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ggz-kde-games-0.0.13/work/ggz-kde-games-0.0.13' make: *** [all] Error 2 !!! ERROR: games-board/ggz-kde-games-0.0.13 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ggz-kde-games-0.0.13.ebuild, line 33: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
emerge --info please
I finally been able to commit it, but what I did to succeed is rather weird. I deleted a comment ???? the error was a syntax error at like 383. So I went there and I did not find anything wrong. I thought of removing the comment to get a different error message which might have been more helpful. but it compiled ;) hahah so I removed // FIXME: not allowed to ever have moved king or rook which was on like 383 of koenig/ai.c i dont know what is wrong with my compiler to not accept // comments or what. but I just find this very weird. I did not see gcc and glibc version in emerge --info so in case it can be of any use, here comes. gcc-4.1.1-r1 gcc-3.4.6-r1 gcc-3.3.6-r1 glibc-2.3.6-r4 and as requested... emerge --info Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-3.3.6, glibc-2.3.6-r4, 2.6.18-justbudget i686) ================================================================= System uname: 2.6.18-justbudget i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.12.5 Last Sync: Mon, 30 Oct 2006 07:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4" 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/lib/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/games/ggz /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="ja fr en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/somekool/gentoo/portage.local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acl acpi alsa arts avahi bash-completion berkdb bidi bindist bitmap-fonts bl bonjour cairo cdparanoia cdr cjk cli cpudetection cracklib crypt cups dbus dga dlloader dri dts dv dvb dvd dvdr dvdread edl eds elibc_glibc emboss encode esd fam firefox fortran gcj gdbm ggi gif gpm hal i8x0 iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jack jpeg kde kernel_linux layout-osx-like libg++ linguas_en linguas_fr linguas_ja lirc live lm_sensors lzo mad matroska mikmod mmx mmxext mp3 mpeg mplayer mysql mythtv ncurses nls nptl nptlonly objc ogg opengl oss pam pcmcia pcre perl png ppds pppd python qt qt3 qt4 quicktime readline real reflection rtc ruby sdl session spell spl sqlite sse sse2 ssl tcpd tga theora truetype truetype-fonts type1-fonts udev unicode userland_GNU v4l v4l2 video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo visualization vorbis wifi win32codecs xcomposite xml xorg xv xvmc zeroconf zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Upgrade gcc properly http://www.gentoo.org/doc/en/gcc-upgrading.xml
I'm having the same issue, and I'm pretty sure that my gcc is installed correctly, following the directions given on gentoo site. Nonetheless, I'm getting exactly the same error (see below). Can you be more precise on how a correct gcc installation can solve this issue? Thanks. ai.c: In function
I'm having the same issue, and I'm pretty sure that my gcc is installed correctly, following the directions given on gentoo site. Nonetheless, I'm getting exactly the same error (see below). Can you be more precise on how a correct gcc installation can solve this issue? Thanks. ai.c: In function chess_ai_rochade: ai.c:383: error: expected expression before / token ai.c: In function chess_ai_find_alphabeta: ai.c:451: warning: unused parameter color make[3]: *** [ai.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/games-board/ggz-kde-games-0.0.13/work/ggz-kde-games-0.0.13/koenig' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/games-board/ggz-kde-games-0.0.13/work/ggz-kde-games-0.0.13/koenig' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/games-board/ggz-kde-games-0.0.13/work/ggz-kde-games-0.0.13' make: *** [all] Error 2 kefk ~ # gcc --version gcc (GCC) 4.1.1 (Gentoo 4.1.1-r2) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. kefk ~ # emerge --info Portage 2.1.2_rc2-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.18-mm3 i686) ================================================================= System uname: 2.6.18-mm3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.6 Last Sync: Fri, 24 Nov 2006 06:30:01 +0000 dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -msse2 -mfpmath=sse -fomit-frame-pointer -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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/games/ggz /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -march=pentium4 -msse2 -mfpmath=sse -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LINGUAS="it en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/250/workspace/gentoo/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acpi aim alsa apache2 apm arts asf audiofile bash-completion berkdb bidi bitmap-fonts bl bluetooth bri bzip2 cdparanoia cdr cjk cli cracklib crypt cups curl dba dga directfb divx4linux dlloader dri dv dvb dvd dvdr dvdread edl eds elibc_glibc emboss encode esd ethereal exif expat faad fam fame fbcon ffmpeg fftw flac foomaticdb fortran ftp gd gdbm gif gmp gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv icq idn imagemagick imap imlib innodb input_devices_keyboard input_devices_mouse ipv6 isdnlog ithreads jabber jack java javascript jpeg kde kernel_linux lcms ldap libcaca libg++ libwww linguas_en linguas_it live lm_sensors lzo mad maildir mbox mhash mikmod mime mjpeg mmap mmx mng motif mozilla mp3 mpeg msn mysql ncurses network nfsv4 nls nptl nptlonly nsplugin nvidia offensive ofx ogg oggvorbis openal opengl oscar oss pam pcre pdf perl php plotutils png ppds pppd python qt3 qt4 quicktime readline real reflection rtc ruby samba sasl sdl session slang slp sndfile snmp sox speex spell spl sse sse2 ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_nv video_cards_nvidia video_cards_vesa videos vorbis win32codecs wmf wxwindows xanim xface xft xine xml xorg xosd xpm xsl xv xvid xvmc yahoo zlib zpm" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
reopen
Don't know why this happens... That line is removed now.