Aaron Knister
2007-Nov-27 18:16 UTC
[Lustre-discuss] building against kernel-lustre-source
I''ve downloaded the kernel-lustre-source packge for rhel5-x86_64. I''m wanting to build some modules against the pre-patched source and then also build lustre from it. When I try to build lustre using the command ./configure --with-linux=/usr/src/ linux-2.6.18-8.1.14.el5_lustre.1.6.3 --with-linux-obj=/usr/src/ linux-2.6.18-8.1.14.el5_lustre.1.6.3-obj/x86_64/smp/ I get this error-- checking that modules can be built at all... no configure: WARNING: Consult config.log for details. configure: WARNING: If you are trying to build with a kernel-source rpm, consult build/README.kernel-source I tried the instructions on the lustre wiki to build against the kernel source but to no avail. Any ideas? Aaron Knister Associate Systems Administrator/Web Designer Center for Research on Environment and Water (301) 595-7001 aaron at iges.org
Wojciech Turek
2007-Nov-27 18:29 UTC
[Lustre-discuss] building against kernel-lustre-source
Hi, Try to follow these steps: cd /usr/src/<linux-lustre-kernel-source>/ make mrproper cp /usr/src/<linux-kernel-source-obj>/x86_64/smp/.config . #Edit Makefile EXTRAVERSION = -55.0.9.EL_lustre.1.6.3smp make menuconfig make include/asm make include/linux/version.h make SUBDIRS=scripts cd ../lustre-source/ make clean ./configure --with-linux=/usr/src/<linux-lustre-kernel-source> I assume your kernel-source and lustre source are located in /usr/src Another assumption for steps above is that you are #root when performing these steps. However you don''t have to be root to perform these steps. You can unpack rpms with kernel and lustre source under your home directory and then build lustre there. I hope this helps Wojciech Turek On 27 Nov 2007, at 18:16, Aaron Knister wrote:> I''ve downloaded the kernel-lustre-source packge for rhel5-x86_64. I''m > wanting to build some modules against the pre-patched source and then > also build lustre from it. When I try to build lustre using the > command ./configure --with-linux=/usr/src/ > linux-2.6.18-8.1.14.el5_lustre.1.6.3 --with-linux-obj=/usr/src/ > linux-2.6.18-8.1.14.el5_lustre.1.6.3-obj/x86_64/smp/ I get this > error-- > > checking that modules can be built at all... no > configure: WARNING: Consult config.log for details. > configure: WARNING: If you are trying to build with a kernel-source > rpm, consult build/README.kernel-source > > I tried the instructions on the lustre wiki to build against the > kernel source but to no avail. > > Any ideas? > > Aaron Knister > Associate Systems Administrator/Web Designer > Center for Research on Environment and Water > > (301) 595-7001 > aaron at iges.org > > > > _______________________________________________ > Lustre-discuss mailing list > Lustre-discuss at clusterfs.com > https://mail.clusterfs.com/mailman/listinfo/lustre-discussMr Wojciech Turek Assistant System Manager University of Cambridge High Performance Computing service email: wjt27 at cam.ac.uk tel. +441223763517 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.lustre.org/pipermail/lustre-discuss/attachments/20071127/fe2a2fd1/attachment-0002.html
Brian J. Murrell
2007-Nov-27 22:14 UTC
[Lustre-discuss] building against kernel-lustre-source
On Tue, 2007-11-27 at 18:29 +0000, Wojciech Turek wrote:> Hi, > > > Try to follow these steps: > > > cd /usr/src/<linux-lustre-kernel-source>/ > make mrproper > cp /usr/src/<linux-kernel-source-obj>/x86_64/smp/.config . > #Edit Makefile > EXTRAVERSION = -55.0.9.EL_lustre.1.6.3smp > make menuconfig > make include/asm > make include/linux/version.h > make SUBDIRS=scriptsThe real solution is to use the fact that we ship our kernel source using Suse''s "object dir" format. That provides fully configured source trees for various arches. Unfortunately, this support is broken until 1.6.5, tracked by bug 13690. There is a patch in there that fixes it. Using the --with-linux-obj=... argument to configure prevents the need to do all of the make goop in the real source tree. b.