Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Red Hat Install (http://www.linux-archive.org/red-hat-install/)
-   -   RHEL 6.0 source code build error (http://www.linux-archive.org/red-hat-install/463744-rhel-6-0-source-code-build-error.html)

ShibuThomas 12-10-2010 05:22 AM

RHEL 6.0 source code build error
 
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


Regards,
ShibuThomas



_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@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@redhat.com
Subject: unsubscribe

Rick Stevens 12-10-2010 04:55 PM

RHEL 6.0 source code build error
 
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@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@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@redhat.com
Subject: unsubscribe

ShibuThomas 12-16-2010 07:19 AM

RHEL 6.0 source code build error
 
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@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@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@redhat.com
Subject: unsubscribe






_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@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@redhat.com
Subject: unsubscribe

ShibuThomas 12-16-2010 08:50 AM

RHEL 6.0 source code build error
 
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@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@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@redhat.com
Subject: unsubscribe






_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@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@redhat.com
Subject: unsubscribe






_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@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@redhat.com
Subject: unsubscribe

ShibuThomas 12-17-2010 10:02 AM

RHEL 6.0 source code build error
 
Hi All,

How can I use Trusted grub instead of normal grub with RHEL6.0.

Can anyone help me to downland Trusted grub, Its compilation and
installation.


Regards,
ShibuThomas



_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@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@redhat.com
Subject: unsubscribe

Rick Stevens 12-22-2010 04:19 PM

RHEL 6.0 source code build error
 
On 12/17/2010 03:02 AM, ShibuThomas wrote:

Hi All,

How can I use Trusted grub instead of normal grub with RHEL6.0.

Can anyone help me to downland Trusted grub, Its compilation and
installation.


You probably need to pull down the tarball for trusted grub and install
it based on the instructions in the README or INSTALL document. While
I can't speak for it directly, it'd be something like:

(download to a working directory)
tar xzf TrustedGRUB.1.1.5.tar.gz
cd TrustedGRUB.1.1.5

and view the README file. Pretty straightforward.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks@nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- Do you know where _your_ towel is? -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@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@redhat.com
Subject: unsubscribe


All times are GMT. The time now is 03:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.