Can't build: "`CFLAGS' has changed since the previous run"

Vivian Paola Guerrero Rodriguez vivianpaolag at hotmail.com
Thu May 3 20:00:19 UTC 2007




>Hi, i'm trying to build gcc 4.1.1 with binutils 2.17 and newlib 1.15.0 , 
>i'm following the steps described on-line library  4.1.4.2: Using configure 
>and make.
When i 'm doing "Configuring and Building GCC and NEWLIB" newlib fails  with 
this odd message:

configure: loading cache .././config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -O2 -g -O2
configure:   current value: -O2 -g -O2
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 
'/home/vguerrero/tools-rtems/gcc-4.1.1/newlib/libc/configure' failed for 
libc
make[1]: *** [configure-target-newlib] Error 1
make[1]: se sale del directorio `/home/vguerrero/b-gcc'
make: *** [all] Error 2

So, I  found a  solution that consist in change two lines of the MakeFile.in 
of newlib:

-CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CFLAGS_FOR_TARGET = $(strip -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))
and
-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+CXXFLAGS_FOR_TARGET = $(strip $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET))

but these lines doesn't fix the problem.

What am I doing grown ? is there another solution for this problem?

Thanks

_________________________________________________________________
Need a break? Find your escape route with Live Search Maps. 
http://maps.live.com/default.aspx?ss=Restaurants~Hotels~Amusement%20Park&cp=33.832922~-117.915659&style=r&lvl=13&tilt=-90&dir=0&alt=-1000&scene=1118863&encType=1&FORM=MGAC01




More information about the users mailing list