Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th February 2010, 10:12 AM
john_erlandsson Offline
Registered User
 
Join Date: Oct 2009
Location: Sweden
Posts: 34
linuxfedorafirefox
[SOLVED]building a custom kernel

Hi!
I am trying to build a custom kernel, following the guide on fedora wiki

the error occurs when Im installing the build dependencies
Code:
[john@lunatech ~]$ sudo yum-builddep kernel-2.6.31.12-174.2.3.fc12.src.rpm
[sudo] password for john: 
Loaded plugins: presto, refresh-packagekit
Traceback (most recent call last):
  File "/usr/bin/yum-builddep", line 196, in <module>
    util = YumBuildDep()
  File "/usr/bin/yum-builddep", line 64, in __init__
    self.main()
  File "/usr/bin/yum-builddep", line 93, in main
    self.get_build_deps(opts)
  File "/usr/bin/yum-builddep", line 173, in get_build_deps
    for srpm in toActOn:
UnboundLocalError: local variable 'toActOn' referenced before assignment
Does anyone know the reason for this?

Appreciate any help

//John

---------- Post added at 11:12 AM CST ---------- Previous post was at 10:50 AM CST ----------

if i pretend like there where no errors, and continue the steps i eventually end up at:

Code:
[john@lunatech SPECS]$ rpmbuild -bp --target=i686 kernel.spec 
Building target platforms: i686
Building for target i686
error: Failed build dependencies:
	redhat-rpm-config is needed by kernel-2.6.31.12-174.2.3.fc12.src
	xmlto is needed by kernel-2.6.31.12-174.2.3.fc12.src
	asciidoc is needed by kernel-2.6.31.12-174.2.3.fc12.src
	elfutils-libelf-devel is needed by kernel-2.6.31.12-174.2.3.fc12.src
	binutils-devel is needed by kernel-2.6.31.12-174.2.3.fc12.src
//John

Last edited by john_erlandsson; 17th February 2010 at 12:12 PM.
Reply With Quote
  #2  
Old 16th February 2010, 01:53 PM
smurffit's Avatar
smurffit Offline
Registered User
 
Join Date: Dec 2009
Posts: 190
linuxfirefox
Hejsan,

Have you tried to install the missing packages with yum?
__________________
Linux Registered User #503365 :)
Reply With Quote
  #3  
Old 17th February 2010, 12:11 PM
john_erlandsson Offline
Registered User
 
Join Date: Oct 2009
Location: Sweden
Posts: 34
linuxfedorafirefox
Hi!

I installed the missing packages. It did not clear the builddep errors, but I was able use the sources anyway.

Tack för hjälpen

//John
Reply With Quote
  #4  
Old 17th February 2010, 07:58 PM
Piscium Offline
Registered User
 
Join Date: Dec 2009
Location: Dublin,Ireland
Posts: 101
linuxfedorafirefox
There was a bug in yum-builddep that has been fixed.

There is more information at this thread:
http://forums.fedoraforum.org/showthread.php?t=239875


Quote:
Originally Posted by john_erlandsson View Post
Hi!
I am trying to build a custom kernel, following the guide on fedora wiki

the error occurs when Im installing the build dependencies
Code:
[john@lunatech ~]$ sudo yum-builddep kernel-2.6.31.12-174.2.3.fc12.src.rpm
[sudo] password for john: 
Loaded plugins: presto, refresh-packagekit
Traceback (most recent call last):
  File "/usr/bin/yum-builddep", line 196, in <module>
    util = YumBuildDep()
  File "/usr/bin/yum-builddep", line 64, in __init__
    self.main()
  File "/usr/bin/yum-builddep", line 93, in main
    self.get_build_deps(opts)
  File "/usr/bin/yum-builddep", line 173, in get_build_deps
    for srpm in toActOn:
UnboundLocalError: local variable 'toActOn' referenced before assignment
Reply With Quote
  #5  
Old 3rd March 2010, 11:41 PM
tripleninez Offline
Registered User
 
Join Date: Jan 2010
Location: Toronto, Canada
Posts: 77
linuxfedorafirefox
yes, i have encountered this bug as well, not only that, but the recommended fix has not
fixed the problem.....there also is another bug i have run into and am not sure how to fix....
same thing as you building a kernel....i get almost all the way through and then
becuase of a missing operand, that i am not usre how to get around. i can't build my kernel....

if anyone has an idea on how to fix this drop me a line!

....following the Custom-kernel guide:

rpmbuild -bb --with baseonly --with firmware --without debuginfo --target=`uname -m` kernel.spec

im done configuring, ready to build....almost done and this happens!

Code:
  INSTALL /home/ninez/rpmbuild/BUILDROOT/kernel-2.6.32zen6-1.i386/lib/firmware/bnx2/bnx2-mips-06-5.0.0.j3.fw
  INSTALL /home/ninez/rpmbuild/BUILDROOT/kernel-2.6.32zen6-1.i386/lib/firmware/bnx2/bnx2-rv2p-06-5.0.0.j3.fw
  DEPMOD  2.6.32-zen6
+ cp /home/ninez/rpmbuild/BUILDROOT/kernel-2.6.32zen6-1.i386/boot/vmlinuz-2.6.32-zen6
cp: missing destination file operand after `/home/ninez/rpmbuild/BUILDROOT/kernel-2.6.32zen6-1.i386/boot/vmlinuz-2.6.32-zen6'
Try `cp --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.9IFJl5 (%install)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.9IFJl5 (%install)
[ninez@Ninez SPECS]$
this isn't isolated, anytime i try to build a kernel this happens. it looks like a "space" is missing.
i looked through code to see if i could find and fix the problem, but no luck....

it's very annoying, 1st off not being able to "builddep", okay that's fine i can still move along, as i have all of the dependencies, only to find this next error .as a linux user, i expect to have to do a lot of setups and fixes, but it's really dumb when some of the most important tools don't work properly,
as unlike say a MAC or windows box - which will handle most anything you throw at it, linux is in limbo, half working half not so much...and just when things seem to be working great - linux craps out again....lol

anyway, if someone has run into this and has a good fix, i would appreciate the help!
take care and thanks.

i am in the meantime im gonna google a bit and probably manually finish this kernel,
i just wish dev-tools were just a little less buggy, and a little
more reliable and solid-state in linux. cause we the the linux community are so reliant of them.
well, maybe another 8months to a year and i can start contributing code and fix bugs myself,
but i am just ing learning C++ this year....
Reply With Quote
Reply

Tags
building, custom, kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a custom kernel on fc12 tokyojoe Using Fedora 1 14th January 2010 12:17 PM
Building a custom kernel wavelength Using Fedora 2 10th July 2009 12:37 AM
Problems Building Custom Kernel FriedChips Using Fedora 6 9th October 2007 08:29 PM
Custom Kernel Not Building (FC7) jfoster Using Fedora 5 20th July 2007 06:09 PM
building a custom kernel [FC2] rico EOL (End Of Life) Versions 6 14th June 2004 04:55 AM


Current GMT-time: 07:57 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat