Problems building 4.2.1 cross compiler for ppc-eabi
Dirk Heinrichs
dirk.heinrichs.ext@nsn.com
Wed Aug 15 08:30:00 GMT 2007
Am Dienstag, 14. August 2007 schrieb ext Kai Ruottu:
> Dirk Heinrichs wrote:
> > I'm trying to build a new cross compiler toolchain for ppc-eabi on
> > Solaris 2.9 using binutils 2.17, newlib 1.15 and GCC 3.4.6 as the host
> > compiler. While compiling binutils went just fine, I have a problem
> > building the cross compiler:
> >
> > /vob/apps/xgnu/gcc-SunOS/./gcc/xgcc -B/vob/apps/xgnu/gcc-SunOS/./gcc/
> > -B/vob/apps/xgnu/SunOS/ppc-eabi/bin/
> > -B/vob/apps/xgnu/SunOS/ppc-eabi/lib/ -isystem
> > /vob/apps/xgnu/SunOS/ppc-eabi/include -isystem
> > /vob/apps/xgnu/SunOS/ppc-eabi/sys-include -c -DHAVE_CONFIG_H -O2 -g -O2
> > -I. -I../../../gcc-4.2.1/libiberty/../include -W -Wall -pedantic
> > -Wwrite-strings -Wstrict-prototypes -Wc++-compat
> > ../../../gcc-4.2.1/libiberty/regex.c -o regex.o
> > ../../../gcc-4.2.1/libiberty/regex.c:51:25: error: sys/types.h: No such
> > file or directory
> > ../../../gcc-4.2.1/libiberty/regex.c:158:25: error: strings.h: No such
> > file or directory
> > ../../../gcc-4.2.1/libiberty/regex.c:196:20: error: ctype.h: No such
> > file or directory
> > [many more output skipped]
>
> Of course you should have the base C target headers available when
> compiling libiberty and libstdc++-v3 !
> But the earlier 'fixincludes' phase needed them too, so it failed
> silently :-(
>
> So just copy the generic newlib headers where those '-isystem' options
> in the log
Yeah, that helped. Thanks a lot.
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: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20070815/a7ef23cf/attachment-0001.sig>
More information about the Gcc-help
mailing list