unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make bootstrap fails
@ 2002-11-08 20:04 Kai Großjohann
  2002-11-09 13:17 ` Henrik Enberg
  0 siblings, 1 reply; 48+ messages in thread
From: Kai Großjohann @ 2002-11-08 20:04 UTC (permalink / raw)


This is the error I see:

/----
| Compiling /home/kai/work/gnu/emacs/lisp/emacs-lisp/byte-opt.el
| 
| In byte-optimize-form-code-walker:
| byte-opt.el:525:38:Warning: Function `compiler-macroexpand' from cl package
|     called at runtime
| Wrote /home/kai/work/gnu/emacs/lisp/emacs-lisp/byte-opt.elc
| Compiling /home/kai/work/gnu/emacs/lisp/emacs-lisp/bytecomp.el
| Wrote /home/kai/work/gnu/emacs/lisp/emacs-lisp/bytecomp.elc
| Compiling /home/kai/work/gnu/emacs/lisp/subr.el
| Wrote /home/kai/work/gnu/emacs/lisp/subr.elc
| Compiling /home/kai/work/gnu/emacs/lisp/progmodes/cc-mode.el
| >>Error occurred processing /home/kai/work/gnu/emacs/lisp/progmodes/cc-mode.el: Symbol's function definition is void ((char-table-p))
| make[1]: *** [compile] Error 1
| make[1]: Leaving directory `/export/home/kai/work/gnu/emacs/lisp'
| make: *** [bootstrap] Error 2
\----

I tried to find the offending use of char-table-p, but couldn't.

kai
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2002-11-08 20:04 Kai Großjohann
@ 2002-11-09 13:17 ` Henrik Enberg
  2002-11-11 10:19   ` Richard Stallman
  0 siblings, 1 reply; 48+ messages in thread
From: Henrik Enberg @ 2002-11-09 13:17 UTC (permalink / raw)
  Cc: emacs-devel

kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> | Compiling /home/kai/work/gnu/emacs/lisp/progmodes/cc-mode.el
> | >>Error occurred processing /home/kai/work/gnu/emacs/lisp/progmodes/cc-mode.el: Symbol's function definition is void ((char-table-p))

John Wiegley complained about this yesterday, which I followed up to,
and I also submitted a bug-report, but they seem to have been lost in
the space-time continuum.  Anyway, here's what I found.

It seems like `cc-bytecomp-defun' generates bad code.  I'm not really
sure how it's supposed to work though.  It might not even be worth the
effort avoid warnings in Emacs 19.

If you comment out the line that reads (cc-bytecomp-defun char-table-p)
in cc-vars.el, bootstrapping will work.

-- 
Booting... /vmemacs.el

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2002-11-09 13:17 ` Henrik Enberg
@ 2002-11-11 10:19   ` Richard Stallman
  2002-11-12 18:29     ` Henrik Enberg
  2002-11-14 23:38     ` Kenichi Handa
  0 siblings, 2 replies; 48+ messages in thread
From: Richard Stallman @ 2002-11-11 10:19 UTC (permalink / raw)
  Cc: kai.grossjohann, emacs-devel

We should certainly delete all the cc-bytecomp-defun stuff.  It is an
ugly approach.  However, that code has worked for years, and it has
not been changed, so this must imply a compiler bug somewhere else.
We should investigate that and fix it before deleting
cc-bytecomp-defun.

I was unable to make this fail by recompiling cc-bytecomp and cc-vars.
I can't afford to do a bootstrap--too many meetings today.  But if you
byte-compile-debug to t, you should be able to get a backtrace.  Very
likely investigating that backtrace will make considerable progress.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2002-11-11 10:19   ` Richard Stallman
@ 2002-11-12 18:29     ` Henrik Enberg
  2002-11-14 12:15       ` Richard Stallman
  2002-11-14 23:38     ` Kenichi Handa
  1 sibling, 1 reply; 48+ messages in thread
From: Henrik Enberg @ 2002-11-12 18:29 UTC (permalink / raw)
  Cc: kai.grossjohann, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> I was unable to make this fail by recompiling cc-bytecomp and cc-vars.
> I can't afford to do a bootstrap--too many meetings today.  But if you
> byte-compile-debug to t, you should be able to get a backtrace.  Very
> likely investigating that backtrace will make considerable progress.

  I was unable to get a better backtrace.  Both bootstrapping with
  byte-compile-debug globally set to t and just for the cc-*.el files
  produce the same terse error message.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2002-11-12 18:29     ` Henrik Enberg
@ 2002-11-14 12:15       ` Richard Stallman
  0 siblings, 0 replies; 48+ messages in thread
From: Richard Stallman @ 2002-11-14 12:15 UTC (permalink / raw)
  Cc: kai.grossjohann, emacs-devel

      I was unable to get a better backtrace.  Both bootstrapping with
      byte-compile-debug globally set to t and just for the cc-*.el files
      produce the same terse error message.

Were you using batch mode?  Can you do it interactively
and get the same error?

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2002-11-11 10:19   ` Richard Stallman
  2002-11-12 18:29     ` Henrik Enberg
@ 2002-11-14 23:38     ` Kenichi Handa
  2002-11-15 14:24       ` Stefan Monnier
  1 sibling, 1 reply; 48+ messages in thread
From: Kenichi Handa @ 2002-11-14 23:38 UTC (permalink / raw)
  Cc: henrik, kai.grossjohann, emacs-devel

As it seems that this mail was not delivered correctly, I'll
resend it.  I'm sorry if you get it twice.

In article <E18BBfj-0002Fo-00@fencepost.gnu.org>, Richard Stallman <rms@gnu.org> writes:
> We should certainly delete all the cc-bytecomp-defun stuff.  It is an
> ugly approach.  However, that code has worked for years, and it has
> not been changed, so this must imply a compiler bug somewhere else.
> We should investigate that and fix it before deleting
> cc-bytecomp-defun.

> I was unable to make this fail by recompiling cc-bytecomp and cc-vars.

It's because the error happens only while bootstrapping.

> I can't afford to do a bootstrap--too many meetings today.  But if you
> byte-compile-debug to t, you should be able to get a backtrace.  Very
> likely investigating that backtrace will make considerable progress.

I think I find the reason of this error.

It seems that this change

2002-11-06  Dave Love  <fx@gnu.org>

	* international/mule.el (set-buffer-file-coding-system):
	Call ucs-set-table-for-input.

revealed the problem of cc-bytecomp-defun.

cc-bytecomp-defun changes the function definition of the
argument symbol (in the current case; char-table-p) to
cc-bytecomp-ignore while byte-compiling.

While byte-compiling cc-mode.el, the byte compiler loads
warnings.el to display some warning.  But, as warning.el is
not yet compiled, it is loaded via load-with-code-conversion
which leads to the call of set-buffer-file-coding-system.

