Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 1999 19:33:53 +0100
From:      Marcel Moolenaar <marcel@scc.nl>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        arch@freebsd.org
Subject:   Re: Cross compilation goals.
Message-ID:  <38344691.BF54DAD@scc.nl>
References:  <199911181720.KAA14611@usr02.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> 
> > My history of thoughts (in no particular order):
> >
> > The sigset_t changes revealed 2 problems:
> > 1) I wasn't able to at least compile any changes I made to the Alpha
> >    port, because I didn't have an Alpha during that time,
> > 2) makeworld broke because the newly compiled tools were made against
> >    the new sigset_t while the system wasn't using it yet.
> >
> > If we fix 1), then 2) is gone too, right? right!
> 
> One non-obvious issue, until you try to compile the system with a
> different GCC or EGCS compiler than the default, is that the .mk
> files override the correct compiler defaults with incorrect
> system defaults for include and compiler library paths when
> DESTDIR is set.  Obviously, you have to set this for a proper
> cross-compile.

Correct. I don't like the overloading of DESTDIR, but if set properly
during the different stages/phases of the cross-build, then there's no
problem and "fixing" the oberloading would be too costly for the gain
you'll get (been there, done that :-). We basicly have to create
different environments for the different stages and keep the stages well
divided.

> Another issue is that the GCC/EGCS code "front ending" is not
> very well integrated; you end up with huge amounts of installed
> headers, even if you are cross-compiling the same OS on another
> platform.

I'm not sure I understand your point. Do you mean that installing the
headers in the object-tree should be avoided if they are the same as the
ones installed on the host? Or that different architectures can share
the same set of headers?

The first case probably takes as much time to detect as it takes to
installing the headers. And the space saved is probably not worth all
the trouble.

The second case is not possible, so I assume you don't actually ment
that :-)

-- 
Marcel Moolenaar                        mailto:marcel@scc.nl
SCC Internetworking & Databases           http://www.scc.nl/
The FreeBSD project                mailto:marcel@FreeBSD.org




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38344691.BF54DAD>