[Lustre-discuss] Building Lustre client on Linux kernel 3.14

Bartek bgrinning at gmail.com
Thu May 29 03:15:31 PDT 2014


Hello,

I'm trying to build Lustre client on Debian Wheezy with kernel
3.14-0.bpo.1-amd64. Here are my build steps are:
sh ./autogen.sh
sudo ./configure --disable-server
sudo dpkg-buildpackage
sudo dpkg -i lustre-source_2.5.59.0-32-gb265903_all.deb
sudo m-a -t build lustre
I also patched debian/rules to: ./configure --disable-server
--disable-ldfiskfs

I'm aware of changes needed for latest kernels (3.12-14):
https://jira.hpdd.intel.com/browse/LU-4416
https://jira.hpdd.intel.com/browse/LU-4993

So far, I applied the shrinker patch locally:
http://review.whamcloud.com/#/c/9300 and that allowed me to get past the
shrinker compilation error. But now I'm running into another error (error:
"CONFIG_LNET_MAX_PAYLOAD" redefined) for which I didn't find any mentions
in Jira:

...
echo "#define LUSTRE_RELEASE 3.14_0.bpo.1_amd64_gb265903" >> tmpver
cmp -s ../lustre/include/lustre/lustre_build_version.h tmpver > tmpdiff 2>
/dev/null &&   \
                rm -f tmpver tmpdiff ||         \
    mv -f tmpver ../lustre/include/lustre/lustre_build_version.h
make[5]: Leaving directory `/usr/src/modules/lustre/lustre'
/usr/bin/make CC="gcc"  -C /lib/modules/3.14-0.bpo.1-amd64/build       \
  -f /usr/src/modules/lustre/build/Makefile
LUSTRE_LINUX_CONFIG=/lib/modules/3.14-0.bpo.1-amd64/build/.config \
  LINUXINCLUDE='-I$(srctree)/arch/$(SRCARCH)/include
-I$(srctree)/arch/$(SRCARCH)/include/generated -Iinclude $(if
$(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)
-I$(srctree)/arch/$(SRCARCH)/include/uapi
-Iarch/$(SRCARCH)/include/generated/uapi -I$(srctree)/include/uapi
-Iinclude/generated/uapi -include
/lib/modules/3.14-0.bpo.1-amd64/source/include/linux/kconfig.h' \
  M=/usr/src/modules/lustre -o tmp_include_depends -o scripts -o \
  include/config/MARKER modules
make[5]: Entering directory `/usr/src/linux-headers-3.14-0.bpo.1-amd64'
  CC [M]  /usr/src/modules/lustre/libcfs/libcfs/linux/linux-tracefile.o
In file included from <command-line>:0:0:
/usr/src/modules/lustre/config.h:26:0: error: "CONFIG_LNET_MAX_PAYLOAD"
redefined [-Werror]
In file included from
/lib/modules/3.14-0.bpo.1-amd64/source/include/linux/kconfig.h:4:0,
                 from <command-line>:0:
include/generated/autoconf.h:2953:0: note: this is the location of the
previous definition
cc1: all warnings being treated as errors
make[10]: ***
[/usr/src/modules/lustre/libcfs/libcfs/linux/linux-tracefile.o] Error 1
make[9]: *** [/usr/src/modules/lustre/libcfs/libcfs] Error 2
make[8]: *** [/usr/src/modules/lustre/libcfs] Error 2
make[7]: *** [_module_/usr/src/modules/lustre] Error 2
make[6]: *** [sub-make] Error 2
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/src/linux-headers-3.14-0.bpo.1-amd64'
make[4]: *** [modules] Error 2
make[4]: Leaving directory `/usr/src/modules/lustre'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/modules/lustre'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/modules/lustre'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/lustre'
make: *** [kdist_build] Error 2

Any ideas?

Thanks,
Bartek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20140529/1eb97a07/attachment.htm>


More information about the lustre-discuss mailing list