Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106447 - emerge net-www/apache-2.0.54-r31 fails with "CFLAGS changed"
Summary: emerge net-www/apache-2.0.54-r31 fails with "CFLAGS changed"
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 107967 108545 109158 112546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-18 17:19 UTC by Ben XO
Modified: 2005-11-14 12:48 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben XO 2005-09-18 17:19:09 UTC
...

Configuring PCRE regular expression library ...

updating cache /var/tmp/portage/apache-2.0.54-r31/work/httpd-2.0.54/config.cache
configuring package in srclib/pcre now
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: loading cache
/var/tmp/portage/apache-2.0.54-r31/work/httpd-2.0.54/config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -O3 -march=pentium4 -fomit-frame-pointer  -pipe
configure:   current value: -O3 -march=pentium4 -fomit-frame-pointer -pipe
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm
/var/tmp/portage/apache-2.0.54-r31/work/httpd-2.0.54/config.cache' and start over
configure failed for srclib/pcre

!!! ERROR: net-www/apache-2.0.54-r31 failed.
!!! Function src_compile, Line 161, Exitcode 1
!!! bad ./configure please submit bug report to bugs.gentoo.org. Include your
config.layout and config.log
!!! If you need support, post the topmost build error, NOT this status message.


(the problem, as you can see, is that the double-space beteween
-fomit-frame-pointer and -pipe).

Reproducible: Always
Steps to Reproduce:
1.put a double space in your make.conf CFLAGS somewhere.
2.try and emerge apache.
3.

Workaround: remove the double space from my make.conf which probably shouldn't
have been there anyway...



Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://194.117.143.69  ftp://194.117.143.69/mirrors/gentoo
http://194.117.143.71 ftp://194.117.143.72/mirrors/gentoo"
MAKEOPTS="-j9"
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 X509 acl apache2 bashlogger berkdb bzip2 caps chroot crypt curl encode
erandom fam flash flexresp gd gdbm glibc-omitfp gnutls graphviz hardened
imagemagick imap inline innodb ithreads java jikes jpeg lcms lm_sensors
logrotate mad maildir math mcal mpeg mysql ncurses netpbm nls no-htdocs nptl
offensive pam pcre pdflib perl php pic pie png python qmail readline rrdtool
sasl sftplogging shaper snmp snortsam softquota spamassassin spell sse ssl
threads tiff truetype unicode vchroot vhosts xml2 zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-19 01:53:58 UTC
(In reply to comment #0)
> Workaround: remove the double space from my make.conf which probably shouldn't
> have been there anyway...

Yeah, it should not have been there anyway...
Comment 2 Ben XO 2005-09-19 04:42:20 UTC
That may be so, but 1 or more adjacent spaces in a CFLAGS string are
semantically identical. Perhaps emerge should s/\s+/\s/g before passing the
CFLAGS to ebuilds, because the fact is that apache shouldn't stop building just
because I didn't hold it's hand right -- especially considering that the error
it threw up was supposed to be *it* holding *my* hand.

Has this minor issue been reported upstream? if not, where do i report it?
Because it's not resolved, and i can think of a way that the gentoo team can fix
this generically for all cases of braindead scripts, so i find the "RESOLVED /
CANTFIX" a little underwhelming

Alternatively it needs to be made clear somewhere in the documentation that
double spaces are not allowed in CFLAGS
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-19 04:48:27 UTC
This is *not* an apache-specific issue, simply don't put redundant spaces into
make.conf. See Bug 92645, Bug 105442, etc.

If you have suggestions about make.conf documentation and syntax, then open a
new bug.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-10-03 02:06:46 UTC
*** Bug 107967 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-10-08 15:47:19 UTC
*** Bug 108545 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-10-13 09:14:21 UTC
*** Bug 109158 has been marked as a duplicate of this bug. ***
Comment 7 Ben XO 2005-10-13 10:05:22 UTC
Just in case anyone is following this bug in specific... i did already open a
new bug about portage (where the real source of the error is)
http://bugs.gentoo.org/show_bug.cgi?id=106513
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-11-14 12:48:39 UTC
*** Bug 112546 has been marked as a duplicate of this bug. ***