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: Newlib branch with latest autotools support


On 3/30/06, Jeff Johnston <jjohnstn@redhat.com> wrote:
> I have created a newlib branch (newlib-autotools-branch) that has
> regenerated all the configuration files using latest autotools.  There
...
> RTEMS configurations.  I don't anticipate much trouble.  Shaun, if you
> could verify an arm build, that would be great.

I've run into the following issue (detailed below). Running make a
second time gets further. The build appears to have worked in all the
multdirs except the simple '.' multidir.

Note that I've added mthumb-interwork and fPIC to my multilib
configuration, but excluded interwork/pic.

$ find arm-elf -name libc.a | grep newlib/libc.a
arm-elf/thumb/newlib/libc.a
arm-elf/thumb/interwork/newlib/libc.a
arm-elf/thumb/pic/newlib/libc.a
arm-elf/interwork/newlib/libc.a
arm-elf/pic/newlib/libc.a
$ cat arm-elf/newlib/multilib.out
.;
thumb;@mthumb
interwork;@mthumb-interwork
pic;@fPIC
thumb/interwork;@mthumb@mthumb-interwork
thumb/pic;@mthumb@fPIC

Cheers,
Shaun

$ ../configure   --target=arm-elf --with-cpu=arm7tdmi
--disable-newlib-supplied-syscalls --disable-newlib-io-float
...
$ make
...
configure: configuring in libc
configure: running /bin/sh '../../../../newlib/libc/configure'
--prefix=/usr/local  '--cache-file=./config.cache'
'--build=i686-pc-linux-gnu' '--host=arm-elf' '--target=arm-elf'
'--with-newlib' '--enable-multilib'
'--with-cross-host=i686-pc-linux-gnu' '--with-cpu=arm7tdmi'
'--disable-newlib-supplied-syscalls' '--disable-newlib-io-float'
'--program-transform-name=s,^,arm-elf-,; '
'--with-target-subdir=arm-elf' '--srcdir=../../../newlib'
'CC=arm-elf-gcc
-B/home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib/
-isystem /home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib/targ-include
-isystem/home/sjackman/src/toolchain/newlib-autotools-branch/newlib/libc/include'
'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
configure: error: /bin/sh '../../../../newlib/libc/configure' failed for libc
make[1]: *** [configure-target-newlib] Error 1
make[1]: Leaving directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build'
make: *** [all] Error 2
$ make
...
make[4]: Leaving directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib'
Making all in libc
make[4]: Entering directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib/libc'
make[4]: *** No rule to make target `all'.  Stop.
make[4]: Leaving directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build/arm-elf/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory
`/home/sjackman/src/toolchain/newlib-autotools-branch/_build'
make: *** [all] Error 2

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