🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

7 total messages Started by Ketil Z Malde Thu, 04 Feb 1999 00:00
gcc for embedded PowerPC?
#23041
Author: Ketil Z Malde
Date: Thu, 04 Feb 1999 00:00
20 lines
1199 bytes
Hi,

not entirely sure how appropriate this is here, please feel free to
point out more relevant forums.

However, I have a compiler that produces .o files that the "file"
utility identifies as:

	ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1

Now, for various reasons, I'd like to use GCC instead, can it be used
as a cross compiler to generate this kind of object code?

Will I have to link etc. with existing tools?

Much obliged,
kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants
Re: gcc for embedded PowerPC?
#23042
Author: Ketil Z Malde
Date: Fri, 05 Feb 1999 00:00
18 lines
1411 bytes
OK, thanks to the couple of people who responded to this.  I have
gotten to the point that cross-binutils are compiled, but compiling
egcs gets messed up in the objc directory.  Now, that's not really a
problem, since I don't really want Objective C anyway, but how do I
tell configure to ignore it?  --without or --disable seems to just
accept any random suffix withou a hitch, but doesn't seem to do
anything if I append objc either.  What are the magic words, are there 
any? 

The docs don't seem to explain how to do this.

PS: gnu.gcc seems awfully undertrafficked - is there another group I
should know about?

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants
Re: gcc for embedded PowerPC?
#23043
Author: Toon Moene
Date: Fri, 05 Feb 1999 00:00
26 lines
1954 bytes
Ketil Z Malde wrote:

[ Hmm, not very relevant to comp.arch, but anyway ... ]

> OK, thanks to the couple of people who responded to this.  I have
> gotten to the point that cross-binutils are compiled, but compiling
> egcs gets messed up in the objc directory.  Now, that's not really a
> problem, since I don't really want Objective C anyway, but how do I
> tell configure to ignore it?  --without or --disable seems to just
> accept any random suffix withou a hitch, but doesn't seem to do
> anything if I append objc either.  What are the magic words, are there
> any?

Sorry, this only works with recent snapshots.

> PS: gnu.gcc seems awfully undertrafficked - is there another group I
> should know about?

Post the question to egcs@egcs.cygnus.com - the official egcs mailing
list.

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com
Re: gcc for embedded PowerPC?
#23044
Author: Ketil Z Malde
Date: Fri, 05 Feb 1999 00:00
15 lines
1217 bytes
Toon Moene <toon@moene.indiv.nluug.nl> writes:

> [ Hmm, not very relevant to comp.arch, but anyway ... ]

Yeah, I know.  I'll stop now.

> Sorry, this only works with recent snapshots.

Yep, but I found the patch for gcc-2.8.1, so I'm trying with that.  It 
does require something called "autoheader", though, which I have no
idea what is.

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants
Re: gcc for embedded PowerPC?
#23045
Author: Richard Kadrmas
Date: Fri, 05 Feb 1999 00:00
31 lines
1777 bytes

Ketil Z Malde wrote:

> Hi,
>
> not entirely sure how appropriate this is here, please feel free to
> point out more relevant forums.
>
> However, I have a compiler that produces .o files that the "file"
> utility identifies as:
>
>         ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1
>
> Now, for various reasons, I'd like to use GCC instead, can it be used
> as a cross compiler to generate this kind of object code?
>
> Will I have to link etc. with existing tools?
>
> Much obliged,
> kzm
> --
> If I haven't seen further, it is by standing in the footprints of giants

Yes it can be used to cross compile for the powerpc.  We have a product we
purchased that runs on a Motorola MPC860 which software was compiled
on a Sun Solaris system.  I am just getting started on trying to set up a
similar
system to cross compile for the 860 on a Linux system using GCC-2.8.1.
I have built the Makefile using configure but I am getting some errors for
missing header files (reg_types.h, regex.h and lc_core.h).
Re: gcc for embedded PowerPC?
#23046
Author: D. Henkel-Wallace
Date: Fri, 05 Feb 1999 00:00
13 lines
1097 bytes
On Fri, 05 Feb 1999 16:18:14 -0500, Richard Kadrmas
<rkadrmas@empire.net> wrote:

   
   
   Ketil Z Malde wrote:
   
   I am just getting started on trying to set up a
   similar system to cross compile for the 860 on
   a Linux system using GCC-2.8.1.

Eww!  Use egcs (http://egcs.cygnus.com) which will generate _much_
better code for the PPC.
Re: gcc for embedded PowerPC?
#23047
Author: Michael Meissner
Date: Sat, 06 Feb 1999 00:00
25 lines
1733 bytes
Ketil Z Malde <ketil@ii.uib.no> writes:

> OK, thanks to the couple of people who responded to this.  I have
> gotten to the point that cross-binutils are compiled, but compiling
> egcs gets messed up in the objc directory.  Now, that's not really a
> problem, since I don't really want Objective C anyway, but how do I
> tell configure to ignore it?  --without or --disable seems to just
> accept any random suffix withou a hitch, but doesn't seem to do
> anything if I append objc either.  What are the magic words, are there 
> any? 
> 
> The docs don't seem to explain how to do this.

In recent egcs snapshots (but not 1.1.1) include the --enable-languages option:

	--enable-languages="c c++"

Another alternative is to delete the objc directory.  What is failing is
objective C wants to use the standard header files like stdio.h, which you
haven't created for the target.

-- 
Michael Meissner, Cygnus Solutions (Massachusetts office)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA
meissner@cygnus.com,	617-354-5416 (office),	617-354-7161 (fax)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads