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#13479: Cross Compiling for ARM Date: Fri, 18 Jan 2013 09:26:49 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358519245 24636 80.91.229.3 (18 Jan 2013 14:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2013 14:27:25 +0000 (UTC) Cc: 13479@debbugs.gnu.org To: Ross Biro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 18 15:27:39 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TwCuw-0007ER-Td for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jan 2013 15:27:39 +0100 Original-Received: from localhost ([::1]:59582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwCug-0007K4-7a for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jan 2013 09:27:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwCud-0007Iw-CW for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2013 09:27:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwCuc-0007D6-0y for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2013 09:27:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwCub-0007D0-UU for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2013 09:27:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TwCvL-00047M-RA for bug-gnu-emacs@gnu.org; Fri, 18 Jan 2013 09:28:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Jan 2013 14:28:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13479 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13479-submit@debbugs.gnu.org id=B13479.135851926315800 (code B ref 13479); Fri, 18 Jan 2013 14:28:03 +0000 Original-Received: (at 13479) by debbugs.gnu.org; 18 Jan 2013 14:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:38273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwCuz-00046m-Ut for submit@debbugs.gnu.org; Fri, 18 Jan 2013 09:27:42 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:10423) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwCuv-00046c-JV for 13479@debbugs.gnu.org; Fri, 18 Jan 2013 09:27:38 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkGAG6Zu09FpZpV/2dsb2JhbABEgXuyFoEIghUBAQQBJy8jBQsLNBIUGA0kiBwFugmQRAOIQppxgViDBw X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212864550" Original-Received: from 69-165-154-85.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.85]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 18 Jan 2013 09:26:49 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8A4AA59550; Fri, 18 Jan 2013 09:26:49 -0500 (EST) In-Reply-To: (Ross Biro's message of "Thu, 17 Jan 2013 14:36:08 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:69977 Archived-At: > Obviously, I also had to CANNOT_DUMP=yes as well. That's a problem that would need to be solved, of course, because there are invariably more bugs in this mode of operation. > 1) It doesn't look like emacs has a concept of a BUILDCC. I like to set CC > to the cross compiler since that seems to be what most things need. > However make-docfile and test-distrib need to be built with the local > compiler. Usually the path to the local compiler is stored in BUILDCC. > I just changed the $(CC) to $(BUILDCC) in the makefile for those two file and > everything compiled ok. We could incorporate this part of your changes, I think. > 2) The lisp and leim directories really want a local copy of Emacs to > compile. Actually, any random local copy probably won't cut it, it needs to be sufficiently uptodate. In the worst case, it needs to be exactly the version you're compiling. What would need to happen is to more clearly separate the src/bootstrap-emacs (which should be built with BUILDCC) from the src/emacs (built with CC), so that you can run the src/bootstrap-emacs to compile the lisp and leim subdirectories. An alternative is of course to use an emulator to run src/emacs and/or src/bootstrap-emacs. > 3) Now, a real bug. With an undumpped emacs, > window__resize_root_window_vertically is called before it's defined. Even > putting if (initialzed) before the call didn't help. I had to put if (!EQ > (XSYMBOL (Qwindow_resize_root_window_vertically)->function, Qunbound)) > before the two calls to call2 (Qwindow_resize_root_window_vertically, in > window.c. Most/all calls to Elisp from C should protect themselves with calls to Ffboundp or similar, indeed. Martin, could you take care of that? Stefan