From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9192: Cross-compile for ARM Date: Tue, 02 Aug 2011 12:21:40 -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 Content-Transfer-Encoding: 7BIT X-Trace: dough.gmane.org 1312302166 7217 80.91.229.12 (2 Aug 2011 16:22:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 16:22:46 +0000 (UTC) Cc: 9192@debbugs.gnu.org, Andreas Schwab To: Toon Claes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 18:22:39 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 1QoHjq-0004wR-Bt for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2011 18:22:38 +0200 Original-Received: from localhost ([::1]:60836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoHjp-0004F3-Pi for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2011 12:22:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoHjm-0004El-I6 for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 12:22:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QoHjl-0002Xe-Bu for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 12:22:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QoHjl-0002Xa-7F for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2011 12:22:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QoHkD-00047I-M4; Tue, 02 Aug 2011 12:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Aug 2011 16:23:01 +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.131230214315781 (code B ref 9192); Tue, 02 Aug 2011 16:23:01 +0000 Original-Received: (at 9192) by debbugs.gnu.org; 2 Aug 2011 16:22:23 +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 1QoHja-00046S-K3 for submit@debbugs.gnu.org; Tue, 02 Aug 2011 12:22:22 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoHjY-00046L-BY for 9192@debbugs.gnu.org; Tue, 02 Aug 2011 12:22:21 -0400 Original-Received: from ceviche.home ([70.80.89.35]) by vl-mo-mrz23.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTP id <0LPB007RW6QM3030@vl-mo-mrz23.ip.videotron.ca> for 9192@debbugs.gnu.org; Tue, 02 Aug 2011 12:20:46 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id 7008C660CF; Tue, 02 Aug 2011 12:21:40 -0400 (EDT) In-reply-to: <71E1048F-71BD-42D6-AD17-086EEA0DB76D@iotcl.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 02 Aug 2011 12:23:01 -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:49810 Archived-At: > Is it a 'feature' or is it a bug? 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, 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). 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 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). Stefan