Problem building newlib 1.15.0 for ppc-eabi
Dirk Heinrichs
dirk.heinrichs.ext@nsn.com
Wed Aug 15 10:08:00 GMT 2007
Hi,
I'm trying to build a new cross compiler toolchain for ppc-eabi, using
binutils 1.17, gcc 4.2.1 and newlib 1.15.0. While building the first two
went fine, configuring newlib fails:
CC=ppc-eabi-gcc ../newlib-1.15.0/configure --prefix=/vob/apps/xgnu/newlib --host=ppc-eabi
creating cache ./config.cache
checking host system type... powerpc-unknown-eabi
checking target system type... powerpc-unknown-eabi
checking build system type... powerpc-unknown-eabi
checking for a BSD compatible install... /vob/apps/gnu/SunOS/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... ppc-eabi-gcc
checking whether the C compiler (ppc-eabi-gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
In config.log I find the following:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:614: checking host system type
configure:635: checking target system type
configure:653: checking build system type
configure:708: checking for a BSD compatible install
configure:761: checking whether ln works
configure:785: checking whether ln -s works
configure:1853: checking for gcc
configure:1966: checking whether the C compiler (ppc-eabi-gcc ) works
configure:1982: ppc-eabi-gcc -o conftest conftest.c 1>&5
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/../../../../ppc-eabi/bin/ld:
warning: cannot find entry symbol _start; defaulting to 01800074
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o): In function
`__eabi':
/vob/apps/xgnu/gcc-SunOS/gcc/eabi.S:232: undefined reference to `__init'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x8):
undefined reference to `__SDATA_START__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0xc):
undefined reference to `__SBSS_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x14):
undefined reference to `__SDATA2_START__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x18):
undefined reference to `__SBSS2_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x1c):
undefined reference to `__GOT_START__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x28):
undefined reference to `__GOT_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x2c):
undefined reference to `__GOT2_START__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x30):
undefined reference to `__GOT2_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x34):
undefined reference to `__FIXUP_START__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x38):
undefined reference to `__FIXUP_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x3c):
undefined reference to `__CTOR_LIST__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x40):
undefined reference to `__CTOR_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x44):
undefined reference to `__DTOR_LIST__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x48):
undefined reference to `__DTOR_END__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x4c):
undefined reference to `__EXCEPT_START__'
/vob/apps/xgnu/SunOS/lib/gcc/ppc-eabi/4.2.1/libgcc.a(eabi.o):(.got2+0x50):
undefined reference to `__EXCEPT_END__'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1977 "configure"
#include "confdefs.h"
main(){return(0);}
Any ideas what I could do to fix this? Build host is Solaris 2.9.
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/newlib/attachments/20070815/0851e7af/attachment.sig>
More information about the Newlib
mailing list