Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 220103

Summary: Emerge of insight 6.7.1-r1 fails due to CFLAGS changing during configure
Product: Gentoo Linux Reporter: drumz <paul>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description drumz 2008-05-03 11:45:47 UTC
While trying to upgrade insight to the latest available version, the emerge fails with the following error:

configure: configuring in testsuite
configure: running /bin/sh '../.././gdb/testsuite/configure' --prefix=/usr  '--cache-file=./config.cache' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-werror' '--enable-nls' '--enable-gdbtk' '--disable-tui' '--datadir=/usr/share/insight' '--libdir=/usr/lib64' '--program-transform-name=s,y,y,' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--target=x86_64-pc-linux-gnu' '--srcdir=.././gdb' 'CC=x86_64-pc-linux-gnu-gcc' 'CFLAGS=-march=k8 -O2 -pipe -fno-strict-aliasing' 'LDFLAGS=' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'target_alias=x86_64-pc-linux-gnu' --cache-file=.././config.cache --srcdir=../.././gdb/testsuite
configure: loading cache .././config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -march=k8 -O2 -pipe  -fno-strict-aliasing
configure:   current value: -march=k8 -O2 -pipe -fno-strict-aliasing
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 '../.././gdb/testsuite/configure' failed for testsuite
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/insight-6.7.1-r1/work/insight-6.7.1'
make: *** [all] Error 2

This is on an AMD64 system.

Reproducible: Always

Steps to Reproduce:
1.  emerge insight
2.  emerge eventually fails with error message above.
3.

Actual Results:  
Emerge fails.

Expected Results:  
Emerge should install/upgrade without errors.

emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r9 x86_64 AMD Opteron(tm) Processor 244
Timestamp of tree: Sat, 03 May 2008 04:34:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="candy distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 arts asf avi berkdb bzip2 cairo cdr cli cracklib crypt ctype cups cvs dbus dga discouraged divx4linux doc dri dts dv dvb dvd dvdr dvdread eds emboss encode esd ethereal evo faad fam firefox flac foomaticdb fortran gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv imagemagick imap innodb ipv6 isdnlog jack java jpeg kde kdexdeltas kerberos ldap live mad mailwrapper mat mbox midi mikmod mmx mmx2 mozilla mp3 mpeg mudflap mysql mythtv nas ncurses nls nptl nptlonly nsplugin nvidia oci8 odbc ogg oggvorbis opengl openmp oss pam pcre pdf pdflib perl php png posix postgres ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection roska rtc samba sasl scanner sdl session snmp spell spl sql sse sse2 ssl subversion svg tcltk tcpd theora tiff truetype unicode usb v4l vorbis wxwindows xanim xine xml xml2 xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2008-05-03 11:48:05 UTC
So why don't you remove the extra space from your CFLAGS? 

CFLAGS="-march=k8 -O2 -pipe "

to

CFLAGS="-march=k8 -O2 -pipe"

?
Comment 2 drumz 2008-05-03 12:15:40 UTC
Thanks, that did it.

But it raises the question as to why this is the only package that's been affected by that?  I haven't edited the make.conf file in a very long time (> 6 months, probably longer than that for the CFLAGS line in the file) and I keep my server up to date so packages have been emerged on a regular basis.....
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-04 15:45:17 UTC
(In reply to comment #2)
> Thanks, that did it.
> 
> But it raises the question as to why this is the only package that's been
> affected by that?  I haven't edited the make.conf file in a very long time (> 6
> months, probably longer than that for the CFLAGS line in the file) and I keep
> my server up to date so packages have been emerged on a regular basis.....

It's hardly the only package that trips over superfluous whitespace. IIRC, apache had problems with CFLAGS=" [OPTIONS] " a good while ago, and probably still does.