From owner-freebsd-arch Thu Nov 18 10:47:59 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 9E62115569 for ; Thu, 18 Nov 1999 10:47:47 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id TAA08534 for ; Thu, 18 Nov 1999 19:47:45 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id TAA64139 for freebsd-arch@freebsd.org; Thu, 18 Nov 1999 19:47:45 +0100 (MET) Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 08B9615197 for ; Thu, 18 Nov 1999 10:33:59 -0800 (PST) (envelope-from marcel@scc.nl) Received: from [212.238.132.94] (helo=scones.sup.scc.nl) by post.mail.nl.demon.net with esmtp (Exim 2.12 #1) id 11oWNp-0008bq-00; Thu, 18 Nov 1999 18:34:13 +0000 Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id TAA91479; Thu, 18 Nov 1999 19:33:53 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <38344691.BF54DAD@scc.nl> Date: Thu, 18 Nov 1999 19:33:53 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Terry Lambert Cc: arch@freebsd.org Subject: Re: Cross compilation goals. References: <199911181720.KAA14611@usr02.primenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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