GNU bug report logs -
#13962
24.3: build fails when make run as a sub-make process
Previous Next
Reported by: balducci <at> units.it
Date: Thu, 14 Mar 2013 18:26:01 UTC
Severity: important
Found in version 24.3
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13962 in the body.
You can then email your comments to 13962 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13962
; Package
emacs
.
(Thu, 14 Mar 2013 18:26:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
balducci <at> units.it
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 14 Mar 2013 18:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
hello,
while building 24.3 I stumbled on the following problem.
The main Makefile contains the following two lines:
info_misc=`cd $${thisdir}/doc/misc; ${MAKE} -s echo-info`; \
(info_misc=`cd doc/misc; ${MAKE} -s echo-info`; \
Everything works nicely if I run make from the shell prompt.
However, I usually build emacs with a script which in turn is run from
a Makefile of mine. If I attempt to build this way, I find
that the definitions of info_misc above contain also the make messages
"Entering directory..." "Leaving directory...", which, of course,
break the build.
The problem is that -s suppresses recipe lines echoing, but NOT
directory change messages from make, which make emits when run in a
sub-make process (which is why I do not get errors when runnig from the
shell prompt, while I get errors when running from my script, run by
make)
The above lines assume that the main Makefile will never be run by a
sub-make, which of course is true most of the time, but is false in my
case.
Everything is fixed joining --no-print-directory with the -s option, but,
as I was told by paul smith on the help-make mail list, that won't work
for non-GNU make. Following paul's suggestion, I propose:
=> use of MAKELEVEL=0, so that GNU make thinks to be a top-most level:
info_misc=`cd doc/misc && MAKELEVEL=0 ${MAKE} -s echo-info`
while other make's won't be disturbed
=> sed-ing the ${MAKE} -s echo-info command to strip off any spurios
directory change message
Apologies if I have overlooked something
and thank you really very much for maintaining and developing emacs
ciao
gabriele
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13962
; Package
emacs
.
(Thu, 14 Mar 2013 18:28:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 13962 <at> debbugs.gnu.org (full text, mbox):
balducci <at> units.it wrote:
> => sed-ing the ${MAKE} -s echo-info command to strip off any spurios
> directory change message
That's how it was originally, prior to:
http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00206.html
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13962
; Package
emacs
.
(Fri, 15 Mar 2013 11:35:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13962 <at> debbugs.gnu.org (full text, mbox):
>
> That's how it was originally, prior to:
> http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00206.html
ok, so looks like the change introduced is not completely general.
If I can, I take the freedom to suggest to:
=> either revert the commit
=> or, maybe, go with the MAKELEVEL=0 fix (I haven't tested it, but
should work fine)
thanks a lot for your time and kindness
ciao
gabriele
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Mon, 18 Mar 2013 21:07:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
balducci <at> units.it
:
bug acknowledged by developer.
(Mon, 18 Mar 2013 21:07:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 13962-done <at> debbugs.gnu.org (full text, mbox):
Thanks for the report and idea for a fix.
I installed a MAKELEVEL=0 fix into trunk bzr 112086
and am marking this as done.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 16 Apr 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 349 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.