unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: 20894@debbugs.gnu.org
Subject: bug#20894: make libgnu.a doesn't generate everything it requires
Date: Thu, 25 Jun 2015 13:33:52 -0700	[thread overview]
Message-ID: <558C65B0.1050401@cs.ucla.edu> (raw)
In-Reply-To: <ux4mlvsrnl.fsf@fencepost.gnu.org>

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

Glenn Morris wrote:
> 'make -C src emacs' now works, but 'make -j8 -C src emacs' fails in lib with
>
>    GEN      stddef.h
>    mv: cannot stat 'alloca.h-t': No such file or directory

Hmm, well, I'm sure there are other dependency bugs like that in the makefiles 
somewhere.  Anyway I fixed this bug with the attached.

[-- Attachment #2: 0001-Fix-submake-dependency-bug-with-.h-files.patch --]
[-- Type: text/x-diff, Size: 976 bytes --]

From 1dbeff026f3dd8244d648501cfcb84621dc3a655 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 25 Jun 2015 13:31:18 -0700
Subject: [PATCH] Fix submake dependency bug with .h files

* src/Makefile.in ($(libsrc)/make-docfile$(EXEEXT)):
Depend on $(lib)/libgnu.a, so that we build $(lib)/*/*.h
before the submake in $(libsrc) would spin off a subsubmake
for $(lib) in parallel with our submake for $(lib) (Bug#20894).
---
 src/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index bfb911e..1fb770d 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -529,7 +529,7 @@ $(etc)/DOC: lisp.mk $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
 	$(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \
 	  $(shortlisp)
 
-$(libsrc)/make-docfile$(EXEEXT):
+$(libsrc)/make-docfile$(EXEEXT): $(lib)/libgnu.a
 	$(MAKE) -C $(libsrc) make-docfile$(EXEEXT)
 
 buildobj.h: Makefile
-- 
2.1.4


  reply	other threads:[~2015-06-25 20:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-25  0:12 bug#20894: make libgnu.a doesn't generate everything it requires Glenn Morris
2015-06-25  0:15 ` Glenn Morris
2015-06-25  6:39 ` Paul Eggert
2015-06-25 16:02   ` Glenn Morris
2015-06-25 20:33     ` Paul Eggert [this message]
2015-06-25 23:06       ` Glenn Morris

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=558C65B0.1050401@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=20894@debbugs.gnu.org \
    --cc=rgm@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 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).