LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   debug_kernel (https://www.linuxquestions.org/questions/linux-newbie-8/debug_kernel-914908/)

GNakul 11-22-2011 08:58 AM

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

rodrifra 11-22-2011 09:35 AM

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.

GNakul 11-22-2011 10:46 PM

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???

rodrifra 11-23-2011 05:36 AM

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.

colorpurple21859 11-23-2011 09:31 AM

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

GNakul 11-23-2011 11:12 PM

1 Attachment(s)
@ 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.

GNakul 11-25-2011 02:49 AM

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.

rodrifra 11-25-2011 07:26 AM

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


All times are GMT -5. The time now is 03:39 AM.