This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Could not build newlib with gcc 4.1.2
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Klaus Rudolph'" <lts-rudolph at gmx dot de>, <newlib at sourceware dot org>
- Date: Tue, 27 Mar 2007 14:42:58 +0100
- Subject: RE: Could not build newlib with gcc 4.1.2
- References: <20070327060626.265230@gmx.net> <4608C5F9.6080900@gentoo.org> <20070327062737.265260@gmx.net>
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....