Running "emerge -u clisp" in an effort to get clisp-2.31-r1 An extra SPACE character has crept into things somehow. See attachment below. The CC shell variable is modified and there is error checking that notices this change. The error checking causes emerge to fail. The problem is that "gcc -I /usr/include" does not match "gcc -I /usr/include". Note the extra space between `gcc' and `-I'. The problem is seen in the "ffcall/callback/vacall_r/configure" script. Reproducible: Always Steps to Reproduce: 1. emerge -u clisp 2. 3. Actual Results: configure: configuring in vacall_r configure: running /bin/sh '../../../ffcall/callback/vacall_r/configure' --prefix=/usr '--srcdir=../../ffcall/callback' '--prefix=/usr' '--with-dynamic-ffi' '--with-unicode' '--with-module=regexp' '--with-module=syscalls' '--with-module=wildcard' '--with-module=bindings/glibc' '--with-module=clx/new-clx' '--with-module=postgresql' '--cache-file=../config.cache' 'CC=gcc -I /usr/include' --cache-file=../../config.cache --srcdir=../../../ffcall/callback/vacall_r configure: loading cache ../../config.cache configure: error: `CC' has changed since the previous run: configure: former value: gcc -I /usr/include configure: current value: gcc -I /usr/include configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm ../../config.cache' and start over configure: error: /bin/sh '../../../ffcall/callback/vacall_r/configure' failed for vacall_r !!! ERROR: dev-lisp/clisp-2.32-r1 failed. !!! Function src_compile, Line 79, Exitcode 1 !!! ./configure failed Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r4) ================================================================= System uname: 2.4.22-gentoo-r4 i686 Mobile AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" 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 /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -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="3dnow X aalib acpi alsa apm arts avi berkdb bonobo cdr crypt cups dvd encode esd evo foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jfs jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline reiserfs sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Created attachment 24607 [details] Typescript file, output of "emerge -u clisp" run
*** Bug 39955 has been marked as a duplicate of this bug. ***
from Bug 39955: >try using -mcpu=i686 in your CFLAGS. so far only -march=athlon-xp users have reported this problem Hm, that's more a workaround than a solution. I commented out the -O* filtering in the ebuild and did a few runs. While compiling I got "cc1: warning: SSE instruction set disabled, using 387 arithmetics" because of -mfpmath=sse,387. Even CFLAGS="-O3 -mcpu=athlon-xp -pipe -foptimize-sibling-calls -fomit-frame-pointer -fforce-addr -fprefetch-loop-arrays -fmove-all-movables -mfpmath=sse,387" compiled fine. So I think replacing -march=athlon-xp with -mcpu=athlon-xp (and maybe filtering -msse/-mmmx) should fix the problem.
Same problem with clisp-2.33, same solution.
clisp-2.33-r2 unsets CFLAGS and CXXFLAGS and leaves CC along. This should correct these kinds of problems. I just dont have time to play with compiler options.