Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
.Makefiles containing explicit targets before implicit work again
Previously, mixing implicit (pattern) and explicit targets in Makefiles was deprecated. After update to version 3.82, the `make` build tool returned errors for mixed targets. As a consequence, legacy Makefiles containing mixed targets could not be used. With this update, `make` can correctly parse situations where an explicit target is listed before an implicit target. As a result, certain legacy Makefiles can now be used again without modification. However, implicit targets before explicit targets still result in an error.
Note that mixing explicit and implicit targets in Makefiles is deprecated and should *not* be added to new Makefiles.
Created attachment 1441589[details]
patch that fixes problem
Description of problem:
Build with GNU make 3.82 fails due to "*** mixed implicit and normal rules. Stop." However, the same source code and makefiles build successfully with GNU make 3.81 and 4.1. It appears make 3.82 introduced a bug that complains about multiple targets in a make rules:
Where are you experiencing the behavior? What environment?
Build failure during cross compilation of Linux kernel 2.6.35 for PowerPC.
Version-Release number of selected component (if applicable):
GNU make 3.82: Always
GNU make 3.81: Never
GNU make 41.: Never
How reproducible:
Steps to Reproduce:
1.[nuevo] make CROSS_COMPILE=/opt/powerpc-idirect-linux-gnuspe-4.9/bin/powerpc-idirect-linux-gnuspe- AS=/opt/powerpc-idirect-linux-gnuspe-4.9/bin/powerpc-idirect-linux-gnuspe-as -C linux-2.6.35 ARCH=powerpc oldconfig
[nuevo] make[3]: Entering directory `/builds/workspace/feature_mhassani_VELO-10068-T2FQTEFW4KOSKC2S3ITYUZ446YAO564ZYWAVUXX2XH6E3TKA3MRQ/freescale/kernel/linux-2.6.35'
[nuevo] /builds/workspace/feature_mhassani_VELO-10068-T2FQTEFW4KOSKC2S3ITYUZ446YAO564ZYWAVUXX2XH6E3TKA3MRQ/freescale/kernel/linux-2.6.35/arch/powerpc/Makefile:188: *** mixed implicit and normal rules. Stop.
[nuevo] make[3]: Leaving directory `/builds/workspace/feature_mhassani_VELO-10068-T2FQTEFW4KOSKC2S3ITYUZ446YAO564ZYWAVUXX2XH6E3TKA3MRQ/freescale/kernel/linux-2.6.35'
[nuevo] make[2]: *** [build_kernel] Error 2
[nuevo] make[2]: Leaving directory `/builds/workspace/feature_mhassani_VELO-10068-T2FQTEFW4KOSKC2S3ITYUZ446YAO564ZYWAVUXX2XH6E3TKA3MRQ/freescale/kernel'
[nuevo] make[1]: *** [build_kernel] Error 2
[nuevo] make[1]: Leaving directory `/builds/workspace/feature_mhassani_VELO-10068-T2FQTEFW4KOSKC2S3ITYUZ446YAO564ZYWAVUXX2XH6E3TKA3MRQ'
[nuevo] make: *** [fast] Error 2
The error point to the following lines in Makefile:
BOOT_TARGETS = zImage zImage.initrd uImage zImage% dtbImage% treeImage.% cuImage.% simpleImage.%
PHONY += $(BOOT_TARGETS)
$(BOOT_TARGETS): vmlinux
$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
bootwrapper_install %.dtb:
$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@)
Actual results:
Failure
Expected results:
Make should complete.
Additional info:
see http://savannah.gnu.org/bugs/?33034
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2019:2056