public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Bulding a virgin egcs cross-compiler
@ 1998-09-26 15:59 John Breen
  0 siblings, 0 replies; 3+ messages in thread
From: John Breen @ 1998-09-26 15:59 UTC (permalink / raw)
  To: egcs



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

* Re: Bulding a virgin egcs cross-compiler
  1998-09-25 19:05 John Breen
@ 1998-09-26  8:47 ` Robin Kirkham
  0 siblings, 0 replies; 3+ messages in thread
From: Robin Kirkham @ 1998-09-26  8:47 UTC (permalink / raw)
  To: John Breen; +Cc: crossgcc, egcs

> Then, when it got to libf2c (which I don't even want, but can't figure 
> out how to get rid of), it decided that it needed crt0.o.  It was 
> suggested that I change to the "one tree" build.  Since I had binutils 
> built already, I just linked in the parts of newlib as shown in the 
> crossgcc FAQ.  This seemed to work as far as building newlib (and 
> finding headers), but it still failed for lack of crt0.o.

There is no cross-runtime support for fortran or I think objective-c.  Use

	make LANGUAGES="c c++" all install

At least this worked for egcs-1.0.x. Another approach is to delete the f77
and objc directories before the configure stage.

Cheers

Robin Kirkham			CSIRO Manufacturing Science and Technology
Project Engineer		Locked Bag 9, Preston 3072, Australia
robin.kirkham@cmst.csiro.au	Phone: +61 3 9662-7756  Fax: +61 3 9662-7853

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

* Bulding a virgin egcs cross-compiler
@ 1998-09-25 19:05 John Breen
  1998-09-26  8:47 ` Robin Kirkham
  0 siblings, 1 reply; 3+ messages in thread
From: John Breen @ 1998-09-25 19:05 UTC (permalink / raw)
  To: crossgcc, egcs

I'm having so much trouble, I decided to add the crossgcc list to this, 
since some of the people on there might be using egcs but don't get the 
egcs list.

Last winter, I built a gcc-2.7.2.2 based cross compiler with newlib for 
m68k-elf under Linux.  Other than having to get patches to allow elf 
with m68k, it all went fairly smoothly (I used the separate-tree 
process, not the single-tree).

Now I'm trying to build an egcs-1.1a based cross compiler for the same 
target, under HPUX-10.20.  The headers for m68k-elf are somewhat 
experimental, but everything else is stock.  I've run into a few 
oddities.

First, egcs requires certain system headers during the build.  I copied 
those over from newlib, but it strikes me odd that egcs needed them when 
gcc-2.7.x didn't.

Then, when it got to libf2c (which I don't even want, but can't figure 
out how to get rid of), it decided that it needed crt0.o.  It was 
suggested that I change to the "one tree" build.  Since I had binutils 
built already, I just linked in the parts of newlib as shown in the 
crossgcc FAQ.  This seemed to work as far as building newlib (and 
finding headers), but it still failed for lack of crt0.o.

At this point, I punted and copied over the rtems crt0.c (which looks 
like just a dummy).  Then it failed somewhere down in libf2c because it 
couldn't find autoconf.  I tried renaming the libf2c source directory, 
to see if it would just skip it.  It didn't.  I tried running configure 
again and rebuilding.  It appears to be rebuilding the whole thing from 
scratch, which will probably take the rest of the afternoon.

Has anyone else had this much trouble?  One person suggested privately 
that the compiler is probably built; but until I figure out how to get 
past libf2c, I won't know how much further the build process really has 
to go.
--
John A. Breen
jab3@hotmail.com


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

end of thread, other threads:[~1998-09-26 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-26 15:59 Bulding a virgin egcs cross-compiler John Breen
  -- strict thread matches above, loose matches on Subject: below --
1998-09-25 19:05 John Breen
1998-09-26  8:47 ` Robin Kirkham

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 read-only IMAP folder(s) and NNTP newsgroup(s).