bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is hurd buildable/runnable with gcc 3.2 cross compiler?


From: Marcus Brinkmann
Subject: Re: Is hurd buildable/runnable with gcc 3.2 cross compiler?
Date: Fri, 4 Oct 2002 09:20:30 +0200
User-agent: Mutt/1.4i

On Wed, Oct 02, 2002 at 09:00:00AM -0700, Burton Samograd wrote:
> > But you don't need a cross compiler at all for gnumach, if you have gcc for
> > any i386 target.
> > 
> 
> So, just to make sure I've got this right, I can build all of gnumach and hurd
> under my linux system (gentoo using gcc 3.2) and then install to my hurd
> partition without any problems?

I was not talking about the Hurd.

> I was under the assumption that all the cross
> compiler talk was due to different binary object formats, but after a bit of
> thought I came to the realization that gnumach/hurd simply uses elf files so
> there shouldn't be any difference as long as the build files are setup right.
> Am I wrong thinking this?

A definitive yesno.  As far as it comes to GNU Mach, it is a statically
linked ELF object started by GRUB.  The build requires some functions to
come from libc.a (strcpy, and such stuff).  But those are not system-specific
(only processor specific).  Thus you can build it on any GNU system with the
same CPU.

The Hurd is quite different (as well as any other application).  We
definitely do use the same object format.  We use the same toolchain.  So
all the ld, as, gcc, etc, are directly usable.  Still, we use different
headers, libraries, and link programs slightly differently.  Look into the
make-cross script to figure out how to set up a light cross compiler (it's
really only a specs file for gcc and a wrapper script).

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]