Re: Problems building 4.2.1 cross compiler for ppc-eabi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux