[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can't build: "`CFLAGS' has changed since the previous run"
- Date: Fri, 04 May 2007 10:49:38 +0200
- From: ralf.corsepius at rtems.org (Ralf Corsepius)
- Subject: Can't build: "`CFLAGS' has changed since the previous run"
On Thu, 2007-05-03 at 20:00 +0000, Vivian Paola Guerrero Rodriguez
> >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 188.8.131.52: 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
> make: *** [configure-target-newlib] Error 1
> make: 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))
> -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.
.. yes this is only part of the story.
> What am I doing grown
Not using one of the prebuilt toolchains ... ;)
> ? is there another solution for this problem?
Not quite, but it's all in the RTEMS gcc and newlib patches.