From xemacs-m  Sun Jul 20 14:58:13 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA00067
	for <xemacs-beta@xemacs.org>; Sun, 20 Jul 1997 14:58:12 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id NAA15830;
	Sun, 20 Jul 1997 13:01:41 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Vienna: make-docfile fails under NEXTSTEP
References: <199707201629.SAA24237@sol1.cybernet-ag.net>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: Axel Seibert's message of "Sun, 20 Jul 1997 18:29:55 +0200 (MET DST)"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 20 Jul 1997 13:01:40 -0700
Message-ID: <m2204th4rf.fsf@altair.xemacs.org>
Lines: 66
X-Mailer: Gnus v5.4.63/XEmacs 20.3(beta15) - "Berlin"

Axel Seibert <aseibert@cybernet-ag.net> writes:

> Now, that I've got xemacs to copmile & link under NEXTSTEP again, I
> find that it hangs in the call of make-docfile:

> [... ./temacs -batch -l ../prim/make-docfile.el --  -o ../lib-src/DOC ...]

> Loading ../prim/make-docfile.el...
> Loading /usr/local/src/xemacs-20.3-b14/src/../lisp/prim/dumped-lisp.el...
> Spawning make-docfile ...

At this point, make-docfile.el executes the following code:

      (setq exec-path (list (concat default-directory "../lib-src")))

      ;; (locate-file-clear-hashing nil)
      (apply 'call-process-internal
             ;; (concat default-directory "../lib-src/make-docfile")
             "make-docfile"
             nil
             t
             nil
             (append options processed))

      (princ "Spawning make-docfile ...done\n")

> [Hitting Ctrl-C to abort]
> *** Exit 130
> *** `../lib-src/DOC' removed
> Stop.

> lib-src/make-docfile is executable; what can I do to find the bug
> here (this is 20.3 beta14 "Vienna", btw)?

Debugging code at this level is fairly difficult.  I only know brute
force methods of doing it.

One possibility is to munge the code around slightly to call
something other than `../lib-src/make-docfile'.  Change the
"make-docfile" line in the code above to read "make-docfile.sh", and
put an executable shell script named "make-docfile.sh" in lib-src.
It would look something like:

#! /bin/sh

echo make-docfile.sh called > /tmp/md.log
echo $* >> /tmp/md.log
echo calling real executable >> /tmp/md.log
../lib-src/make-docfile $*
echo make-docfile returned >> /tmp/md.log


This will at least tell you how far `call-process-internal' is
getting.

If call-process-internal is having problems, what you want to do is
force a build with a zero length doc file (touch(1)ing it after the
above failure and making ought to do it), then start `xemacs -q
-no-site-file' under the debugger.  Put a break point on
Fcall_process_internal, and manually evaluate the code above with the
(append options processed) replaced with whatever it expands out to
(you should be able to glean this from the /tmp/md.log generated
above).

In another message you mention using Gcc 2.2.2, is that really
correct?  You mean 2.7.2 right?

