Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-27-2009, 10:19 AM   #1
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:
/usr/src/test/linux-2.6.30/firmware/Makefile:163: *** multiple target patterns.  Stop.
My steps for building the kernel were
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:
# 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)
I've tried uncommenting it, but it doesn't work.

Last edited by Romanus81; 06-27-2009 at 10:50 AM.
Old 06-27-2009, 10:53 AM   #2
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 971

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

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, 01:31 PM   #3
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, 03:43 PM   #4
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 971

Rep: Reputation: 113Reputation: 113
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, 05:40 PM   #5
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Fedora, Gentoo, Ubuntu (all servers at work are openSUSE)
Posts: 6,931

Rep: Reputation: 128Reputation: 128
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.
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


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 10:35 AM
Linux 2.6.25, Slack-current, and nvidia compile error spaceballs Slackware 6 04-19-2008 06:57 PM
makefile to compile kernel? RIgimp75 Slackware 7 07-19-2006 01:42 AM
How to compile the program with the makefile? Nishant Desai Programming 2 07-19-2006 12:07 AM
Sylpheed-Claws compile error on Slackware-current jaakkop Linux - Software 3 02-12-2006 10:31 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:13 AM.

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