Experimental Physics and Industrial Control System
There is an error in the configuration files for the PowerPC. I never
really investigated this, but could build the cross compiler with the
following recipe:
1. The build process stops during libiberty. But during the
binutils-build a functioning libiberty was already built. So copy the
the libiberty directory from binutils to the gcc directory. But keep the
files choose-temp.c and mkstemps.c and rebuild libiberty.a from hand (ar
rc libiberty.a argv.o ...)
2. again make cross
3. make will configure newly the directory powerpc-wrs-vxworks and tries
to build target specific tool which are not needed. While make is again
configuring delete the directory powerpc-wrs-vxworks and make should
finish building gcc.
4. make install
This looks awkward but it worked for me. I never found the time to find
a fix for the configuration. Maybe s.o. else?
Btw. I can provide an RPM for RH 6.2 (7.) systems based on gcc 2.8.1
and binutils 2.9.1 for PowerPC and the 68k architectures.
Cheers, Markus
shen guobao wrote:
>
> Hello, every one,
> Now I want to build the cross compiler for powerpc in RedHat6.2,
> I can succeed in building binutils.But when I compile the gcc
> like the following steps:
>
> $ ../gcc-2.95.2/configure --target=powerpc-wrs-vxworks \
> --prefix=/home/me/cross/ppc -v \
> --with-headers=/usr/local/cross/ppc/target/h \
> --with-newlib
> $ make all install LANGUAGES="c c++"
>
> Gives me an error:
> ../../../gcc-2.95.2/libiberty/choose-temp.c:38:67: sys/file.h no such file
> or directory
> make: *** [all-target-libiberty] Error 2
>
> But I do that for i386 or m68k as that, it is ok.
> And I find that there are i386 and m68k directory in gcc-2.95.2/gcc/config,
> but I cant find powerpc .
>
> Can anyone give me some advice?
>
> Thanks,
> guobao shen
> SSRF, Shanghai
> 2001-03-05
- References:
- Problem when compiling cross compiler for PowerPC shen guobao
- Navigate by Date:
- Prev:
Problem when compiling cross compiler for PowerPC shen guobao
- Next:
Fortran CA Client Interface Bob Dalesio
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Problem when compiling cross compiler for PowerPC shen guobao
- Next:
Fortran CA Client Interface Bob Dalesio
- Index:
1994
1995
1996
1997
1998
1999
2000
<2001>
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024