Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343727

Summary: sys-devel/make-3.82: Makefile:1523: *** mixed implicit and normal rules. Stop.
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.kernel.org/show_bug.cgi?id=21642
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2010-11-01 16:07:12 UTC
An upgrade from 3.81-r2 causes the following error when trying to compile linux kernel sources:

linux-2.6.25.20 # make bzImage
Makefile:1523: *** mixed implicit and normal rules.  Stop.
#


The lines in the Makefile around are:

1507 %.s: %.c prepare scripts FORCE
1508         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1509 %.i: %.c prepare scripts FORCE
1510         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1511 %.o: %.c prepare scripts FORCE
1512         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1513 %.lst: %.c prepare scripts FORCE
1514         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1515 %.s: %.S prepare scripts FORCE
1516         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1517 %.o: %.S prepare scripts FORCE
1518         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1519 %.symtypes: %.c prepare scripts FORCE
1520         $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
1521 
1522 # Modules
1523 / %/: prepare scripts FORCE
1524         $(cmd_crmodverdir)
1525         $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
1526         $(build)=$(build-dir)
1527 %.ko: prepare scripts FORCE
1528         $(cmd_crmodverdir)
1529         $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1)   \
1530         $(build)=$(build-dir) $(@:.ko=.o)
1531         $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-11-01 16:12:07 UTC
That's correct behavior and old Linux sources, like 2.6.25 and 2.6.26 are broken. Not much we can do about that.
Comment 2 Martin Mokrejš 2010-11-01 16:23:38 UTC
Have opened https://bugzilla.kernel.org/show_bug.cgi?id=21642 , let's hope it gets fixed by upstream. Thanks.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-11-01 16:58:39 UTC
(In reply to comment #2)
> Have opened https://bugzilla.kernel.org/show_bug.cgi?id=21642 , let's hope it
> gets fixed by upstream. Thanks.
> 

well, according to http://www.kernel.org/ the 2.6.27 branch seems to be still maintained, perhaps it works out of box? or is likely to be fixed.
I think trying to get 2.6.25 or 2.6.26 fixed is a lost cause
Comment 4 Martin Mokrejš 2010-11-01 19:22:04 UTC
The make issue does not happen for me with 2.6.27.54. :(

Unfortunately, I have to go backwards to find out when the serial modem support got broken. With the move from OSS to ALSA support something got screwed in slmodem, and it is not used by many users anymore. It is enough to be restrained by udev on my installation that I have to use kernel above 2.6.25. :((