LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-27-2009, 11:19 AM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
Cannot compile 2.6.30 in -current, error in firmware/Makefile


I tried compiling kernel 2.6.30 for -current but it always exits with this error:
Code:
/usr/src/test/linux-2.6.30/firmware/Makefile:163: *** multiple target patterns.  Stop.
My steps for building the kernel were
Code:
zcat /proc/config.gz > ~/kernel/2.6.30-a/.config
make O=/home/user/kernel/2.6.30-a/ oldconfig (accepted defaults for everything)
make O=/home/user/kernel/2.6.30-a/ menuconfig
make O=/home/user/kernel/2.6.30-a/
The same error occurs when I do 'make O=/home/user/kernel/2.6.30-a mrproper'

I have tried redownloading the source code, running 'make mrproper' on the source code directory, but I've gotten nothing. I'm running a pretty clean version of slackware -current.

And if anyone is wondering, the error is coming from these lines:
Code:
# Workaround for make < 3.81, where .SECONDEXPANSION doesn't work.
# It'll end up depending on these targets, so make them a PHONY rule which
# depends on _all_ the directories in $(firmware-dirs), and it'll work out OK.
PHONY += $(objtree)/$$(%) $(objtree)/$(obj)/$$(%)
$(objtree)/$$(%) $(objtree)/$(obj)/$$(%): $(firmware-dirs)
        @true
I've tried uncommenting it, but it doesn't work.

Last edited by Romanus81; 06-27-2009 at 11:50 AM.
 
Old 06-27-2009, 11:53 AM   #2
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
I searched for the error in Google and found this:

http://www-01.ibm.com/support/docvie...id=swg21119863

Quote:
GNU make does not handle the spaces in the directory names given in the
generated makefiles. Gnumake instead reads a directory as two (or more
depending one the amount of spaces) targets separated by spaces.
So it may be some sort of syntax problem. Just today I compiled 2.6.30 on slackware64-current, all went fine.
 
Old 06-27-2009, 02:31 PM   #3
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Original Poster
Rep: Reputation: 31
that fix is for windows operating systems, I might try compiling on another linux system and seeing what happens with that.
 
Old 06-27-2009, 04:43 PM   #4
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 930

Rep: Reputation: 96
Well yes that's why I only quoted the explanation. Your problem could be something else but my guess is that Make is misunderstanding something due to syntax error.
 
Old 06-27-2009, 06:40 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Your steps for building are not quite kosher. Additionally, you don't run "mrproper" on new source code; there will be no .o files in it.

This very simple kernel rebuild guide worked perfectly on Slackware for x86_64 with 2.6.30 for me.
Code:
mingdao@jeremiah:~/kernel$ uname -a
Linux jeremiah 2.6.30-bh #4 SMP Wed Jun 17 15:30:16 CST 2009 x86_64 Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz GenuineIntel GNU/Linux
 
  


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
how to create a driver makefile which uses header files outside current dir? netskink Linux - Kernel 5 05-21-2009 11:35 AM
Linux 2.6.25, Slack-current, and nvidia compile error spaceballs Slackware 6 04-19-2008 07:57 PM
makefile to compile kernel? RIgimp75 Slackware 7 07-19-2006 02:42 AM
How to compile the program with the makefile? Nishant Desai Programming 2 07-19-2006 01:07 AM
Sylpheed-Claws compile error on Slackware-current jaakkop Linux - Software 3 02-12-2006 11:31 AM


All times are GMT -5. The time now is 03:02 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