linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Howto Cross Compile GCC to run on PPC Platform
@ 2005-10-28 15:55 Jeff Stevens
  2005-10-28 18:51 ` Ryan Wilkins
  2005-10-28 20:51 ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Stevens @ 2005-10-28 15:55 UTC (permalink / raw)
  To: linuxppc-embedded

   I am trying to compile GCC on an x86 platform to
run natively on an embedded PPC platform.  I am able
to compile gcc as a cross compiler (to run on x86),
but can't seem to get it to cross compile gcc (to run
on ppc).  Does anyone know of a good HowTo to do this?
 I'm currently downloading the source distro of ELDK,
so if it's already in there I'll find it, but if there
is one elsewhere online please let me know.

Thanks,
   Jeff Stevens


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Howto Cross Compile GCC to run on PPC Platform
@ 2005-10-28 15:57 Steven Blakeslee
  2005-10-28 19:27 ` Peter Hanson
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Blakeslee @ 2005-10-28 15:57 UTC (permalink / raw)
  To: Jeff Stevens, linuxppc-embedded

> get it to cross compile gcc (to run on ppc).  Does anyone=20
> know of a good HowTo to do this?

Karim Yaghmour's "Building Embedded Linux Systems"
 =20

>  I'm currently downloading the source distro of ELDK, so if=20
> it's already in there I'll find it, but if there is one=20
> elsewhere online please let me know.

Very good, full of features.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Howto Cross Compile GCC to run on PPC Platform
  2005-10-28 15:55 Jeff Stevens
@ 2005-10-28 18:51 ` Ryan Wilkins
  2005-10-28 20:51 ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Ryan Wilkins @ 2005-10-28 18:51 UTC (permalink / raw)
  To: Jeff Stevens; +Cc: linuxppc-embedded

I've used crosstool-0.38 to generate an ARMv5b cross compiler and  
then the script referenced from the link below to create the native  
GCC from the cross compiler.  It should really be not much different  
to make a PPC native platform.  I hope you have a fast machine.. It  
takes a while.

http://sources.redhat.com/ml/crossgcc/2005-08/msg00037.html

Ryan Wilkins

On Oct 28, 2005, at 11:55 AM, Jeff Stevens wrote:

>    I am trying to compile GCC on an x86 platform to
> run natively on an embedded PPC platform.  I am able
> to compile gcc as a cross compiler (to run on x86),
> but can't seem to get it to cross compile gcc (to run
> on ppc).  Does anyone know of a good HowTo to do this?
>  I'm currently downloading the source distro of ELDK,
> so if it's already in there I'll find it, but if there
> is one elsewhere online please let me know.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Howto Cross Compile GCC to run on PPC Platform
  2005-10-28 15:57 Howto Cross Compile GCC to run on PPC Platform Steven Blakeslee
@ 2005-10-28 19:27 ` Peter Hanson
  2005-10-28 19:38   ` Robert P. J. Day
  2005-10-28 20:48   ` Bryan O'Donoghue
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Hanson @ 2005-10-28 19:27 UTC (permalink / raw)
  To: Steven Blakeslee; +Cc: linuxppc-embedded

On 10/28/05, Steven Blakeslee <BlakesleeS@embeddedplanet.com> wrote:
> > get it to cross compile gcc (to run on ppc).  Does anyone
> > know of a good HowTo to do this?
>
> Karim Yaghmour's "Building Embedded Linux Systems"
>
>
> >  I'm currently downloading the source distro of ELDK, so if
> > it's already in there I'll find it, but if there is one
> > elsewhere online please let me know.
>
> Very good, full of features.

My favorite cross tool chain site:

Building and Testing gcc/glibc cross toolchains
http://kegel.com/crosstool/

