GNU bug report logs -
#68545
warnings from GNU Make 3.81
Previous Next
To reply to this bug, email your comments to 68545 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Wed, 17 Jan 2024 18:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mattias Engdegård <mattias.engdegard <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 17 Jan 2024 18:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Building with GNU Make 3.81, which seems to be supported, gives the warnings
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C java bootstrap-clean
Makefile:157: warning: overriding commands for target `&'
Makefile:151: warning: ignoring old commands for target `&'
Makefile:168: warning: overriding commands for target `&'
Makefile:157: warning: ignoring old commands for target `&'
Makefile:296: warning: overriding commands for target `&'
Makefile:168: warning: ignoring old commands for target `&'
That version probably doesn't like '&'. Given that I'm not building anything in the java/ directory anyway, perhaps that sub-make can be avoided altogether for platforms other than Android?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Wed, 17 Jan 2024 19:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 68545 <at> debbugs.gnu.org (full text, mbox):
> Cc: Po Lu <luangruo <at> yahoo.com>
> From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
> Date: Wed, 17 Jan 2024 19:50:13 +0100
>
> Building with GNU Make 3.81, which seems to be supported, gives the warnings
>
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C java bootstrap-clean
> Makefile:157: warning: overriding commands for target `&'
> Makefile:151: warning: ignoring old commands for target `&'
> Makefile:168: warning: overriding commands for target `&'
> Makefile:157: warning: ignoring old commands for target `&'
> Makefile:296: warning: overriding commands for target `&'
> Makefile:168: warning: ignoring old commands for target `&'
>
> That version probably doesn't like '&'. Given that I'm not building anything in the java/ directory anyway, perhaps that sub-make can be avoided altogether for platforms other than Android?
The &: feature was introduced in GNU Make 4.3, and we don't want to
force people to use such new versions. So please find a different
solution for what you need to do there, one that doesn't require Make
newer than 3.81.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Thu, 18 Jan 2024 00:51:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 68545 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> The &: feature was introduced in GNU Make 4.3, and we don't want to
> force people to use such new versions. So please find a different
> solution for what you need to do there, one that doesn't require Make
> newer than 3.81.
This is a harmless warning message that doesn't affect the execution of
the `clean' target itself. It's not necessary to address this or
support Make 3.81 for building the Android port, because Makefiles
provided by the Android.mk build system require versions of Make which
support group targets.
If suppressing the warning is still a concern, please try this patch:
diff --git a/java/Makefile.in b/java/Makefile.in
index 60bd2ea086b..af2989d8f3b 100644
--- a/java/Makefile.in
+++ b/java/Makefile.in
@@ -47,6 +47,7 @@ ANDROID_SDK_8_OR_EARLIER =
WARN_JAVAFLAGS = @WARN_JAVAFLAGS@
JAVAFLAGS = $(WARN_JAVAFLAGS) -classpath "$(ANDROID_JAR):$(srcdir)"
FIND_DELETE = @FIND_DELETE@
+ANDROID = @ANDROID@
# Android 4.3 and earlier require Emacs to be signed with a different
# digital signature algorithm.
@@ -145,6 +146,7 @@ CROSS_ARCHIVES =
.PHONY: $(CROSS_BINS) $(CROSS_LIBS) $(CROSS_ARCHIVES)
+ifeq ($(ANDROID),yes)
# There should only be a single invocation of $(MAKE) -C
# $(top_srcdir)/cross for each directory under $(top_srcdir)/cross.
$(CROSS_SRC_BINS) $(CROSS_LIBS) &: $(CROSS_ARCHIVES)
@@ -269,6 +271,7 @@ emacs.apk-in:
$(AAPT) add ../$@ `find lib -type f`; \
popd &> /dev/null
$(AM_V_SILENT) rm -rf install_temp
+endif
# Makefile itself.
.PRECIOUS: $(top_srcdir)/config.status Makefile
@@ -291,6 +294,7 @@ $(RESOURCE_FILE):
# Make all class files depend on R.java being built.
$(CLASS_FILES): $(RESOURCE_FILE)
+ifeq ($(ANDROID),yes)
.SUFFIXES: .java .class
$(CLASS_FILES) &: $(JAVA_FILES)
$(AM_V_JAVAC) $(JAVAC) $(JAVAFLAGS) $(JAVA_FILES)
@@ -320,6 +324,7 @@ $(APK_NAME):
# Signing must happen after alignment!
$(AM_V_SILENT) $(APKSIGNER) $(SIGN_EMACS_V2) $@
$(AM_V_SILENT) rm -f $@.unaligned *.idsig
+endif
# TAGS generation.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Thu, 18 Jan 2024 06:20:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 68545 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Mattias Engdegård <mattias.engdegard <at> gmail.com>,
> 68545 <at> debbugs.gnu.org
> Date: Thu, 18 Jan 2024 08:50:41 +0800
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > The &: feature was introduced in GNU Make 4.3, and we don't want to
> > force people to use such new versions. So please find a different
> > solution for what you need to do there, one that doesn't require Make
> > newer than 3.81.
>
> This is a harmless warning message that doesn't affect the execution of
> the `clean' target itself. It's not necessary to address this or
> support Make 3.81 for building the Android port, because Makefiles
> provided by the Android.mk build system require versions of Make which
> support group targets.
First, AFAIU the relevant Makefile target gets executed in non-Android
builds as well.
And second, if the Android build requires GNU Make >= 4.3, I think
this should be mentioned in java/INSTALL as a prerequisite, even if
the various other Android tools already require or provide such a new
version.
> If suppressing the warning is still a concern, please try this patch:
If Mattias says this solves the problem, please install this change.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Thu, 18 Jan 2024 06:46:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 68545 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> First, AFAIU the relevant Makefile target gets executed in non-Android
> builds as well.
Yes, but the warnings are generated by Make while _reading_ adjacent
targets within the same file, and do not affect the clean target itself.
> And second, if the Android build requires GNU Make >= 4.3, I think
> this should be mentioned in java/INSTALL as a prerequisite, even if
> the various other Android tools already require or provide such a new
> version.
OK, will do.
> If Mattias says this solves the problem, please install this change.
Thanks in advance.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Thu, 18 Jan 2024 11:23:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 68545 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
18 jan. 2024 kl. 01.50 skrev Po Lu <luangruo <at> yahoo.com>:
> If suppressing the warning is still a concern, please try this patch:
Thank you, but it still produces the warnings for `bootstrap-clean` and similar -clean targets. What about this change instead?
[make.diff (application/octet-stream, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68545
; Package
emacs
.
(Thu, 18 Jan 2024 12:05:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 68545 <at> debbugs.gnu.org (full text, mbox):
Mattias Engdegård <mattias.engdegard <at> gmail.com> writes:
> 18 jan. 2024 kl. 01.50 skrev Po Lu <luangruo <at> yahoo.com>:
>
>> If suppressing the warning is still a concern, please try this patch:
>
> Thank you, but it still produces the warnings for `bootstrap-clean`
> and similar -clean targets. What about this change instead?
I will investigate this tomorrow, but "make bootstrap-clean" _must_ be
executed in the `java' directory even when the Android build is not
selected, or files Autoconf generates there will not be erased.
Thanks.
Severity set to 'minor' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Jan 2024 00:45:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.