This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Could not build newlib with gcc 4.1.2


On 27 March 2007 07:28, Klaus Rudolph wrote:

>>> I got the following errors:
>>> 'CFLAGS=-O2 -g -O2 ' 'CPPFLAGS=' 'LDFLAGS='
>>> 'build_alias=i686-pc-linux-gnu' 'host_alias=arm-elf'
>>> 'target_alias=arm-elf' --cache-file=.././config.cache
>>> --srcdir=../../../../newlib/libc
>>> 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 

  See http://sourceware.org/ml/newlib/2006/msg00607.html

>>> after removing config.cache I could continue but the build crashes at:
>>> 
>>> make[4]: Entering directory
>> `/home/zfrdh/work/gcc-4.1.2/build_arm/arm-elf/newlib/libc'
>>> make[4]: *** No rule to make target `all'.  Stop.

> the CFLAGS problem is solved with removing the config.cache file I hope.
> But I could not continue my build while "not rule to make target all"
> is a show stopper. What could I do?

  The previous configure command failed partway through, leaving an incomplete
and incorrect makefile; because it is there, although incomplete, the build
process doesn't know to regenerate it.

  After you apply the patch in the message referenced above (and regenerate
the derived Makefiles) you will need to "make distclean" and then re-run the
configure command.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]