Look into Canadian crosses.  At the very least you should find the
discussion helpful.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Howto Cross Compile GCC to run on PPC Platform
  2005-10-28 19:27 ` Peter Hanson
@ 2005-10-28 19:38   ` Robert P. J. Day
  2005-10-28 20:48   ` Bryan O'Donoghue
  1 sibling, 0 replies; 7+ messages in thread
From: Robert P. J. Day @ 2005-10-28 19:38 UTC (permalink / raw)
  To: Peter Hanson; +Cc: Steven Blakeslee, linuxppc-embedded

On Fri, 28 Oct 2005, Peter Hanson wrote:

> On 10/28/05, Steven Blakeslee <BlakesleeS@embeddedplanet.com> wrote:
> > > get it to cross compile gcc (to run on ppc).  Does anyone
> > > know of a good HowTo to do this?
> >
> > Karim Yaghmour's "Building Embedded Linux Systems"
> >
> >
> > >  I'm currently downloading the source distro of ELDK, so if
> > > it's already in there I'll find it, but if there is one
> > > elsewhere online please let me know.
> >
> > Very good, full of features.
>
> My favorite cross tool chain site:
>
> Building and Testing gcc/glibc cross toolchains
> http://kegel.com/crosstool/

the Linux From Scratch site also has some useful discussion on
building toolchains:

http://www.linuxfromscratch.org/

rday

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Howto Cross Compile GCC to run on PPC Platform
  2005-10-28 19:27 ` Peter Hanson
  2005-10-28 19:38   ` Robert P. J. Day
@ 2005-10-28 20:48   ` Bryan O'Donoghue
  1 sibling, 0 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2005-10-28 20:48 UTC (permalink / raw)
  To: Peter Hanson; +Cc: Steven Blakeslee, linuxppc-embedded

Peter Hanson wrote:
> On 10/28/05, Steven Blakeslee <BlakesleeS@embeddedplanet.com> wrote:
> 
>>>get it to cross compile gcc (to run on ppc).  Does anyone
>>>know of a good HowTo to do this?
>>
>>Karim Yaghmour's "Building Embedded Linux Systems"
>>
>>
>>
>>> I'm currently downloading the source distro of ELDK, so if
>>>it's already in there I'll find it, but if there is one
>>>elsewhere online please let me know.
>>
>>Very good, full of features.
> 
> 
> My favorite cross tool chain site:
> 
> Building and Testing gcc/glibc cross toolchains
> http://kegel.com/crosstool/
> 
> Look into Canadian crosses.  At the very least you should find the
> discussion helpful.

I'd use the ELDK if I were you as an x86 hosted cross compiler, if only 
because it makes sense in terms of compiling bootloader & kernel with 
the same toolchain. Also, if memory serves the ELDK comes with a powerpc 
gcc in the supplied ppc root file system.

Alternatively : you can use the uClibc toolchain, to generate a similar 
setup.

Here's a script I've thrown together since I sometimes need to generate 
gcc toolchains easily for various targets. I've tested it with arm and 
powerpc and because, it might be useful to switch between c libraries. ymmv.
http://netsoc.dit.ie/~deckard/software/build_compiler.sh. This script is 
based on some excellent documents that Red Hat produced.

http://sources.redhat.com/ml/crossgcc/2005-08/msg00114/l-cross-ltr.pdf

-- 
"Caveat Emptor" -- James T. Kirk, in no such episode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Howto Cross Compile GCC to run on PPC Platform
  2005-10-28 15:55 Jeff Stevens
  2005-10-28 18:51 ` Ryan Wilkins
@ 2005-10-28 20:51 ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2005-10-28 20:51 UTC (permalink / raw)
  To: Jeff Stevens; +Cc: linuxppc-embedded

In message <20051028155510.17662.qmail@web33413.mail.mud.yahoo.com> you wrote:
>    I am trying to compile GCC on an x86 platform to
> run natively on an embedded PPC platform.  I am able
> to compile gcc as a cross compiler (to run on x86),
> but can't seem to get it to cross compile gcc (to run
> on ppc).  Does anyone know of a good HowTo to do this?
>  I'm currently downloading the source distro of ELDK,
> so if it's already in there I'll find it, but if there

It is.

> is one elsewhere online please let me know.

Note that released versions of the ELDK (up  to  and  including  ELDK
3.1.1)  require  a  RedHat-7.3  build  host. Don't waste your time on
trying later Linux distros ;-)

Current top-of-tree in CVS should build under Fedora Core 4; but this
code has not been released yet - it is beta quality only.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"Any excuse will serve a tyrant."                             - Aesop

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-28 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 15:57 Howto Cross Compile GCC to run on PPC Platform Steven Blakeslee
2005-10-28 19:27 ` Peter Hanson
2005-10-28 19:38   ` Robert P. J. Day
2005-10-28 20:48   ` Bryan O'Donoghue
  -- strict thread matches above, loose matches on Subject: below --
2005-10-28 15:55 Jeff Stevens
2005-10-28 18:51 ` Ryan Wilkins
2005-10-28 20:51 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).