Whenever I try to emerge cryptoapi I get teh following error: checking for kernel compile parameters... gcc -I/usr/src/linux-2.4.22-gentoo-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -finline-limit=2000 -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -DMODVERSIONS -include /usr/src/linux-2.4.22-gentoo-r2/include/linux/modversions.h checking for architecture... i386 checking for kernel version... 2.4.22-gentoo-r2 configure: error: Compiler version mismatch - try using gcc-Version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) !!! ERROR: app-crypt/cryptoapi-2.4.7.0 failed. !!! Function econf, Line 339, Exitcode 1 !!! econf failed Kernel is: bash-2.05b# uname -r 2.4.22-gentoo-r2 bash-2.05b# GCC is: bash-2.05b# gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs Konfiguriert mit: /var/tmp/portage/gcc-3.3.2-r5/work/gcc-3.3.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib --with-x --disable-multilib Thread model: posix gcc-Version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) bash-2.05b# The system is running ~x86 Reproducible: Always Steps to Reproduce: 1. Switch to ~x86 2. emerge cryptoapi 3. Actual Results: checking for kernel compile parameters... gcc -I/usr/src/linux-2.4.22-gentoo-r2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -finline-limit=2000 -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -DMODVERSIONS -include /usr/src/linux-2.4.22-gentoo-r2/include/linux/modversions.h checking for architecture... i386 checking for kernel version... 2.4.22-gentoo-r2 configure: error: Compiler version mismatch - try using gcc-Version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) !!! ERROR: app-crypt/cryptoapi-2.4.7.0 failed. !!! Function econf, Line 339, Exitcode 1 !!! econf failed Expected Results: Access my stick with everything on it :-) Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.22-gentoo-r2) ================================================================= System uname: 2.4.22-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.4.3.12 distcc 2.12 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dga directfb dvd encode esd ethereal fbcon firebird flash foomaticdb gd gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib innodb java joystick jpeg kde libg++ libwww lirc mad maildir mbox mcal mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline ruby samba scanner sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xml xml2 xmms xv zlib"
I cannot reproduce this bug. Perhaps gcc has been compiled too aggresively.
I have the same settings on two other computers. Both ones are on x86, this is on ~x86. Maybe here is the problem. Moreover other people in the forums told me, that they have the same problems.
Is your kernel built with the gcc you are using (3.3.2)? If not, try recompiling your kernel with 3.3.2 and see if the problem persists.
Yes, it is the same version. Exactly the same...
i got the same problem but with kernel 2.4.22-r5. i recompiled the kernel and now everything works fine.
this problem may be coincidential to http://bugs.gentoo.org/show_bug.cgi?id=29464 where hylafax also refuses to recognize the gcc version. i will try the fix from hylafax in this ebuild also, thanks, Alex
removing base-system
Did the hylafix fix apply here as well? Does an upgrade in kernel versions help anything?
Gone old. Assuming CANTFIX unless he reopens.
The problem happens when the configure script is comparing the compiler versions as strings. There are two variables: tcomp is the last line emitted by 'gcc -v': gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) kcomp is the result of some other test that I can't comprehend. Its output is: gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) The only difference between these two strings is an extra space before the open-paren.