Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39830 - "emerge -u clisp" fails during ./configure
Summary: "emerge -u clisp" fails during ./configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Lisp Project
URL:
Whiteboard:
Keywords:
: 39955 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-29 17:22 UTC by Hal Eisen
Modified: 2004-05-11 17:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Typescript file, output of "emerge -u clisp" run (emerge-clisp.out,21.05 KB, text/plain)
2004-01-29 17:23 UTC, Hal Eisen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hal Eisen 2004-01-29 17:22:42 UTC
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"
Comment 1 Hal Eisen 2004-01-29 17:23:48 UTC
Created attachment 24607 [details]
Typescript file, output of "emerge -u clisp" run
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2004-02-01 09:05:14 UTC
*** Bug 39955 has been marked as a duplicate of this bug. ***
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-01 12:02:01 UTC
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.


Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-03-24 08:41:30 UTC
Same problem with clisp-2.33, same solution.
Comment 5 Matthew Kennedy (RETIRED) gentoo-dev 2004-05-11 17:31:09 UTC
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.