[Lustre-discuss] Building Lustre client on Ubuntu 12.04 LTS
Phill Harvey-Smith
p.harvey-smith at warwick.ac.uk
Tue Jul 30 08:52:16 PDT 2013
On 30/07/2013 16:29, Diep, Minh wrote:
> Hi Phill,
>
> Please try
>
> Sh autogen.sh
> ./configure --disable-server
Doh! that is what I tried, but not what I wrote in my email :(
I have found the required .config file however and put it in
/lib/modules/3.8.0-27-generic/build/.config (it's installed in /boot on
Ubuntu).
However it now bombs out at :
checking if Linux was built with symbol truncate_complete_page
exported... no
checking if Linux was built with symbol remove_from_page_cache
exported... no
checking if Linux was built with symbol delete_from_page_cache
exported... yes
checking for
/lib/modules/3.8.0-27-generic/build/include/linux/bit_spinlock.h... yes
checking if bit_spinlock.h can be compiled... no
checking if Linux was built with CONFIG_CRYPTO in or as module... no
configure: error: Lustre capability require that CONFIG_CRYPTO is
enabled in your kernel.
Just out of interest I tried building the 2.4 branch as I had been using
this on the older nodes (on 10.04LTS), this also bombs out in the
configure stage, looking in the config.log, the relevant section where
it bombs out seems to be :
configure:6408: checking for external module build support
configure:6426: cp conftest.c build && make -d
/usr/src/Lustere/lustre-release/build LUSTRE_KERNEL_TEST=conftest.i
LD=ld CC=gcc -f /usr/src/Lustere/lustre-release/build/Makefile
LUSTRE_LINUX_CONFIG=/lib/modules/3.8.0-27-generic/build/.config
LINUXINCLUDE= -I/lib/modules/3.8.0-27-generic/build/arch/x86/include
-I/lib/modules/3.8.0-27-generic/build/arch/x86/include/generated
-I/lib/modules/3.8.0-27-generic/build/include
-I/lib/modules/3.8.0-27-generic/build/include
-I/lib/modules/3.8.0-27-generic/build/include2 -include
include/linux/kconfig.h -o tmp_include_depends -o scripts -o
include/config/MARKER -C /lib/modules/3.8.0-27-generic/build
EXTRA_CFLAGS=-Werror-implicit-function-declaration -g
-I/usr/src/Lustere/lustre-release/libcfs/include
-I/usr/src/Lustere/lustre-release/lnet/include
-I/usr/src/Lustere/lustre-release/lustre/include
SUBDIRS=/usr/src/Lustere/lustre-release/build
configure:6429: $? = 0
configure:6431: test -s build/conftest.i
configure:6434: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Lustre"
| #define PACKAGE_TARNAME "lustre"
| #define PACKAGE_VERSION "LUSTRE_VERSION"
| #define PACKAGE_STRING "Lustre LUSTRE_VERSION"
| #define PACKAGE_BUGREPORT "http://bugs.whamcloud.com/"
| #define PACKAGE_URL ""
| #define PACKAGE "lustre"
| #define VERSION "2.4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define CDEBUG_ENABLED 1
| #define CDEBUG_ENTRY_EXIT 1
| #define LIBCFS_DEBUG 1
| #define HAVE_SYS_QUOTA_H 1
| /* end confdefs.h. */
|
| #include <linux/kernel.h>
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:6462: cp conftest.c build && make -d
_module_/usr/src/Lustere/lustre-release/build
LUSTRE_KERNEL_TEST=conftest.i LD=ld CC=gcc -f
/usr/src/Lustere/lustre-release/build/Makefile
LUSTRE_LINUX_CONFIG=/lib/modules/3.8.0-27-generic/build/.config
LINUXINCLUDE= -I/lib/modules/3.8.0-27-generic/build/arch/x86/include
-I/lib/modules/3.8.0-27-generic/build/arch/x86/include/generated
-I/lib/modules/3.8.0-27-generic/build/include
-I/lib/modules/3.8.0-27-generic/build/include
-I/lib/modules/3.8.0-27-generic/build/include2 -include
include/linux/kconfig.h -o tmp_include_depends -o scripts -o
include/config/MARKER -C /lib/modules/3.8.0-27-generic/build
EXTRA_CFLAGS=-Werror-implicit-function-declaration -g
-I/usr/src/Lustere/lustre-release/libcfs/include
-I/usr/src/Lustere/lustre-release/lnet/include
-I/usr/src/Lustere/lustre-release/lustre/include
M=/usr/src/Lustere/lustre-release/build
In file included from
/lib/modules/3.8.0-27-generic/build/include/linux/types.h:5:0,
from
/lib/modules/3.8.0-27-generic/build/include/linux/kernel.h:8,
from /usr/src/Lustere/lustre-release/build/conftest.c:27:
/lib/modules/3.8.0-27-generic/build/include/uapi/linux/types.h:4:23:
fatal error: asm/types.h: No such file or directory
compilation terminated.
make[1]: *** [/usr/src/Lustere/lustre-release/build/conftest.i] Error 1
make: *** [_module_/usr/src/Lustere/lustre-release/build] Error 2
configure:6465: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Lustre"
| #define PACKAGE_TARNAME "lustre"
| #define PACKAGE_VERSION "LUSTRE_VERSION"
| #define PACKAGE_STRING "Lustre LUSTRE_VERSION"
| #define PACKAGE_BUGREPORT "http://bugs.whamcloud.com/"
| #define PACKAGE_URL ""
| #define PACKAGE "lustre"
| #define VERSION "2.4.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define CDEBUG_ENABLED 1
| #define CDEBUG_ENTRY_EXIT 1
| #define LIBCFS_DEBUG 1
| #define HAVE_SYS_QUOTA_H 1
| /* end confdefs.h. */
|
| #include <linux/kernel.h>
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:6481: error: unknown; check config.log for details
Cheers.
Phill.
More information about the lustre-discuss
mailing list