This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Building GCC as a cross compiler (target=sparc) on RedHat 6.2


Hi,

I've been using GCC on RedHat for some years now, and am begninning to
delv into the realms of cross compilation....  Compiling GCC as a cross
compiler is proving troublesome, can someone help please?

I downloaded the latest stable binutils (2.10.1), gcc (2.95.2) and glibc
(2.1.3) and untarred them in /export/sources/.  I have built all the
packages sucessfully for the native machine (i686-pc-linux-gnu) and they
worked fine.  Trying to build gcc for a different target for the host
machine is when I run into trouble.

I have sucessfully built binutils for the target platform
(target=sparc-elf) and installed them into /export/usr/, and put
/export/usr/bin at the beginning of my PATH.
When trying to build gcc from a directory outside the source tree I get
the following error after a few minutes of building...

../../gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/export/sources/build-gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/export/sources/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/export/sources/build-gcc/gcc'
make: *** [all-gcc] Error 2

Is there something I've missed?  I also tried to compile a cross gcc for
the h8300-hitatchi-hms, but got the same errors.

Any help would be greatly appreciated,

Many thanks,

Dan.
=====================================================================
Dan Alderman                Software Engineer OneEighty Software Ltd.

OneEighty Software Ltd.     Phone: +44 20 8263 2333
The Lansdowne Building	    Fax: +44 20 8263 6314
2 Lansdowne Road
Croydon                     Email: d.alderman@180sw.com
CR9 2ER
UK

Under the Regulation of Investigatory Powers (RIP) Act 2000 together
with any and all Regulations in force pursuant to the Act One Eighty
Software Ltd reserves the right to monitor any or all incoming or
outgoing communications as provided for under the Act.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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