2010-11-16 12:43:36     Makefile error: mixed implicit and normal rules. Stop.

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-11-16 12:43:36     Makefile error: mixed implicit and normal rules. Stop.

Ben Burleson (UNITED STATES)

Message: 95880   

 

I recently upgraded to Fedora 14 and included was the upgrade of make from 3.81 to 3.82. The newer version complains when it encounters a line in a Makefile that contains both static and implicit rules. For example:

 

 

 

single single%:

 

    $(MAKE) NON_SMP_BUILD=1 `expr $(@) : 'single[_]*\(.*\)'`

 

 

 

I fixed this by splitting the rules into two separate rules:

 

 

 

single:

 

$(MAKE) NON_SMP_BUILD=1 `expr $(@) : 'single[_]*\(.*\)'`

 

single%:

 

$(MAKE) NON_SMP_BUILD=1 `expr $(@) : 'single[_]*\(.*\)'`

 

 

 

 

 

There was also an issue with how busybox is built that was temporarily solved by forcing a clean of busybox. If someone else has a better way to deal with the incompatibility with the upgrade to make 3.82, please share it.

 

Just wanted to document this in case someone else encounters the same problem.

 

 

 

Cheers,

 

Ben

QuoteReplyEditDelete

 

 

2010-11-16 12:50:21     Re: Makefile error: mixed implicit and normal rules. Stop.

Mike Frysinger (UNITED STATES)

Message: 95881   

 

it's been fixed in 2010R1 and trunk already.  you can use those changes.

Attachments

    Outcomes