RHEL 6.0 source code build error

ShibuThomas shibuthomas at tataelxsi.co.in
Thu Dec 16 09:50:04 UTC 2010


Hi All,

It get solved.

The problem was the custom kernel didn't have there own initramfs file.

In my case I used the initramfs of the default kernel.Now I create new 
initramfs  of my custom kernel using the command   "dracut 
"initramfs-$(uname -r).img" $(uname -r)".

Finally it is getting working fine.

Regards,
ShibuThomas
On 12/16/2010 1:49 PM, ShibuThomas wrote:
> Hi all,
> Now I compiled and installed customized kernel.The problem I'm facing 
> now is during the loading, it is
> showing the  error:"FATAL ERROR :could not load 
> /lib/modules/2.6.32-custom-22.6.32-71/modules.dep:No such file or 
> directory".
> I verified the following things.
> 1. After installation of modules,I found  the custom vimlinuz image is 
> available in /boot and 2.6.32-custom-            22.6.32-71 folder is 
> created in lib directory.
>
> 2. I modified grub to add the new custom linuz image also in the 
> list.I used the same initramfs file that is used     by the default 
> kernel for custom kernel also.
>
> 3. restart the system and verified that new kernel image is also 
> available in grub prompt.selected the custom     kernel.but I getting 
> above mentioned error message.
>
> Regrads
> ShibuThomas
>
>
> On 12/10/2010 11:25 PM, Rick Stevens wrote:
>> On 12/09/2010 10:22 PM, ShibuThomas wrote:
>>> Hi All,
>>>
>>> I have installed RHEL 6.0(30 days evaluation version) on my PC.It is
>>> working fine.
>>> But I tried to compile source code it is getting failed:
>>>
>>> The method I followed to compile RHEL6.0 kernel Source are:
>>>
>>> 1) I take the package kernel-devel-2.6.32-71.el6.x86_64.rpm and extract
>>> it into my directory
>>> 2) From 2.6.32-71.el6.x86_64 directory,I executed make command
>>> I got the following make error
>>> " SYMLINK include/asm -> include/asm-x86
>>> make[1]: *** No rule to make target `missing-syscalls'. Stop.
>>> make: *** [prepare0] Error 2 "
>>>
>>> please let me know how can I rectify this problem
>>
>> Note that kernel-devel RPMs are NOT the kernel source code, but rather
>> the makefiles and such necessary to build modules AGAINST the kernel,
>> for example, a new device driver of some sort.
>>
>> If you want the kernel source code RPM (the actual kernel source), then
>> you must download "kernel-2.6.32-71.el6.src.rpm", install it, then use
>> rpmbuild to configure and build it.
>>
>> It appears you've never done this, and the instructions to build a
>> kernel from the source RPM are a bit more complex that I'd care to go
>> into here.  I suggest you install rpmbuild and read the manpages for it
>> or find resources on the web about rpmbuild before you go and try to
>> build a kernel.
>> ----------------------------------------------------------------------
>> - Rick Stevens, Systems Engineer, C2 Hosting          ricks at nerd.com -
>> - AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
>> -                                                                    -
>> -   UNIX is actually quite user friendly.  The problem is that it's  -
>> -              just very picky of who its friends are!               -
>> ----------------------------------------------------------------------
>>
>> _______________________________________________
>> Redhat-install-list mailing list
>> Redhat-install-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/redhat-install-list
>> To Unsubscribe Go To ABOVE URL or send a message to:
>> redhat-install-list-request at redhat.com
>> Subject: unsubscribe
>>
>
>
>
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
>







More information about the Redhat-install-list mailing list