unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ross Biro <ross.biro@mindspring.com>
Cc: 13479@debbugs.gnu.org
Subject: bug#13479: Cross Compiling for ARM
Date: Fri, 18 Jan 2013 09:26:49 -0500	[thread overview]
Message-ID: <jwvsj5z9qph.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAJ56fyho5sZoR2w15_h2KceCcqHf1=6-G=ocSQELCHS_2yF2dw@mail.gmail.com> (Ross Biro's message of "Thu, 17 Jan 2013 14:36:08 -0500")

> 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





  reply	other threads:[~2013-01-18 14:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17 19:36 bug#13479: Cross Compiling for ARM Ross Biro
2013-01-18 14:26 ` Stefan Monnier [this message]
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=jwvsj5z9qph.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=13479@debbugs.gnu.org \
    --cc=ross.biro@mindspring.com \
    /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).