From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#9192: Cross-compile for ARM Date: Mon, 29 Aug 2011 23:38:46 -0400 Message-ID: References: <34DD1295-A6F6-4757-9828-BC61D23E2D8E@iotcl.net> <71E1048F-71BD-42D6-AD17-086EEA0DB76D@iotcl.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1314675549 11607 80.91.229.12 (30 Aug 2011 03:39:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2011 03:39:09 +0000 (UTC) Cc: Toon Claes , 9192@debbugs.gnu.org, Andreas Schwab To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 05:39:05 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QyFAG-0004uK-RY for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Aug 2011 05:39:04 +0200 Original-Received: from localhost ([::1]:50484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyFAD-0005oL-M5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Aug 2011 23:39:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyFAA-0005oG-VR for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2011 23:38:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyFA9-0000AG-QJ for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2011 23:38:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyFA9-0000AA-NT for bug-gnu-emacs@gnu.org; Mon, 29 Aug 2011 23:38:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QyFD8-0000CY-9t; Mon, 29 Aug 2011 23:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2011 03:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9192 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9192-submit@debbugs.gnu.org id=B9192.1314675715761 (code B ref 9192); Tue, 30 Aug 2011 03:42:02 +0000 Original-Received: (at 9192) by debbugs.gnu.org; 30 Aug 2011 03:41:55 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyFD1-0000CE-7Z for submit@debbugs.gnu.org; Mon, 29 Aug 2011 23:41:55 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QyFCy-0000C7-Sm for 9192@debbugs.gnu.org; Mon, 29 Aug 2011 23:41:53 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QyF9y-0005DX-TY; Mon, 29 Aug 2011 23:38:46 -0400 In-Reply-To: (Stefan Monnier's message of "Tue, 02 Aug 2011 12:21:40 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 29 Aug 2011 23:42:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50416 Archived-At: Stefan Monnier writes: >> Is it a 'feature' or is it a bug? BTW, the trunk should be a bit better now than the 23.x release in terms of building. > It's not a feature, but it's not a bug we find very important to fix. > IOW I'd be happy to accept patches which make cross-compiling easier, > but I won't write them myself and I would only accept them if they're > clean enough. > > This said, I do remember someone posting on this list about a similar > issue and making actual progress in this direction. And if you want to > try it, here are some things I know will need to be solved: > - We build a few programs used only during compilation: prefix-args, prefix-args has been removed from the trunk. > make-docfile, probably a few more (can't remember test-distrub, but > if we build such a thing, then it's most likely in the set as well). We should just remove test-distrib.c ASAP, it doesn't seem that useful anymore. > You'll have to change the Makefile to compile those for the host > rather than for the target. > - The Elisp files in lisp and leim need to be compiled by Emacs, so the > src/bootstrap-emacs should be built for the host rather than for > the target. > - You'll either want to build without dumping (i.e. set CANNOT_DUMP), or "temacs" now runs as expected, it should work better than setting CANNOT_DUMP. It starts up a bit slower, but it is just as usable as a dumped emacs after that. > you'll want to split the dump step since it needs to be run on the > target (but in either case you can do the dump for src/bootstrap-emacs > since that runs on the host). Builds using CANNOT_DUMP tend to have > various misfeatures because this is basically never used and hence > doesn't get much/any testing. > > Maybe the easiest way to approach the problem is to first do a normal > build on the host (which builds src/bootstrap-emacs and compiles all the > Elisp files), then "rm src/*.o", reconfigure for the target and compile > src/temacs (and maybe afterwards do the `dump' on the target).