LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2011, 09:58 AM   #1
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Rep: Reputation: Disabled
debug_kernel


I need help to build a debug kernel on my CentOS 5.
I have downloaded the kernel 2.6.18 source in my /dev/sda3 mounted on /home. It has 20gb with it.

When i try to compile the kernel i am getting the following errors.
-----------------------------------------------------------------------------------------------------------------------------
{standard input}: Assembler messages:
{standard input}:36117: Fatal error: can't close drivers/ide/pci/.tmp_pdc202xx_old.o: No space left on device
make[5]: *** [drivers/ide/pci/pdc202xx_old.o] Error 1
make[4]: *** [drivers/ide/pci] Error 2
make[3]: *** [drivers/ide] Error 2
make[2]: *** [drivers] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.89909 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.89909 (%build)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2
--------------------------------------------------------------------------------------------------
*But i observe that i do have space in disk.

[root@localhost linux-2.6.18]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 3960348 3960244 0 100% /
/dev/sda3 19405620 546748 17857220 3% /home
/dev/sda1 46633 10831 33394 25% /boot
tmpfs 513396 0 513396 0% /dev/shm
--------------------------------------------------------------------------------------------------

Please help.
-Nakul
 
Old 11-22-2011, 10:35 AM   #2
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 201

Rep: Reputation: 36
Code:
/dev/sda2 3960348 3960244 0 100% /
You DON'T have space to compile.

As you can see in
Code:
error: Bad exit status from /var/tmp/rpm-tmp.89909 (%build)
/var/tmp is being used and there is no space left there.
 
1 members found this post helpful.
Old 11-22-2011, 11:46 PM   #3
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
Hi rodrifra,

I am using CentOS 5 on VmWare and partitions are done by vmware itself. I am compiling the new kernel on dev/sda3 mounted on /home. It has space of 20gb. What to do for this /var/temp ?? why is it bieng used? How to solve this issue??

Before i satrted compiling the new kernel the space in /dev/sda2 was around 850mb. I started compiling and it got exit in between with the above error. And now free space on /sda2 is 0bytes. But i do have lots of space in /sda3 mounted on /home. How do i fix it?
Am i got to do anything with the Makefile???

Last edited by GNakul; 11-23-2011 at 02:03 AM.
 
Old 11-23-2011, 06:36 AM   #4
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 201

Rep: Reputation: 36
I guess you are using gcc to compile. You can set your TMPDIR variable to a directory inside your /home directory so that temp files go there. But you have to free space on your / partition, otherwise your system may stop sooner than later.
 
1 members found this post helpful.
Old 11-23-2011, 10:31 AM   #5
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,904

Rep: Reputation: 261Reputation: 261Reputation: 261
If you need more virtual hard drive space, should be able to go into vmware edit virtual machine settings and increase the size of your virtual harddrive then use gedit or something similar to increase the size of your partiitons. Myy have to use a live cd for partiton editing
 
Old 11-24-2011, 12:12 AM   #6
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
@ rodrifra:The Makefile is too large 1500 lines. And not finding TMPDIR variable bieng used. What else may be the name of the variable it will be using?? Can you please help me. I am attaching the makefile here.
Attached Files
File Type: txt Makefile.txt (46.6 KB, 5 views)

Last edited by GNakul; 11-25-2011 at 03:50 AM.
 
Old 11-25-2011, 03:49 AM   #7
GNakul
Member
 
Registered: Oct 2011
Location: Bangalore,India
Posts: 59

Original Poster
Rep: Reputation: Disabled
Ok, in the Makefile it was #ifdef 0 for the 'Change target directory code'. Changed it and its compiled awesomely. Thanks for your help rodrifra.
 
Old 11-25-2011, 08:26 AM   #8
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 201

Rep: Reputation: 36
Glad you made it, I've been too busy these last couple of days, sorry
 
  


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
debug_kernel GNakul Linux - Kernel 3 11-22-2011 12:28 AM


All times are GMT -5. The time now is 06:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration