[Lustre-discuss] Trying to build lustre with unsupported kernel

Craig Tierney Craig.Tierney at noaa.gov
Wed Feb 13 13:49:28 PST 2008


I am trying to build lustre against and unsupported
kernel (2.6.20.20).  I am having some issues with it.

First, I patched the kernel.  Quilt had some difficulties
with some of the 2.6.18-vanilla patches, but I added them
by hand.  I was able to build and boot the kernel.

Then, I tried to build the lustre package (1.6.4.2).  I did
the following:

# ./configure --prefix=/opt/lustre/1.6.4.2--2.6.20.20-lustre \
               --with-linux=/usr/src/kernels/linux-2.6.20.20-lustre

I got most of the way through the configure process.  I saw the line:

checking for /usr/src/kernels/linux-2.6.20.20-lustre/include/linux/lustre_version.h... yes

Which is a good sign, that the configure script though I patched the kernel.
However, when it got to configuring ldiskfs, I had problems.  The configure
script didn't have any option for the 2.6.20.20 kernel.  The following message
was displayed:

checking which ldiskfs series to use... configure: WARNING: Unknown kernel version 2.6.20.20, fix ldiskfs/configure.ac

Ok, So I went and I modified configure.ac to include support for 2.6.20.20.
I just told it to use the 2.6.18-vanilla case (to see what would happen).
However, I haven't gotten any further.  To build properly, I need to regenerate
the configure file from configure.ac.  I am not sure the proper way to do that.
when I run make in the ldiskfs directory, that does re-create the configure file.
However, it does not do it successfully.  Many of the macros (is that the right
term) in the configure.ac file are not expanded properly.

Here is the output from make run from the root directory:

[root at wupdate lustre-1.6.4.2]# make
test -d CVS || exit 0; \
list=""; for mod in $list; do \
   perl ./build/kabi -v archive $HOME/nonfree $mod || exit $?; \
done
make  all-recursive
make[1]: Entering directory `/usr/src/lustre/lustre-1.6.4.2'
Making all in ldiskfs
make[2]: Entering directory `/usr/src/lustre/lustre-1.6.4.2/ldiskfs'
cd . && /bin/sh /usr/src/lustre/lustre-1.6.4.2/ldiskfs/missing --run aclocal-1.7
cd . && \
   /bin/sh /usr/src/lustre/lustre-1.6.4.2/ldiskfs/missing --run automake-1.7 --foreign  autoMakefile
cd . && /bin/sh /usr/src/lustre/lustre-1.6.4.2/ldiskfs/missing --run autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --prefix=/opt/lustre/1.6.4.2--2.6.20.20-lustre --with-linux=/usr/src/kernels/linux-2.6.20.20-lustre 
--with-lustre-hack --with-sockets --cache-file=/dev/null --srcdir=.  --no-create --no-recursion
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
./configure: line 2865: LB_CANONICAL_SYSTEM: command not found
./configure: line 2866: LB_INCLUDE_RULES: command not found
./configure: line 2867: LB_PROG_CC: command not found
checking whether to build kernel modules... yes
./configure: line 2905: LB_PROG_LINUX: command not found
./configure: line 2906: LB_LINUX_MODPOST: command not found
./configure: line 2909: LB_CONFIG_HEADERS: command not found
checking whether to enable quilt for making ldiskfs... yes
checking for patch... /usr/bin/patch
checking for quilt... no
./configure: line 3071: LB_DEFINE_LDISKFS_OPTIONS: command not found
checking which ldiskfs series to use... configure: WARNING: Unknown kernel version , fix ldiskfs/configure.ac

./configure: line 3096: LB_CONFIG_FILES: command not found
configure: creating ./config.status
cd . && /bin/sh ./config.status autoMakefile
config.status: error: invalid argument: autoMakefile

What is the proper way to rebuild the configure file?

Thanks,
Craig


-- 
Craig Tierney (craig.tierney at noaa.gov)



More information about the lustre-discuss mailing list