unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ross Biro <ross.biro@mindspring.com>
To: 13479@debbugs.gnu.org
Subject: bug#13479: Cross Compiling for ARM
Date: Thu, 17 Jan 2013 14:36:08 -0500	[thread overview]
Message-ID: <CAJ56fyho5sZoR2w15_h2KceCcqHf1=6-G=ocSQELCHS_2yF2dw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1769 bytes --]

I just more or less successfully compiled emacs-24.2 for a Samsung
Chromebook.  I did it by using the chrooted build environment for
chromiumos.  In the process I learned a couple of things.

I used the configuration:

../emacs-24.2/configure  --build=x86_64-pc-linux-gnu
--host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
--with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no
--with-gif=no --with-tiff=no  --without-xml2 --without-gnutls --without-x
--without-dbus --with-crt-dir=/build/arm-generic/usr/lib/

Obviously, I also had to CANNOT_DUMP=yes as well.

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.

2) The lisp and leim directories really want a local copy of emacs to
compile.  Since I didn't have one available in the chrooted environment, I
just used /bin/true.  Suboptimal, but it let the compile complete.  I
didn't see an obvious way to set the path to an external emacs, I just
edited the makefile.

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.

Now, I'm going to try to and some more libraries and do some additional
testing.  If anyone has questions, email me directly.

    Ross

[-- Attachment #2: Type: text/html, Size: 1984 bytes --]

             reply	other threads:[~2013-01-17 19:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17 19:36 Ross Biro [this message]
2013-01-18 14:26 ` bug#13479: Cross Compiling for ARM Stefan Monnier
2013-01-18 17:55   ` martin rudalics
2013-01-18 22:09     ` Ross Biro
2013-01-19 10:11       ` martin rudalics
2013-01-23  3:49         ` Ross Biro
2013-01-23  7:31           ` martin rudalics
2013-01-19  1:18     ` Stefan Monnier
2013-01-24  4:42   ` Jason Rumney
2024-01-10 11:11 ` Stefan Kangas
  -- strict thread matches above, loose matches on Subject: below --
2011-07-28 18:53 bug#9192: Cross-compile " Toon Claes
2024-01-10 11:11 ` bug#13479: Cross Compiling " Stefan Kangas
2024-01-10 11:44   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-10 11:56     ` Stefan Kangas
2024-01-10 13:10       ` Toon Claes via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ56fyho5sZoR2w15_h2KceCcqHf1=6-G=ocSQELCHS_2yF2dw@mail.gmail.com' \
    --to=ross.biro@mindspring.com \
    --cc=13479@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).