LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-17-2010, 12:31 PM   #1
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Rep: Reputation: 214Reputation: 214Reputation: 214
Question error "mixed implicit and normal rules" while trying to build busybox


Hi I get this error when trying to build busybox on slackware64:
Code:
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?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-17-2010, 03:25 PM   #2
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Original Poster
Rep: Reputation: 214Reputation: 214Reputation: 214
Well solved this myself!
Seems newer versions of make don't like lines like:
Code:
config %config: scripts_basic outputmakefile FORCE
just changed them to:
Code:
%config: scripts_basic outputmakefile FORCE
and it compiled fine
 
Old 12-21-2011, 01:13 AM   #3
ca_mongrel
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: 3
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

see http://osdir.com/ml/bug-make-gnu/2011-04/msg00011.html

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.
 
3 members found this post helpful.
Old 12-21-2011, 06:16 AM   #4
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 992

Original Poster
Rep: Reputation: 214Reputation: 214Reputation: 214
Thanks for the CORRECT way of dong this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal Login "error"? (at time of this having security issues) Ubunoob001 Linux - Newbie 1 07-09-2010 12:06 AM
busybox mount iso: "mount could not find a spare loop device" error frenchn00b Linux - General 0 01-08-2010 03:37 AM
Cannot access "man pages" as normal user - temp filename creation error. uncle-c Linux - Newbie 2 03-11-2008 02:10 PM
perl install error: Can't locate object method "new" via package "Module::Build::Vers powah Linux - Software 0 10-24-2006 02:57 PM
what means "no rules to build the target"? captainstorm Programming 4 07-03-2003 10:26 AM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration