Skip to contentSkip to conversation

Makefile: fix build failure due to buggy 'make' version 4.3

PATCH In review Giulio Benetti 1 participant 2 messages Dec 30, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: fix build failure due to buggy 'make' version 4.3

Make version 4.3 is buggy in various ways, so let's skip it by checking RUNNING_MAKE_VERSION against the SKIP_MAKE_VERSION list. This way, if other make versions show up we can add them to SKIP_MAKE_VERSION list.

---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
Makefile +6 -0
index 0b8c7b2867..a07c05f8aa 100644
@@ -105,6 +105,12 @@ ifneq ($(firstword $(sort $(RUNNING_MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MA
 $(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
 endif
 
+# Check for make versions to skip because of their bugs
+SKIP_MAKE_VERSION = 4.3
+ifneq ($(filter $(RUNNING_MAKE_VERSION),$(SKIP_MAKE_VERSION)),)
+$(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make != $(SKIP_MAKE_VERSION) is required)
+endif
+
 # absolute path
 TOPDIR := $(CURDIR)
 CONFIG_CONFIG_IN = Config.in
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 17 lines · Giulio Benetti

Make version 4.3 is buggy in various ways, so let's skip it by checking RUNNING_MAKE_VERSION against the SKIP_MAKE_VERSION list. This way, if other make versions show up we can add them to SKIP_MAKE_VERSION list.

---
  Makefile | 6 ++++++
  1 file changed, 6 insertions(+)
Makefile +0 -0
index 0b8c7b2867..a07c05f8aa 100644
@@ -105,6 +105,12 @@ ifneq ($(firstword $(sort $(RUNNING_MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MA
  $(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
  endif

Makefile ifneq ($(firstword $(sort $(RUNNING_MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MA · line 116

Quoted 10 lines
Makefile +6 -0
 
+# Check for make versions to skip because of their bugs
+SKIP_MAKE_VERSION = 4.3
+ifneq ($(filter $(RUNNING_MAKE_VERSION),$(SKIP_MAKE_VERSION)),)
+$(error You have make '$(RUNNING_MAKE_VERSION)' installed. GNU make != $(SKIP_MAKE_VERSION) is required)
+endif
+
  # absolute path
  TOPDIR := $(CURDIR)
  CONFIG_CONFIG_IN = Config.in

We can't avoid using make 4.3, so please ignore this patch. I'm going to work around the problem it causes, basically:
- 'make printvars' won't work stating that is supported by make 4.3
- host-libnss(probably libnss too) will be built or with MAKE1 or with BR2_MAKE

Best regards

Signature · 6 lines
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot