-   Linux - Software (
-   -   error "mixed implicit and normal rules" while trying to build busybox (

Keith Hedger 08-17-2010 11:31 AM

error "mixed implicit and normal rules" while trying to build busybox
Hi I get this error when trying to build busybox on slackware64:

Makefile:1288: *** mixed implicit and normal rules.  Stop.
I've tried googling and there seems to be no mention of this error, if I download the precompiled binary it works fine any ideas?

Keith Hedger 08-17-2010 02:25 PM

Well solved this myself!
Seems newer versions of make don't like lines like:

config %config: scripts_basic outputmakefile FORCE
just changed them to:

%config: scripts_basic outputmakefile FORCE
and it compiled fine

ca_mongrel 12-21-2011 12:13 AM

Correct Fix
Your fix:

config %config: scripts_basic outputmakefile FORCE
changed to
%config: scripts_basic outputmakefile FORCE

is incorrect because the original line has both an implicit rule and an explicit rule, and you deleted one.

The correct fix is to split the rules. I suspect that there were 1 or more make commands below that rule. Your fix ignored one of the rules. The proper fix is to split the 2 rule line into two separate sections:

config: scripts_basic outputmakefile FORCE
some make command(s) here
%config: scripts_basic outputmakefile FORCE
same make command(s) here again


I learned this by applying your fix, and my compile of my ARM linux kernel worked, but I found I could still not configure the kernel with "make menuconfig" until I changed the fix to the proper format as I have shown above.

Keith Hedger 12-21-2011 05:16 AM

Thanks for the CORRECT way of dong this

All times are GMT -5. The time now is 01:26 PM.