X-Spam-Check-By: sourceware.org Date: Sun, 19 Aug 2007 18:29:49 -0700 From: David Rothenberger Subject: Configure error from Cygwin CVS HEAD To: cygwin Message-id: <46C8EE8D.2030805@acm.org> MIME-version: 1.0 Content-type: multipart/mixed; boundary=------------040808060603040402000801 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------040808060603040402000801 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I'm getting an error from configure when trying to build Cygwin CVS HEAD. The error is: configure: configuring in cygwin configure: running /bin/sh '/netrel/src/cygwin/winsup/cygwin/configure' --prefix=/usr '--cache-file=./config.cache' '--with-newlib' '--enable-multilib' '--prefix=/usr' '--exec-prefix=/usr' '--sysconfdir=/etc' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--libdir=/usr/lib' '--includedir=/nonexistent/include' '--libexecdir=/usr/sbin' '--program-transform-name=s,y,y,' '--with-target-subdir=i686-pc-cygwin' '--build=i686-pc-cygwin' '--host=i686-pc-cygwin' '--target=i686-pc-cygwin' '--srcdir=/netrel/src/cygwin/winsup' 'CC=gcc -L/netrel/build/cygwin/i686-pc-cygwin/winsup -L/netrel/build/cygwin/i686-pc-cygwin/winsup/cygwin -L/netrel/build/cygwin/i686-pc-cygwin/winsup/w32api/lib -isystem /netrel/src/cygwin/winsup/include -isystem /netrel/src/cygwin/winsup/cygwin/include -isystem /netrel/src/cygwin/winsup/w32api/include -B/netrel/build/cygwin/i686-pc-cygwin/newlib/ -isystem /netrel/build/cygwin/i686-pc-cygwin/newlib/targ-include -isystem /netrel/src/cygwin/newlib/libc/inclu de' 'CFLAGS=-O2 -O2 -gstabs+ ' 'CPPFLAGS=' 'CXXFLAGS=-O2 -gstabs+ ' 'CXX=g++ -L/netrel/build/cygwin/i686-pc-cygwin/winsup -L/netrel/build/cygwin/i686-pc-cygwin/winsup/cygwin -L/netrel/build/cygwin/i686-pc-cygwin/winsup/w32api/lib -isystem /netrel/src/cygwin/winsup/include -isystem /netrel/src/cygwin/winsup/cygwin/include -isystem /netrel/src/cygwin/winsup/w32api/include -B/netrel/build/cygwin/i686-pc-cygwin/newlib/ -isystem /netrel/build/cygwin/i686-pc-cygwin/newlib/targ-include -isystem /netrel/src/cygwin/newlib/libc/include' 'LDFLAGS=' 'build_alias=i686-pc-cygwin' 'host_alias=i686-pc-cygwin' 'target_alias=i686-pc-cygwin' --cache-file=.././config.cache --srcdir=/netrel/src/cygwin/winsup/cygwin configure: loading cache .././config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -O2 -O2 -gstabs+ configure: current value: -O2 -O2 -gstabs+ configure: error: `CXXFLAGS' has changed since the previous run: configure: former value: -O2 -gstabs+ configure: current value: -O2 -gstabs+ 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 '/netrel/src/cygwin/winsup/cygwin/configure' failed for cygwin make[1]: *** [configure-target-winsup] Error 1 make[1]: Leaving directory `/netrel/build/cygwin' make: *** [all] Error 2 Although the former and current values look the same, the former value actually has two trailing spaces while the current value has only one. The attached patch solves the problem for me, but I doubt it is the appropriate way to fix this. Is there a better way? -- David Rothenberger ---- daveroth AT acm DOT org First Law of Socio-Genetics: Celibacy is not hereditary. --------------040808060603040402000801 Content-Type: text/plain; name="config-cache-error.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="config-cache-error.patch" Index: Makefile.in =================================================================== --- Makefile.in (revision 43) +++ Makefile.in (working copy) @@ -366,12 +366,10 @@ # CFLAGS will be just -g. We want to ensure that TARGET libraries # (which we know are built with gcc) are built with optimizations so # prepend -O2 when setting CFLAGS_FOR_TARGET. -CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) \ - $(DEBUG_PREFIX_CFLAGS_FOR_TARGET) +CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ -CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) \ - $(DEBUG_PREFIX_CFLAGS_FOR_TARGET) +CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates LDFLAGS_FOR_TARGET = --------------040808060603040402000801 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------040808060603040402000801--