all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kuehling <dvdkhlng@gmx.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Some OpenWrt port related problems
Date: Tue, 28 Dec 2010 22:12:48 +0100	[thread overview]
Message-ID: <87lj39y52n.fsf@snail.Pool> (raw)
In-Reply-To: <jwvr5d1lmo6.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 28 Dec 2010 14:36:39 -0500")

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

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> OpenWrt packages use cross-compilation, so Emacs is used in a NO_DUMP
>> configuration, loading loadup.el every time it starts.

> That's unfortunate, as this is completely untested and unsupported.  I
> expect you'll bump into further problems.  Maybe a "simpler" solution
> is to setup a simulation environment where you could perform the dump.

Well unfortunate is that Emacs' Makefiles make a number of assumptions
that are completely incompatible with cross-compilation :) Like
compiling and executing the resulting program in a single Makefile rule.
The dumping is even more hackier.  Didn't even know that such a
procedure is possible on current operating systems :)

The problem with a simulated environment, that you're suggesting, is,
that OpenWrt packages (or rather the recipies used to compile a package)
need to be self-contained inside OpenWrt.  If I needed a target system
emulator I'd have to write a recipie how to compile one on any host and
add a build-dependency to it.  Quite some work, and maybe not even
possible in a completely stable way.  Qemu user-space emulation for the
MIPS32 target seems currently broken (at least it doesn't work for me),
so I'd even need to write a rule for how to generate a root-filesystem
to get into a simulated environment.  And that would have to work for
every of the target CPUs that OpenWrt supports :/

>> This causes at least one problem with environment variables, that I
>> already fixed [3].

> Not sure if that's the right fix, but indeed there's a bug there that
> shows up when using NO_DUMP.  Make sure you record it via M-x
> report-emacs-bug.

Going to do that eventually.

>> Now I'm hitting another problem when using org-mode: File mode
>> specification error: (wrong-type-argument stringp (require
>> . t-mouse)) After some debugging this looks like being caused by
>> variable load-history containing the element: ((require . t-mouse))
>> This looks a little broken, since all other elements have a
>> filename-string in front of that cons cell, e.g.:

> That one doesn't remind me of anything.

Hmm, so maybe related to the CANNOT_DUMP config (note: it's not NO_DUMP,
my mistake).

>> Anybody knows who's fault that error is anyways?

> I don't.

>> is ((require . t-mouse)) a valid entry?

> No.

>> Is eval-after-load broken?

> Not that I know.

>> How does that entry get inserted into load-history in the first
>> place?

> That's the question, yes.  But no, I have no idea how this can happen.

Ok, thanks for the answers.  Then it might be time to do some more
in-depth debugging to see where in loadup.el that entry originates.

cheers,

David
-- 
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2010-12-28 21:12 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-28 10:15 Some OpenWrt port related problems David Kuehling
2010-12-28 19:36 ` Stefan Monnier
2010-12-28 21:12   ` David Kuehling [this message]
2010-12-28 22:02     ` Stefan Monnier
2010-12-29  9:37       ` David Kuehling
2010-12-29  7:47     ` Richard Stallman
2010-12-29  9:28       ` David Kuehling
2010-12-30  4:08         ` Ken Raeburn
2011-01-01 14:20           ` David Kuehling
2011-01-01 15:06             ` Andreas Schwab
2011-01-01 15:34             ` Eli Zaretskii
2011-01-02  1:35               ` Ken Raeburn
2011-01-02 13:53                 ` David Kuehling
2011-01-02 14:44                   ` Stefan Monnier
2011-01-02 14:55                     ` David Kuehling
2011-01-02 20:35                   ` Ken Raeburn
2011-01-02 21:12                     ` David Kuehling
2011-01-03  9:32                       ` David Kuehling
2010-12-30 16:06         ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=87lj39y52n.fsf@snail.Pool \
    --to=dvdkhlng@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.