From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: bootstrap compiles C files twice Date: Tue, 03 Jun 2008 09:14:57 -0700 Message-ID: <200806031614.m53GEvnp022105@sallyv1.ics.uci.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212509841 32704 80.91.229.12 (3 Jun 2008 16:17:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 16:17:21 +0000 (UTC) Cc: Glenn Morris , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 03 18:18:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3ZCq-0007OR-L8 for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 18:17:52 +0200 Original-Received: from localhost ([127.0.0.1]:52405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3ZC4-0000CU-6K for ged-emacs-devel@m.gmane.org; Tue, 03 Jun 2008 12:17:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3ZBz-0000CP-NT for emacs-devel@gnu.org; Tue, 03 Jun 2008 12:16:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3ZBx-0000Bq-2A for emacs-devel@gnu.org; Tue, 03 Jun 2008 12:16:59 -0400 Original-Received: from [199.232.76.173] (port=55482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3ZBw-0000Bn-UQ for emacs-devel@gnu.org; Tue, 03 Jun 2008 12:16:56 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:38869) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1K3ZBq-0004J5-Hf; Tue, 03 Jun 2008 12:16:50 -0400 X-ICS-MailScanner-Watermark: 1213114499.86238@X7CepbKuudDCxCEPdLtvbQ Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m53GEvnp022105; Tue, 3 Jun 2008 09:14:58 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 03 Jun 2008 01:26:23 -0400") Original-Lines: 26 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:98307 Archived-At: Stefan Monnier writes: > > Can anyone explain why `mostlyclean' is called after compiling the > > lisp files? Things seem to work fine (and obviously more quickly) > > without doing this. > > I do not have an answer for that. I was also surprised when this was > done (when I originally worked on the bootstrap code to remove the .elc > files from the CVS repository, I didn't force regeneration of the .o > and temacs file and I cannot remember any bug report about it). > > But recently someone mentioned the issue of cross-compiling and in this > context it makes sense: the bootstrap-emacs (and its temacs) should be > compiled for the host platform so we can generate the .elc files, and > then the final `emacs' (and its `temacs') need to be compiled for the > target platform. You need to rerun configure if bootstrap-emacs is built for the host and then build emacs for the target, so removing the object files is probably not related to that ... > Not that cross-compiling is a common occurrence (it's definitely not > supported out-of-the-box for example). Meaning that it does not work at all :-)