all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Tamm <steventamm@mac.com>
Cc: "GNU Emacs Devel (emacs-devel@gnu.org)" <emacs-devel@gnu.org>
Subject: Re: make bootstrap fails with newest CVS sources - 2002-11-25
Date: Tue, 26 Nov 2002 08:21:05 -0800	[thread overview]
Message-ID: <1051720B-015B-11D7-9286-00039390AB82@mac.com> (raw)
In-Reply-To: <762A7BB74D6AD51195EF00B0D0AA16602C3850@STPETE>

In fns.c:Frequire I changed:

       if (nesting > 2)
	error ("Recursive `require' for feature `%s'",
	       SDATA (SYMBOL_NAME (feature)));

to:

       if (nesting > 3)
	error ("Recursive `require' for feature `%s'",
	       SDATA (SYMBOL_NAME (feature)));

This makes the recursive load die in lread.c:Fload (which produces the 
nicer error).  Fload fails if it tries to load the same file more than 
3 times.

I found this out totally by accident.  On darwin/Mac OS X, there is a 
problem with the apple-hacked GCC that it doesn't seem to export the 
structure definitions for Lisp_String and Lisp_Object because of the 
name conflict with the Lisp_Type enum.   So the gdb macros like xsymbol 
didn't work.   After I figured that out I just thought that the problem 
might go away if I allowed more nesting.  I was wrong.

BTW, To get the Lisp_String etc. structures to be loaded correctly into 
gdb on darwin all I did was add this to emacs.c

typedef Lisp_Object XLisp_Object;
typedef struct Lisp_String XLisp_String;
typedef struct Lisp_Symbol XLisp_Symbol;
typedef struct Lisp_Cons   XLisp_Cons;
XLisp_Object dummy1;
XLisp_String dummy2;
XLisp_Symbol dummy3;
XLisp_Cons dummy4;

Do any other platforms have the same problem, or is there some flag I 
can use to make this go away?
-Steven

On Tuesday, November 26, 2002, at 05:49  AM, Ben Key wrote:

>     There appears to be a recursive load (I turned up the recursion 
> check
>     from 2 to 3 in fns.c) to get it to fail in lread.
>
>     Recursive load: "/dev/emacs/lisp/emacs-lisp/cl-macs.el",
>     "/dev/emacs/lisp/button.el", "/dev/emacs/lisp/help-mode.el",
>     "/dev/emacs/lisp/help-fns.el", 
> "/dev/emacs/lisp/emacs-lisp/cl-macs.el",
>     "/dev/emacs/lisp/button.el", "/dev/emacs/lisp/help-mode.el",
>     "/dev/emacs/lisp/help-fns.el", 
> "/dev/emacs/lisp/emacs-lisp/cl-macs.el",
>     "/dev/emacs/lisp/button.el", "/dev/emacs/lisp/help-mode.el",
>     "/dev/emacs/lisp/help-fns.el", 
> "/dev/emacs/lisp/emacs-lisp/cl-macs.el",
>     "/dev/emacs/lisp/button.el", "/dev/emacs/lisp/help-mode.el",
>     "/dev/emacs/lisp/help-fns.el", 
> "/dev/emacs/lisp/emacs-lisp/cl-macs.el",
>     "/dev/emacs/lisp/faces.el", "/dev/emacs/lisp/loadup.el"
>
>     The chain appears to be cl-macs -> help-fns -> help-mode -> button 
> ->
>     cl-macs
>
> How did you get this information?  What did you have to change / 
> enable in
> order to get such a detailed report?  I spent quite some time 
> searching for
> a way to do something similar so I could provide more information when 
> I
> reported the problem, but I failed to find anything.

  reply	other threads:[~2002-11-26 16:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-26 13:49 make bootstrap fails with newest CVS sources - 2002-11-25 Ben Key
2002-11-26 16:21 ` Steven Tamm [this message]
2002-11-28  7:25   ` Richard Stallman
2002-11-28  7:53     ` Steven Tamm
2002-11-30 14:04       ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-11-27  7:01 Gord Peters
2002-11-26 22:33 Ben Key
2002-11-26 22:58 ` Jason Rumney
2002-11-29 15:02   ` Richard Stallman
2002-11-29 19:35     ` Jason Rumney
2002-11-26 15:51 Ben Key
2002-11-28  7:25 ` Richard Stallman
2002-11-25 17:29 Ben Key
2002-11-26  6:10 ` Steven Tamm
2002-11-26  7:22   ` Miles Bader
2002-11-27  7:36   ` 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=1051720B-015B-11D7-9286-00039390AB82@mac.com \
    --to=steventamm@mac.com \
    --cc=emacs-devel@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 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.