At this time, as the function definition of char-table-p is
changed as above, we encounter the error.

When I commented out this line in cc-vars.el:
	(cc-bytecomp-defun char-table-p)	; Emacs 19+, XEmacs 20+
the byte-compiling of cc-mode.el succeeded (but
bootstrapping failed later at the other place, I'll report it
in the next mail).

So, I've just installed the attached workaround in HEAD.

This problem is not only for char-table-p.  For instance,
cc-defs.el has this line:

(cc-bytecomp-defun scan-lists)		; 5 args in XEmacs, 3 in Emacs

So, if I insert (scan-lists 1 0 0) somewhere
in the function load-with-code-conversion, the error
	Symbol's function definition is void ((scan-lists))
occurs while compiling cc-mode.el.  :-(

---
Ken'ichi HANDA
handa@m17n.org


2002-11-14  Kenichi Handa  <handa@m17n.org>

	* progmodes/cc-vars.el: Don't cc-bytecomp-defun char-table-p.

*** cc-vars.el.~1.21.~	Mon Apr 22 09:35:36 2002
--- cc-vars.el	Thu Nov 14 16:02:35 2002
***************
*** 46,52 ****
  ;; Silence the compiler.
  (cc-bytecomp-defun get-char-table)	; XEmacs 20+
  (cc-bytecomp-defun char-table-range)	; Emacs 19+
! (cc-bytecomp-defun char-table-p)	; Emacs 19+, XEmacs 20+
  
  ;; Pull in custom if it exists and is recent enough (the one in Emacs
  ;; 19.34 isn't).
--- 46,52 ----
  ;; Silence the compiler.
  (cc-bytecomp-defun get-char-table)	; XEmacs 20+
  (cc-bytecomp-defun char-table-range)	; Emacs 19+
! ;; (cc-bytecomp-defun char-table-p)	; Emacs 19+, XEmacs 20+
  
  ;; Pull in custom if it exists and is recent enough (the one in Emacs
  ;; 19.34 isn't).

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2002-11-14 23:38     ` Kenichi Handa
@ 2002-11-15 14:24       ` Stefan Monnier
  0 siblings, 0 replies; 48+ messages in thread
From: Stefan Monnier @ 2002-11-15 14:24 UTC (permalink / raw)
  Cc: rms, henrik, kai.grossjohann, emacs-devel

> cc-bytecomp-defun changes the function definition of the
> argument symbol (in the current case; char-table-p) to
> cc-bytecomp-ignore while byte-compiling.

But the code does:

     (if (and (cc-bytecomp-is-compiling)
	      (= cc-bytecomp-load-depth 0)
	      (not (fboundp ',fun)))
	 (fset ',fun 'cc-bytecomp-ignore))))

and since char-table-p is bound, it should leave char-table-p alone.
So there's still yet-something-else going on.


	Stefan

^ permalink raw reply	[flat|nested] 48+ messages in thread

* make bootstrap fails
@ 2003-02-13 23:03 Mark Moll
  2003-02-14 10:03 ` Juanma Barranquero
  0 siblings, 1 reply; 48+ messages in thread
From: Mark Moll @ 2003-02-13 23:03 UTC (permalink / raw)
  Cc: Mark Moll

The latest CVS version of emacs fails to build on 10.2.3 (the problem 
might not be OS X specific, though).

This is what I did:

cvs update -P -d
make distclean
./configure --enable-carbon-app=/Applications --without-x
make bootstrap

Compilation fails in the last step:

gcc  -prebind -framework Carbon -lstdc++ -Xlinker -headerpad -Xlinker 
690  -o temacs pre-crt0.o dispnew.o frame.o scroll.o xdisp.o  window.o 
charset.o coding.o category.o ccl.o cm.o term.o xfaces.o  emacs.o 
keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o 
marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o 
casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o 
editfns.o callint.o eval.o floatfns.o fns.o print.o lread.o abbrev.o 
syntax.o unexmacosx.o bytecode.o process.o callproc.o region-cache.o 
sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o composite.o 
md5.o  mac.o macterm.o macfns.o macmenu.o fontset.o terminfo.o 
lastfile.o    mktime.o     -lncurses
ld: warning multiple definitions of symbol _PC
terminfo.o definition of _PC in section (__DATA,__common)
/usr/lib/libncurses.dylib(lib_tputs.o) definition of _PC
ld: warning multiple definitions of symbol _BC
terminfo.o definition of _BC in section (__DATA,__common)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _BC
ld: warning multiple definitions of symbol _UP
terminfo.o definition of _UP in section (__DATA,__common)
/usr/lib/libncurses.dylib(lib_termcap.o) definition of _UP
./temacs --batch --load loadup bootstrap
Loading loadup.el (source)...
Using load-path (/Users/mmoll/src/emacs/lisp 
/Users/mmoll/src/emacs/lisp/emacs-lisp 
/Users/mmoll/src/emacs/lisp/language 
/Users/mmoll/src/emacs/lisp/international 
/Users/mmoll/src/emacs/lisp/textmodes)
Loading byte-run (source)...
Loading emacs-lisp/backquote (source)...
Loading subr (source)...
Loading version.el (source)...
Loading widget (source)...
Loading custom (source)...
Loading map-ynp (source)...
Loading env (source)...
Loading cus-start (source)...
Note, built-in variable `selection-coding-system' not bound
Note, built-in variable `mouse-autoselect-window' not bound
Note, built-in variable `x-use-underline-position-properties' not bound
Loading international/mule (source)...
Loading international/mule-conf.el (source)...
Loading format (source)...
Loading bindings (source)...
Loading files (source)...
Loading cus-face (source)...
Loading faces (source)...
Lists of integers (garbage collection statistics) are normal output
while building Emacs; they do not indicate a problem.
((84045 . 20121) (4956 . 22) (520 . 121) 310101 22130 (8 . 1) (17 . 0) 
(6344 . 460))
Loading loaddefs.el (source)...
((101453 . 5616) (7107 . 0) (528 . 113) 1026729 22130 (34 . 33) (17 . 
0) (12784 . 68))
Loading simple (source)...
Invalid read syntax: "?"
make[1]: *** [bootstrap-emacs] Error 255
make: *** [bootstrap] Error 2

-- 
Mark

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails
  2003-02-13 23:03 make bootstrap fails Mark Moll
@ 2003-02-14 10:03 ` Juanma Barranquero
  0 siblings, 0 replies; 48+ messages in thread
From: Juanma Barranquero @ 2003-02-14 10:03 UTC (permalink / raw)
  Cc: emacs-devel

On Thu, 13 Feb 2003 17:03:05 -0600, Mark Moll <mmoll@cs.rice.edu> wrote:

> The latest CVS version of emacs fails to build on 10.2.3 (the problem 
> might not be OS X specific, though).

> Loading simple (source)...
> Invalid read syntax: "?"
> make[1]: *** [bootstrap-emacs] Error 255
> make: *** [bootstrap] Error 2

Should be fixed now.


                                                           /L/e/k/t/u

^ permalink raw reply	[flat|nested] 48+ messages in thread

* make bootstrap fails.
@ 2004-01-31  0:02 Steven T. Hatton
  2004-01-31  0:44 ` Luc Teirlinck
  2004-01-31 20:02 ` Kai Grossjohann
  0 siblings, 2 replies; 48+ messages in thread
From: Steven T. Hatton @ 2004-01-31  0:02 UTC (permalink / raw)


I finally figured out that I need to checkout the cvs archive to a host with a 
public IP address (or change some, to me, unknown configuration).  Now that I 
have the source, I'm having a hard time getting it to bootstrap.  

`make' results in the following message:

Your tree does not include the compiled Lisp files.
You need to do `make bootstrap' to build Emacs.
Emacs now requires Texinfo version 4.2.
make: *** [maybe_bootstrap] Error 1

`make bootstrap' results in:

(cd src;      make  mostlyclean)
/bin/sh: line 1: cd: src: No such file or directory
make[1]: Entering directory `/download/org/gnu/emacs'
(cd src;      make -w mostlyclean)
/bin/sh: line 1: cd: src: No such file or directory
make[2]: Entering directory `/download/org/gnu/emacs'
(cd src;      make -w mostlyclean)
/bin/sh: line 1: cd: src: No such file or directory
make[3]: Entering directory `/download/org/gnu/emacs'
(cd src;      make -w mostlyclean)
/bin/sh: line 1: cd: src: No such file or directory
make[4]: Entering directory `/download/org/gnu/emacs'
(cd src;      make -w mostlyclean)
/bin/sh: line 1: cd: src: No such file or directory
make[5]: Entering directory `/download/org/gnu/emacs'
(cd src;      make -w mostlyclean)
... Ad infinitum (almost)

Suggestions?

STH

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  0:02 make bootstrap fails Steven T. Hatton
@ 2004-01-31  0:44 ` Luc Teirlinck
  2004-01-31  0:54   ` Steven T. Hatton
  2004-01-31  0:57   ` make bootstrap fails Steven T. Hatton
  2004-01-31 20:02 ` Kai Grossjohann
  1 sibling, 2 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-01-31  0:44 UTC (permalink / raw)
  Cc: emacs-devel

Steven T. Hatton wrote:

   Now that I have the source, I'm having a hard time getting it to
   bootstrap.

There are instructions in emacs/INSTALL.CVS.

Basically:

cd emacs
./configure
make bootstrap
make install

(Assuming that you have Texinfo version 4.2 or later.)

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  0:44 ` Luc Teirlinck
@ 2004-01-31  0:54   ` Steven T. Hatton
  2004-01-31  1:32     ` make bootstrap fails. env problem Steven T. Hatton
  2004-01-31  0:57   ` make bootstrap fails Steven T. Hatton
  1 sibling, 1 reply; 48+ messages in thread
From: Steven T. Hatton @ 2004-01-31  0:54 UTC (permalink / raw)


On Friday 30 January 2004 19:44, Luc Teirlinck wrote:
> Steven T. Hatton wrote:
>
>    Now that I have the source, I'm having a hard time getting it to
>    bootstrap.
>
> There are instructions in emacs/INSTALL.CVS.
>
> Basically:
>
> cd emacs
> ./configure
> make bootstrap
> make install
>
> (Assuming that you have Texinfo version 4.2 or later.)
>
> Sincerely,
>
> Luc.

I should have mentioned that I had done the `./configure' prior to the 'make 
bootstrap'.  Following the above procedure results in the failure described. 
This is a SuSE 9.0 box.  

STH

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  0:44 ` Luc Teirlinck
  2004-01-31  0:54   ` Steven T. Hatton
@ 2004-01-31  0:57   ` Steven T. Hatton
  2004-01-31  1:48     ` Luc Teirlinck
  1 sibling, 1 reply; 48+ messages in thread
From: Steven T. Hatton @ 2004-01-31  0:57 UTC (permalink / raw)


On Friday 30 January 2004 19:44, Luc Teirlinck wrote:
> Steven T. Hatton wrote:
>
>    Now that I have the source, I'm having a hard time getting it to
>    bootstrap.
>
> There are instructions in emacs/INSTALL.CVS.
>
> Basically:
>
> cd emacs
> ./configure
> make bootstrap
> make install
>
> (Assuming that you have Texinfo version 4.2 or later.)
>
> Sincerely,
>
> Luc.

I should have mentioned that I had done the `./configure' prior to the 'make 
bootstrap'.  Following the above procedure results in the failure described. 
This is a SuSE 9.0 box.  

STH

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails. env problem
  2004-01-31  0:54   ` Steven T. Hatton
@ 2004-01-31  1:32     ` Steven T. Hatton
  0 siblings, 0 replies; 48+ messages in thread
From: Steven T. Hatton @ 2004-01-31  1:32 UTC (permalink / raw)


On Friday 30 January 2004 19:54, Steven T. Hatton wrote:
> On Friday 30 January 2004 19:44, Luc Teirlinck wrote:

> I should have mentioned that I had done the `./configure' prior to the
> 'make bootstrap'.  Following the above procedure results in the failure
> described. This is a SuSE 9.0 box.
>
> STH

It looks to be in my user environment, but I'm not sure what is causing the 
problem.  Under a different login I am able to build.  Perhaps it smells my 
xemacs?  Rather strange, because I removed everything from $PATH but /bin 
and /usr/bin.  There's nothing but mozilla nss and nspr libs in the 
LD_LIBRARY_PATH.  

STH

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  0:57   ` make bootstrap fails Steven T. Hatton
@ 2004-01-31  1:48     ` Luc Teirlinck
  2004-01-31  2:07       ` Steven T. Hatton
  2004-01-31  3:20       ` Steven T. Hatton
  0 siblings, 2 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-01-31  1:48 UTC (permalink / raw)
  Cc: emacs-devel

Steven T. Hatton wrote:

   I should have mentioned that I had done the `./configure' prior to
   the 'make bootstrap'.  Following the above procedure results in the
   failure described.  This is a SuSE 9.0 box.

I do not understand then.  If you checked out the CVS correctly, you
should have an emacs/src directory, even though the error messsages
seem to claim you do not.  Do you get an error if you just do `cd src'
instead of `make bootstrap'?

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  1:48     ` Luc Teirlinck
@ 2004-01-31  2:07       ` Steven T. Hatton
  2004-01-31  3:20       ` Steven T. Hatton
  1 sibling, 0 replies; 48+ messages in thread
From: Steven T. Hatton @ 2004-01-31  2:07 UTC (permalink / raw)


On Friday 30 January 2004 20:48, Luc Teirlinck wrote:
> Steven T. Hatton wrote:
>
>    I should have mentioned that I had done the `./configure' prior to
>    the 'make bootstrap'.  Following the above procedure results in the
>    failure described.  This is a SuSE 9.0 box.
>
> I do not understand then.  If you checked out the CVS correctly, you
> should have an emacs/src directory, even though the error messsages
> seem to claim you do not.  Do you get an error if you just do `cd src'
> instead of `make bootstrap'?
>
> Sincerely,
>
> Luc.
>

I built as root, and it built and installed without a problem. I also built 
under a different user without a problem. I also discovered I couldn't run 
make even with a bootstrapped source tree in my normal user environment. If I 
gain insight into this, I will be sure and share.  Right now, I must move 
one.

I will add, Emacs launches much more quickly than the stale build I've been 
using. 

STH

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  1:48     ` Luc Teirlinck
  2004-01-31  2:07       ` Steven T. Hatton
@ 2004-01-31  3:20       ` Steven T. Hatton
  2004-02-01 18:10         ` Richard Stallman
  1 sibling, 1 reply; 48+ messages in thread
From: Steven T. Hatton @ 2004-01-31  3:20 UTC (permalink / raw)


On Friday 30 January 2004 20:48, Luc Teirlinck wrote:
> Steven T. Hatton wrote:
>
>    I should have mentioned that I had done the `./configure' prior to
>    the 'make bootstrap'.  Following the above procedure results in the
>    failure described.  This is a SuSE 9.0 box.
>
> I do not understand then.  If you checked out the CVS correctly, you
> should have an emacs/src directory, even though the error messsages
> seem to claim you do not.  Do you get an error if you just do `cd src'
> instead of `make bootstrap'?
>
> Sincerely,
>
> Luc.

I figured it out.  I recently added a CDPATH to my .bashrc. I had the feeling 
when I did it, I would regret having done so.  unset CDPATH. Problem solved.

STH

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  0:02 make bootstrap fails Steven T. Hatton
  2004-01-31  0:44 ` Luc Teirlinck
@ 2004-01-31 20:02 ` Kai Grossjohann
  2004-02-01 21:34   ` Kim F. Storm
  1 sibling, 1 reply; 48+ messages in thread
From: Kai Grossjohann @ 2004-01-31 20:02 UTC (permalink / raw)


"Steven T. Hatton" <hattons@speakeasy.net> writes:

> (cd src;      make  mostlyclean)
> /bin/sh: line 1: cd: src: No such file or directory

cd fails.  So maybe it's $CDPATH or something like this?

Kai

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31  3:20       ` Steven T. Hatton
@ 2004-02-01 18:10         ` Richard Stallman
  0 siblings, 0 replies; 48+ messages in thread
From: Richard Stallman @ 2004-02-01 18:10 UTC (permalink / raw)
  Cc: emacs-devel

    I figured it out.  I recently added a CDPATH to my .bashrc. I had the feeling 
    when I did it, I would regret having done so.  unset CDPATH. Problem solved.

I am surprised that having a CDPATH causes a problem.  If you can
determine where in the Makefile it makes a difference, we can probably
fix it easily.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 21:34   ` Kim F. Storm
@ 2004-02-01 20:52     ` Luc Teirlinck
  2004-02-01 21:40       ` Kai Grossjohann
  2004-02-01 23:46       ` Kim F. Storm
  0 siblings, 2 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-01 20:52 UTC (permalink / raw)
  Cc: kai, emacs-devel

Kim Storm wrote:

   Kai Grossjohann <kai@emptydomain.de> writes:

   > "Steven T. Hatton" <hattons@speakeasy.net> writes:
   > 
   > > (cd src;      make  mostlyclean)
   > > /bin/sh: line 1: cd: src: No such file or directory
   > 
   > cd fails.  So maybe it's $CDPATH or something like this?

   Maybe using cd ./src is safer ?

Except that src is not the only problem.  There are plenty of relative
names used all over Makefile.in.  I am not an expert in Makefiles, but
would the logical thing not be to execute stuff in a subshell, and
either set CDPATH to the appropriate value or unset it?  Makefile.in
already seems to do the latter at several places, but maybe there are
some inadvertent omissions.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-01-31 20:02 ` Kai Grossjohann
@ 2004-02-01 21:34   ` Kim F. Storm
  2004-02-01 20:52     ` Luc Teirlinck
  0 siblings, 1 reply; 48+ messages in thread
From: Kim F. Storm @ 2004-02-01 21:34 UTC (permalink / raw)
  Cc: emacs-devel

Kai Grossjohann <kai@emptydomain.de> writes:

> "Steven T. Hatton" <hattons@speakeasy.net> writes:
> 
> > (cd src;      make  mostlyclean)
> > /bin/sh: line 1: cd: src: No such file or directory
> 
> cd fails.  So maybe it's $CDPATH or something like this?

Maybe using cd ./src is safer ?

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 20:52     ` Luc Teirlinck
@ 2004-02-01 21:40       ` Kai Grossjohann
  2004-02-01 22:08         ` Luc Teirlinck
  2004-02-01 22:27         ` Luc Teirlinck
  2004-02-01 23:46       ` Kim F. Storm
  1 sibling, 2 replies; 48+ messages in thread
From: Kai Grossjohann @ 2004-02-01 21:40 UTC (permalink / raw)


Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> Except that src is not the only problem.  There are plenty of relative
> names used all over Makefile.in.  I am not an expert in Makefiles, but
> would the logical thing not be to execute stuff in a subshell, and
> either set CDPATH to the appropriate value or unset it?  Makefile.in
> already seems to do the latter at several places, but maybe there are
> some inadvertent omissions.

Before making big changes like this, let's check with the OP whether
this is really the problem.  Just my two cents.

Kai

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 21:40       ` Kai Grossjohann
@ 2004-02-01 22:08         ` Luc Teirlinck
  2004-02-02 23:05           ` Richard Stallman
  2004-02-01 22:27         ` Luc Teirlinck
  1 sibling, 1 reply; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-01 22:08 UTC (permalink / raw)
  Cc: emacs-devel

Kai Grossjohann wrote:

   Before making big changes like this, let's check with the OP whether
   this is really the problem.  Just my two cents.

I do not know whether this is the problem in the case of the OP.  It
is definitely a fact though that if CDPATH is set and does not start
with a colon, problems can develop.

I did:

export CDPATH=~/  (admittedly stupid CDPATH, but still.)
./configure --without-toolkit-scroll-bars
make bootstrap

Result:

[bash2.05b.0 ~/emacscvsdir/emacs 3 11] make bootstrap
(cd src;      make  mostlyclean)
/home/teirllm/src
make[1]: Entering directory `/home/teirllm/src'
make[1]: *** No rule to make target `mostlyclean'.  Stop.
make[1]: Leaving directory `/home/teirllm/src'
make: *** [bootstrap-clean-before] Error 2

The question of whether a change in Makefile.in is necessary is
equivalent to the question of whether the Makefile should support
values of CDPATH not starting with a colon.  (If CDPATH starts with a
colon, there should be no problem.)

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 21:40       ` Kai Grossjohann
  2004-02-01 22:08         ` Luc Teirlinck
@ 2004-02-01 22:27         ` Luc Teirlinck
  2004-02-02  7:09           ` Kai Grossjohann
  1 sibling, 1 reply; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-01 22:27 UTC (permalink / raw)
  Cc: emacs-devel

Kai Grossjohann wrote:

   Before making big changes like this, let's check with the OP whether
   this is really the problem.

Actuallly, what is strange in the case of the OP is that he got an
error message saying that src did not exist.  That is strange, because
at least the version of bash I am using (bash2.05b.0) always
_implicitly_ adds a colon at the _end_ of CDPATH by trying out the
current directory if nothing else worked.  That is, you can wind up in
the wrong src, as in the example I gave, but otherwise ./src should
be found.  Maybe CDPATH caused the OP to start bootstrapping in the
wrong "emacs" directory to begin with.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 23:46       ` Kim F. Storm
@ 2004-02-01 23:02         ` Luc Teirlinck
  0 siblings, 0 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-01 23:02 UTC (permalink / raw)
  Cc: kai, storm, emacs-devel

Kim Storm wrote:

   Things are executed in a subshell, so I guess the Makefile should
   be able to unset CDPATH in the environment at the global level.

Yes, unless the Makefile would for some strange reason need to use the
user defined value of CDPATH, at one place or another, which seems
excessively unlikely.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 20:52     ` Luc Teirlinck
  2004-02-01 21:40       ` Kai Grossjohann
@ 2004-02-01 23:46       ` Kim F. Storm
  2004-02-01 23:02         ` Luc Teirlinck
  1 sibling, 1 reply; 48+ messages in thread
From: Kim F. Storm @ 2004-02-01 23:46 UTC (permalink / raw)
  Cc: kai, emacs-devel, storm

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> Kim Storm wrote:
> 
>    Kai Grossjohann <kai@emptydomain.de> writes:
> 
>    > "Steven T. Hatton" <hattons@speakeasy.net> writes:
>    > 
>    > > (cd src;      make  mostlyclean)
>    > > /bin/sh: line 1: cd: src: No such file or directory
>    > 
>    > cd fails.  So maybe it's $CDPATH or something like this?
> 
>    Maybe using cd ./src is safer ?
> 
> Except that src is not the only problem.  There are plenty of relative
> names used all over Makefile.in.  I am not an expert in Makefiles, but
> would the logical thing not be to execute stuff in a subshell, and
> either set CDPATH to the appropriate value or unset it?  Makefile.in
> already seems to do the latter at several places, but maybe there are
> some inadvertent omissions.

Things are executed in a subshell, so I guess the Makefile should
be able to unset CDPATH in the environment at the global level.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 22:27         ` Luc Teirlinck
@ 2004-02-02  7:09           ` Kai Grossjohann
  2004-02-02 14:28             ` Luc Teirlinck
  0 siblings, 1 reply; 48+ messages in thread
From: Kai Grossjohann @ 2004-02-02  7:09 UTC (permalink / raw)


Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> Actuallly, what is strange in the case of the OP is that he got an
> error message saying that src did not exist.  That is strange, because
> at least the version of bash I am using (bash2.05b.0) always
> _implicitly_ adds a colon at the _end_ of CDPATH by trying out the
> current directory if nothing else worked.

Does the OP use bash?

Kai

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02  7:09           ` Kai Grossjohann
@ 2004-02-02 14:28             ` Luc Teirlinck
  2004-02-02 17:11               ` Stefan Monnier
  0 siblings, 1 reply; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-02 14:28 UTC (permalink / raw)
  Cc: emacs-devel

Kai Grossjohann wrote:

   Luc Teirlinck <teirllm@dms.auburn.edu> writes:

   > Actuallly, what is strange in the case of the OP is that he got an
   > error message saying that src did not exist.  That is strange, because
   > at least the version of bash I am using (bash2.05b.0) always
   > _implicitly_ adds a colon at the _end_ of CDPATH by trying out the
   > current directory if nothing else worked.

   Does the OP use bash?

   Kai

I should have checked better.  When bash is invoked as sh, it indeed
does not check ./ if nothing else worked.  With CDPATH=~/src, I get
the same errors as the OP when doing make bootstrap.  The Makefile
uses /bin/sh.  (Which shell the user uses is irrelevant, because bash
does not _really_ add a colon to the end of CDPATH.  It just gets the
same behavior by checking the current directory if nothing else worked.)

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02 14:28             ` Luc Teirlinck
@ 2004-02-02 17:11               ` Stefan Monnier
  2004-02-02 18:51                 ` Luc Teirlinck
  2004-02-02 19:01                 ` Luc Teirlinck
  0 siblings, 2 replies; 48+ messages in thread
From: Stefan Monnier @ 2004-02-02 17:11 UTC (permalink / raw)
  Cc: kai, emacs-devel

> I should have checked better.  When bash is invoked as sh, it indeed
> does not check ./ if nothing else worked.  With CDPATH=~/src, I get
> the same errors as the OP when doing make bootstrap.  The Makefile
> uses /bin/sh.

The SUSv3 does not list CDPATH as a variable that might affect the behavior
of /bin/sh, so I think it should be considered as a bug in bash (we'll
still need to work around it, but it should be reported to the bash
maintainers and/or to the distributions that use bash as /bin/sh).

Of course, someone should check that bash invoked as /bin/sh indeed
mistakenly obeys an inherited CDPATH envvar, but the reports here lead me
to believe this is the case.


        Stefan

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02 17:11               ` Stefan Monnier
@ 2004-02-02 18:51                 ` Luc Teirlinck
  2004-02-02 20:02                   ` Stefan Monnier
  2004-02-02 19:01                 ` Luc Teirlinck
  1 sibling, 1 reply; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-02 18:51 UTC (permalink / raw)
  Cc: kai, emacs-devel

Stefan Monnier wrote:

   The SUSv3 does not list CDPATH as a variable that might affect the behavior
   of /bin/sh, so I think it should be considered as a bug in bash (we'll
   still need to work around it, but it should be reported to the bash
   maintainers and/or to the distributions that use bash as /bin/sh).

   Of course, someone should check that bash invoked as /bin/sh indeed
   mistakenly obeys an inherited CDPATH envvar, but the reports here lead me
   to believe this is the case.

I could give actual examples of bash invoked as sh obeying an
inherited CDPATH, but let me first make sure that I understand you.
Are you saying that sh should completely ignore CDPATH?  That would be
strange, because, for instance, the Solaris 8 version of sh treats
CDPATH exactly like Bash invoked as sh does, and `(bash)Bourne Shell
Variables' explicitly lists CDPATH as a variable taken over from the
Bourne shell.  Moreover, other Makefiles, for instance the texinfo-4.6
Makefile use their own CDPATH (they do not just unset CDPATH) even
though they use /bin/sh.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02 17:11               ` Stefan Monnier
  2004-02-02 18:51                 ` Luc Teirlinck
@ 2004-02-02 19:01                 ` Luc Teirlinck
  1 sibling, 0 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-02 19:01 UTC (permalink / raw)
  Cc: kai, emacs-devel

>From my earlier reply:
   
   Moreover, other Makefiles, for instance the texinfo-4.6
   Makefile use their own CDPATH (they do not just unset CDPATH) even
   though they use /bin/sh.

I said something inaccurate here: it locally sets CDPATH for one
particular command (am_cd).  But the point remains the same.  That
command is executed by /bin/sh.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02 18:51                 ` Luc Teirlinck
@ 2004-02-02 20:02                   ` Stefan Monnier
  2004-02-02 22:59                     ` Luc Teirlinck
  0 siblings, 1 reply; 48+ messages in thread
From: Stefan Monnier @ 2004-02-02 20:02 UTC (permalink / raw)
  Cc: kai, emacs-devel

> I could give actual examples of bash invoked as sh obeying an
> inherited CDPATH, but let me first make sure that I understand you.
> Are you saying that sh should completely ignore CDPATH?  That would be

Well, after further reading, CDPATH is not mentioned in `sh' but is
mentioned in `cd'.  So, I guess I was wrong, and to be protected from
CDPATH, we should always use ./foo rather than foo.

Too bad: CDPATH really feels like an interactive-only feature.


        Stefan

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02 20:02                   ` Stefan Monnier
@ 2004-02-02 22:59                     ` Luc Teirlinck
  0 siblings, 0 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-02 22:59 UTC (permalink / raw)
  Cc: kai, emacs-devel

Stefan Monnier wrote:

   So, I guess I was wrong, and to be protected from
   CDPATH, we should always use ./foo rather than foo.

   Too bad: CDPATH really feels like an interactive-only feature.

What is wrong with just unsetting CDPATH?  As the Makefile runs in a
subshell, it will not mess up the user's environment.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-01 22:08         ` Luc Teirlinck
@ 2004-02-02 23:05           ` Richard Stallman
  2004-02-03 22:05             ` Luc Teirlinck
  0 siblings, 1 reply; 48+ messages in thread
From: Richard Stallman @ 2004-02-02 23:05 UTC (permalink / raw)
  Cc: kai, emacs-devel

    I do not know whether this is the problem in the case of the OP.  It
    is definitely a fact though that if CDPATH is set and does not start
    with a colon, problems can develop.

If it is not easy to fix this problem, please don't worry about it too
much.  It would be worth a small effort, but not a large one.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-02 23:05           ` Richard Stallman
@ 2004-02-03 22:05             ` Luc Teirlinck
  2004-02-04 10:07               ` Kim F. Storm
  0 siblings, 1 reply; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-03 22:05 UTC (permalink / raw)
  Cc: kai, emacs-devel

Richard Stallman wrote:

       I do not know whether this is the problem in the case of the OP.  It
       is definitely a fact though that if CDPATH is set and does not start
       with a colon, problems can develop.

   If it is not easy to fix this problem, please don't worry about it too
   much.  It would be worth a small effort, but not a large one.

I set CDPATH in my shell to ~/, a highly inappropriate value for
emacs/Makefile.in and did:

make distclean
./configure --without-toolkit-scroll-bars
make bootstrap
sudo make install

without any problems after applying the trivial patch below.

A caveat is in order though.  I am not an expert on Makefile.in.
If Makefile.in for some strange reason needs to access the user's
CDPATH, then I am suggesting something dangerous, even though it works
perfectly for me.  (I usually do not have CDPATH set.)  This seems
excessively unlikely to me.

===File ~/Makefile.in-diff==================================
*** Makefile.in.~1.284.~	Mon Feb  2 16:31:15 2004
--- Makefile.in	Tue Feb  3 10:35:22 2004
***************
*** 53,58 ****
--- 53,60 ----
  
  SHELL = /bin/sh
  
+ CDPATH=
+ 
  # If Make doesn't predefine MAKE, set it here.
  @SET_MAKE@
  
============================================================

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-03 22:05             ` Luc Teirlinck
@ 2004-02-04 10:07               ` Kim F. Storm
  2004-02-04 15:21                 ` Luc Teirlinck
  0 siblings, 1 reply; 48+ messages in thread
From: Kim F. Storm @ 2004-02-04 10:07 UTC (permalink / raw)
  Cc: kai, rms, emacs-devel

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> without any problems after applying the trivial patch below.

I'm not sure, but some versions of make might require that you
(somehow) export the CDPATH variable to the environment, but
I don't remember the details.  

In any case, unsetting CDPATH like this cannot do any harm!

> 
> A caveat is in order though.  I am not an expert on Makefile.in.
> If Makefile.in for some strange reason needs to access the user's
> CDPATH, 

.. then I would say that Makefile.in has a bug, so there's no reason
to consider that possibility, IMO.


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-04 10:07               ` Kim F. Storm
@ 2004-02-04 15:21                 ` Luc Teirlinck
  2004-02-04 16:55                   ` Jan D.
  2004-02-04 16:56                   ` Kim F. Storm
  0 siblings, 2 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-04 15:21 UTC (permalink / raw)
  Cc: kai, rms, emacs-devel

Kim Storm wrote:

   I'm not sure, but some versions of make might require that you
   (somehow) export the CDPATH variable to the environment, but
   I don't remember the details.  

You mean that for certain versions of make one should use
`export CDPATH=' instead of just `CDPATH='?

The `make' manual seems to say that variables exported to make from
the environment are automatically exported to sub-make's anyway and,
moreover, at first view it would seem to not make any difference
whether CDPATH is the empty string or not defined at all.

Or do some versions of make actually reinitialize environment
variables directly from the shell environment that invoked make for
sub-make's if not exported?

Anyway, it would seem like the `export' can not do any harm, even
though I do not immediately understand how it could do some good.
(But I know very little about Makefiles).

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-04 15:21                 ` Luc Teirlinck
@ 2004-02-04 16:55                   ` Jan D.
  2004-02-04 19:36                     ` Luc Teirlinck
  2004-02-04 20:51                     ` Luc Teirlinck
  2004-02-04 16:56                   ` Kim F. Storm
  1 sibling, 2 replies; 48+ messages in thread
From: Jan D. @ 2004-02-04 16:55 UTC (permalink / raw)
  Cc: kai, emacs-devel, rms, storm

> Or do some versions of make actually reinitialize environment
> variables directly from the shell environment that invoked make for
> sub-make's if not exported?

At least clearmake (from clearcase) does not export variables by 
default.
I don't know if there is a need to reinitialize the environment,
make variables and environment variables are just kept separate.

	Jan D.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-04 15:21                 ` Luc Teirlinck
  2004-02-04 16:55                   ` Jan D.
@ 2004-02-04 16:56                   ` Kim F. Storm
  1 sibling, 0 replies; 48+ messages in thread
From: Kim F. Storm @ 2004-02-04 16:56 UTC (permalink / raw)
  Cc: kai, rms, emacs-devel

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> Or do some versions of make actually reinitialize environment
> variables directly from the shell environment that invoked make for
> sub-make's if not exported?

I don't know -- that's why I asked...

> 
> Anyway, it would seem like the `export' can not do any harm, even
> though I do not immediately understand how it could do some good.
> (But I know very little about Makefiles).

Unless there are version of make which doesn't understand "export".

If it works in your setup without export, I suggest we don't use it.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-04 16:55                   ` Jan D.
@ 2004-02-04 19:36                     ` Luc Teirlinck
  2004-02-04 22:51                       ` Kim F. Storm
  2004-02-04 20:51                     ` Luc Teirlinck
  1 sibling, 1 reply; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-04 19:36 UTC (permalink / raw)
  Cc: kai, rms, storm, emacs-devel

There would seem to be four possibilities:

1.  CDPATH=

2.  export CDPATH=

3.  use the shell command `unset CDPATH' at various places all over
    Makefile.in. 

4.  systematically do `cd ./dir' rather than `cd dir' at every single
    occurrence of cd in all Makefiles.  That includes the case where
    dir is a variable expanding to a relative name.

Clearly, 3 and 4 require both some initial work and carefulness when
subsequently making changes to the Makefile.  So I believe they should
only be considered if we agreed that both 1 and 2 are too simplistic.
Note also that, even without any change, problems only develop with a
user CDPATH _not starting with a colon_.  Personally, I would not want
to be using such a CDPATH and certainly not export it, because it
seems like a dangerous thing to do.  Richard has already stated that
he does not believe that the problem is worth a substantial amount of
work.

There are currently no instances of use of the make `export' directive
in Makefile.in.  Maybe it was avoided because some make's do not
understand it.  Hence I am afraid that (2) might break some make's
even if CDPATH is unset.  Maybe somebody can assure me that this fear
is groundless.

(1) definitely seems to work for GNU make and might work for other
makes, maybe even all makes.  Importantly, it will not make the
situation _worse_ for _any_ make.  On the other hand (3) is used at
some (but not enough) places in Makefile.in already, so maybe (1)
will not solve the problem for _all_ makes.

What if I just go ahead and install my trivial "CDPATH=" change, which
as already said, at least will do no harm and at least some good?
Then we can always decide what to do if problems persist for some non
GNU make's, say maybe clearmake.  (Maybe add `export' or maybe go for
(3).)

People with possibly problematic make's can always experiment by
making directories, say ~/cdpath and ~/cdpath/src and doing `export
CDPATH=~/cdpath" before bootstrapping or using other instances of
make.  (Of course, do not forget to set CDPATH back afterwards.)

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-04 16:55                   ` Jan D.
  2004-02-04 19:36                     ` Luc Teirlinck
@ 2004-02-04 20:51                     ` Luc Teirlinck
  1 sibling, 0 replies; 48+ messages in thread
From: Luc Teirlinck @ 2004-02-04 20:51 UTC (permalink / raw)
  Cc: kai, rms, storm, emacs-devel

There is also the question of whether other make's _automatically_ unset
CDPATH.  GNU make does not.  I took a look at some other Makefiles and
it would seem that a value of CDPATH not starting with a colon would
derail _most_ Makefiles, because they use cd with relative names and
apparently do not seem to do any effort to protect themselves from
CDPATH.  Just a long shot: could not unsetting CDPATH automatically be
considered a bug in GNU make?

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make bootstrap fails.
  2004-02-04 19:36                     ` Luc Teirlinck
@ 2004-02-04 22:51                       ` Kim F. Storm
  0 siblings, 0 replies; 48+ messages in thread
From: Kim F. Storm @ 2004-02-04 22:51 UTC (permalink / raw)
  Cc: jan.h.d, rms, kai, emacs-devel

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> There would seem to be four possibilities:

I agree with your analysis.


> 
> 1.  CDPATH=

IMO, this is sufficient, possibly with a note in PROBLEMS that make
may fail with some non-gnu versions of make if the user has a CDPATH
which doesn't include the current directory.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 48+ messages in thread

* make (bootstrap) fails
@ 2005-07-27 13:35 Lennart Borgman
  2005-07-27 13:47 ` Lennart Borgman
  2005-07-27 14:48 ` Eli Zaretskii
  0 siblings, 2 replies; 48+ messages in thread
From: Lennart Borgman @ 2005-07-27 13:35 UTC (permalink / raw)


CVS from today:

D:\ecvs\bld\emacs\nt>make
Using D:\WINNT\system32\cmd.exe as shell.
.
.
make  -C ../lib-src all
make[1]: *** No rule to make target `getopt.h', needed by 
`oo-spd/i386/ctags.o'.  Stop.
make[1]: Entering directory `D:/ecvs/bld/emacs/lib-src'
make[1]: Leaving directory `D:/ecvs/bld/emacs/lib-src'
make: *** [all-other-dirs-gmake] Error 2

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make (bootstrap) fails
  2005-07-27 13:35 make (bootstrap) fails Lennart Borgman
@ 2005-07-27 13:47 ` Lennart Borgman
  2005-07-27 14:39   ` Juanma Barranquero
  2005-07-27 14:48 ` Eli Zaretskii
  1 sibling, 1 reply; 48+ messages in thread
From: Lennart Borgman @ 2005-07-27 13:47 UTC (permalink / raw)
  Cc: Emacs Devel

Lennart Borgman wrote:

> CVS from today:
>
> D:\ecvs\bld\emacs\nt>make
> Using D:\WINNT\system32\cmd.exe as shell.
> .
> .
> make  -C ../lib-src all
> make[1]: *** No rule to make target `getopt.h', needed by 
> `oo-spd/i386/ctags.o'.  Stop.
> make[1]: Entering directory `D:/ecvs/bld/emacs/lib-src'
> make[1]: Leaving directory `D:/ecvs/bld/emacs/lib-src'
> make: *** [all-other-dirs-gmake] Error 2
>
More info: It looks like it is only broken on w32 (but I am not sure 
since I only have w32 here).

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make (bootstrap) fails
  2005-07-27 13:47 ` Lennart Borgman
@ 2005-07-27 14:39   ` Juanma Barranquero
  2005-07-27 14:50     ` Lennart Borgman
  0 siblings, 1 reply; 48+ messages in thread
From: Juanma Barranquero @ 2005-07-27 14:39 UTC (permalink / raw)
  Cc: Emacs Devel

On 7/27/05, Lennart Borgman <lennart.borgman.073@student.lu.se> wrote:
> Lennart Borgman wrote:

For the moment being, copy lib-src/getopt_.h to lib-src/getopt.h and
it should build.

-- 
                    /L/e/k/t/u

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make (bootstrap) fails
  2005-07-27 13:35 make (bootstrap) fails Lennart Borgman
  2005-07-27 13:47 ` Lennart Borgman
@ 2005-07-27 14:48 ` Eli Zaretskii
  2005-07-27 15:13   ` Juanma Barranquero
  1 sibling, 1 reply; 48+ messages in thread
From: Eli Zaretskii @ 2005-07-27 14:48 UTC (permalink / raw)
  Cc: emacs-devel

> Date: Wed, 27 Jul 2005 15:35:27 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> 
> CVS from today:
> 
> D:\ecvs\bld\emacs\nt>make
> Using D:\WINNT\system32\cmd.exe as shell.
> .
> .
> make  -C ../lib-src all
> make[1]: *** No rule to make target `getopt.h', needed by 
> `oo-spd/i386/ctags.o'.  Stop.
> make[1]: Entering directory `D:/ecvs/bld/emacs/lib-src'
> make[1]: Leaving directory `D:/ecvs/bld/emacs/lib-src'
> make: *** [all-other-dirs-gmake] Error 2

I suspect that some w32-specific Makefiles (*/makefile.w32-in) and
probably also nt/*.defs files need an update due to the recent changes
by Paul Eggert that moved around the getopt.* stuff.

I suggest to look at Paul's changes in the various Makefile's and do
the same in the w32 files.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make (bootstrap) fails
  2005-07-27 14:39   ` Juanma Barranquero
@ 2005-07-27 14:50     ` Lennart Borgman
  0 siblings, 0 replies; 48+ messages in thread
From: Lennart Borgman @ 2005-07-27 14:50 UTC (permalink / raw)
  Cc: Emacs Devel

Juanma Barranquero wrote:

>For the moment being, copy lib-src/getopt_.h to lib-src/getopt.h and
>it should build.
>  
>
Thanks, that worked.

^ permalink raw reply	[flat|nested] 48+ messages in thread

* Re: make (bootstrap) fails
  2005-07-27 14:48 ` Eli Zaretskii
@ 2005-07-27 15:13   ` Juanma Barranquero
  0 siblings, 0 replies; 48+ messages in thread
From: Juanma Barranquero @ 2005-07-27 15:13 UTC (permalink / raw)
  Cc: Lennart Borgman, emacs-devel

On 7/27/05, Eli Zaretskii <eliz@gnu.org> wrote:

> I suspect that some w32-specific Makefiles (*/makefile.w32-in) and
> probably also nt/*.defs files need an update due to the recent changes
> by Paul Eggert that moved around the getopt.* stuff.
> 
> I suggest to look at Paul's changes in the various Makefile's and do
> the same in the w32 files.

I was going to commit the following patch (plus changes to
lib-src/.cvsignore to ignore getopt.h).

Does that seems right, or is there any more elegant way?

-- 
                    /L/e/k/t/u


Index: lib-src/makefile.w32-in
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/makefile.w32-in,v
retrieving revision 2.35
diff -u -2 -r2.35 makefile.w32-in
--- lib-src/makefile.w32-in	4 Jul 2005 15:24:11 -0000	2.35
+++ lib-src/makefile.w32-in	27 Jul 2005 15:02:38 -0000
@@ -287,4 +287,5 @@
 		- $(DEL) *~ DOC* $(COMPILER_TEMP_FILES)
  		- $(DEL) ctags.c
+		- $(DEL) getopt.h
  		- $(DEL_TREE) $(OBJDIR)
 
@@ -301,4 +302,6 @@
  			$(CP) $(ALL_DEPS) $@
  ../src/paths.h:		../nt/paths.h
+			$(CP) $(ALL_DEPS) $@
+getopt.h:		getopt_.h
  			$(CP) $(ALL_DEPS) $@

^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2005-07-27 15:13 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-31  0:02 make bootstrap fails Steven T. Hatton
2004-01-31  0:44 ` Luc Teirlinck
2004-01-31  0:54   ` Steven T. Hatton
2004-01-31  1:32     ` make bootstrap fails. env problem Steven T. Hatton
2004-01-31  0:57   ` make bootstrap fails Steven T. Hatton
2004-01-31  1:48     ` Luc Teirlinck
2004-01-31  2:07       ` Steven T. Hatton
2004-01-31  3:20       ` Steven T. Hatton
2004-02-01 18:10         ` Richard Stallman
2004-01-31 20:02 ` Kai Grossjohann
2004-02-01 21:34   ` Kim F. Storm
2004-02-01 20:52     ` Luc Teirlinck
2004-02-01 21:40       ` Kai Grossjohann
2004-02-01 22:08         ` Luc Teirlinck
2004-02-02 23:05           ` Richard Stallman
2004-02-03 22:05             ` Luc Teirlinck
2004-02-04 10:07               ` Kim F. Storm
2004-02-04 15:21                 ` Luc Teirlinck
2004-02-04 16:55                   ` Jan D.
2004-02-04 19:36                     ` Luc Teirlinck
2004-02-04 22:51                       ` Kim F. Storm
2004-02-04 20:51                     ` Luc Teirlinck
2004-02-04 16:56                   ` Kim F. Storm
2004-02-01 22:27         ` Luc Teirlinck
2004-02-02  7:09           ` Kai Grossjohann
2004-02-02 14:28             ` Luc Teirlinck
2004-02-02 17:11               ` Stefan Monnier
2004-02-02 18:51                 ` Luc Teirlinck
2004-02-02 20:02                   ` Stefan Monnier
2004-02-02 22:59                     ` Luc Teirlinck
2004-02-02 19:01                 ` Luc Teirlinck
2004-02-01 23:46       ` Kim F. Storm
2004-02-01 23:02         ` Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2005-07-27 13:35 make (bootstrap) fails Lennart Borgman
2005-07-27 13:47 ` Lennart Borgman
2005-07-27 14:39   ` Juanma Barranquero
2005-07-27 14:50     ` Lennart Borgman
2005-07-27 14:48 ` Eli Zaretskii
2005-07-27 15:13   ` Juanma Barranquero
2003-02-13 23:03 make bootstrap fails Mark Moll
2003-02-14 10:03 ` Juanma Barranquero
2002-11-08 20:04 Kai Großjohann
2002-11-09 13:17 ` Henrik Enberg
2002-11-11 10:19   ` Richard Stallman
2002-11-12 18:29     ` Henrik Enberg
2002-11-14 12:15       ` Richard Stallman
2002-11-14 23:38     ` Kenichi Handa
2002-11-15 14:24       ` Stefan Monnier

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).