When I try to emerge scumvm 0.7 I get the following error message: Running ScummVM configure... Looking for C++ compiler... g++ Checking for compiler version... tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future 3.4.3-20050110, bad The version of your compiler is not supported at this time Please ensure you are using GCC 2.95.x or GCC 3.x !!! ERROR: games-engines/scummvm-0.7.0 failed. !!! Function src_compile, Line 53, Exitcode 1 !!! configure failed Reproducible: Always Steps to Reproduce: 1. emerge scumvm Expected Results: I should accept the gcc-version, because it's gcc 3.x as mentioned...
reopen with the output of emerge --info
Here the info: Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 Celeron (Coppermine) Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 21:31:16)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control /var/www/localhost/htdocs/phpmyadmin" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.tu-ilmenau.de/Mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" LANG="de_DE@euro" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl divx4linux doc f77 fam font-server foomaticdb fortran gdbm gif glut gpm gtk gtk2 imagemagick imlib ipv6 java jpeg jpeg2k kde libg++ libwww lm_sensors logitech-mouse mad matroska mmx mmx2 mp3 mpeg mysql ncurses nls nocd nptl nptlonly oggvorbis opengl pam pdflib perl pic png ppds python qt readline samba sdl session slang socket spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts usb xml xml2 xmms xscreensaver xv zlib linguas_de" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL
remerge gcc and try it again please.
I can do it again, but I already emerged gcc (and the complete toolchain) twice and I compiled over 300 different packages without problems. (I recompile the wole system.)
what's the output of g++ -dumpversion
3.4.3-20050110
I think the configure script has a problem with the additional minus with the timestamp.
yeah. that's not right. it should just be 3.4.3
But it's the first configure script that has this problem. Strange...
it's not an autoconf configure script.
What does this mean and what can we do now?
I remember that I had 2 version auf gcc3.4 installed: 3.4.3-r1 and 3.4.3.20050110 Maybe that is the reason, why it added the timestamp to the latest version. I removed now all gcc's except the 20050110 and re-emerge now the 20050110. Then I will try to emerge ScumVM and will tell you the result in 2 hours.
Looks like the gcc version detection code is broken in the configure script provided by upstream. I've patched it to work with the version you're getting. resync in a bit and try it again.
I re-emerged gcc but nothing changed... I have done a sync but it's not in the portage (mirror) yet. I will try it tomorrow...
Now the configure script works without problems. Thank you for the patch.