Matthias Hüsken
2009-Apr-14 13:21 UTC
[Lustre-discuss] Patchless client ppc64 with 2.6.27+ kernel
Hi, I''m trying to compile the lustre patchless client for ppc64-based clients (Cell-based, to be more exact) with recent kernels (2.6.27/28). Unfortunately, the lustre "configure" always tells me that the kernel does not support building modules (which it does support of course). Here''s what I''m doing exactly: - untar, configure & build kernel, say in /tmp/linux-2.6.27: * cd /tmp * tar xjf linux-2.6.27.tar.bz2 * cd linux-2.6.27 * make menuconfig * make - copy some version of lustre to /tmp/lustre (tried with different versions, including cvs v1_6_7_1_RC2 and v1_8_0_RC5); afterwards try to configure: * cd /tmp/lustre * ./configure --with-linux=/tmp/linux-2.6.27 --disable-server The last step fails with the following errors message (lustre v1_8_0_RC5): ------- checking if you are using Linux 2.6... yes checking for external module build support... yes 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 configure: error: Kernel modules cannot be built. ------- Any idea what is going wrong (or what I am doing wrong)? I also tested on an i686 host; there the "configure" worked without problems, so this seems to be ppc64-related. Aside from this specific problem, how are plans for supporting recent kernel versions for ppc64 clients? Matthias -- ------------------------------------------------ Matthias H?sken Phone: +49 202 439-3362 Fachbereich Mathematik Fax: +49 202 439-2912 Bergische Universit?t Gau?stra?e 20 D - 42097 Wuppertal ------------------------------------------------ e-mail: Matthias.Huesken at math.uni-wuppertal.de ------------------------------------------------
Brian J. Murrell
2009-Apr-14 13:46 UTC
[Lustre-discuss] Patchless client ppc64 with 2.6.27+ kernel
On Tue, 2009-04-14 at 15:21 +0200, Matthias H?sken wrote:> Hi,Hi,> checking if you are using Linux 2.6... yes > checking for external module build support... yes > checking that modules can be built at all... no > configure: WARNING: Consult config.log for details.^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Did you do this? What did it report? b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090414/483dd591/attachment.bin
Matthias Hüsken
2009-Apr-14 14:48 UTC
[Lustre-discuss] Patchless client ppc64 with 2.6.27+ kernel
Sorry, forgot to attach the config.log... It seems some kernel header files cannot be found (e.g. posix_types.h), either because they are not in the correct location or lustre does no find them. Matthias On Tue, 2009-04-14 at 15:46 +0200, Brian J.Murrell wrote:> > Hi, > > Hi, > > > checking if you are using Linux 2.6... yes > > checking for external module build support... yes > > checking that modules can be built at all... no > > configure: WARNING: Consult config.log for details. > > ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Did you do this? > > What did it report? > > b. >-- ------------------------------------------------ Matthias H?sken Phone: +49 202 439-3362 Fachbereich Mathematik Fax: +49 202 439-2912 Bergische Universit?t Gau?stra?e 20 D - 42097 Wuppertal ------------------------------------------------ e-mail: Matthias.Huesken at math.uni-wuppertal.de ------------------------------------------------ -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 83130 bytes Desc: not available Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090414/0186419b/attachment-0001.bin
Brian J. Murrell
2009-Apr-14 16:36 UTC
[Lustre-discuss] Patchless client ppc64 with 2.6.27+ kernel
On Tue, 2009-04-14 at 16:48 +0200, Matthias H?sken wrote:> Sorry, forgot to attach the config.log... > > It seems some kernel header files cannot be found (e.g. posix_types.h), either > because they are not in the correct location or lustre does no find them.From the config.log: checking that modules can be built at all configure:5089: cp conftest.c build && make -d modules CC=gcc -m64 -f /tmp/lustre/build/Makefile LUSTRE_LINUX_CONFIG=/tmp/linux-2.6.27/.config LINUXINCLUDE= -I/tmp/linux-2.6.27/include -I/tmp/linux-2.6.27/include -I/tmp/linux-2.6.27/include2 -include include/linux/autoconf.h -o tmp_include_depends -o scripts -o include/config/MARKER -C /tmp/linux-2.6.27 EXTRA_CFLAGS=-Werror-implicit-function-declaration -g -I/tmp/lustre/lnet/include -I/tmp/lustre/lnet/include -I/tmp/lustre/lustre/include M=/tmp/lustre/build In file included from /tmp/linux-2.6.27/include/linux/types.h:11, from /tmp/linux-2.6.27/include/linux/prefetch.h:13, from /tmp/linux-2.6.27/include/linux/list.h:6, from /tmp/linux-2.6.27/include/linux/module.h:9, from /tmp/lustre/build/conftest.mod.c:1: /tmp/linux-2.6.27/include/linux/posix_types.h:47:29: error: asm/posix_types.h: No such file or directory In file included from /tmp/linux-2.6.27/include/linux/prefetch.h:13, from /tmp/linux-2.6.27/include/linux/list.h:6, from /tmp/linux-2.6.27/include/linux/module.h:9, from /tmp/lustre/build/conftest.mod.c:1: /tmp/linux-2.6.27/include/linux/types.h:12:23: error: asm/types.h: No such file or directory In file included from /tmp/linux-2.6.27/include/linux/prefetch.h:13, from /tmp/linux-2.6.27/include/linux/list.h:6, from /tmp/linux-2.6.27/include/linux/module.h:9, from /tmp/lustre/build/conftest.mod.c:1: Is /tmp/linux-2.6.27 the exact source pool you built your kernel from? It would seem that the asm->asm-<arch> symlink is not in place. Can you paste the output of: $ ls -l /tmp/linux-2.6.27/include/ here? b. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.lustre.org/pipermail/lustre-discuss/attachments/20090414/740f1da1/attachment.bin
Matthias Hüsken
2009-Apr-14 22:22 UTC
[Lustre-discuss] Patchless client ppc64 with 2.6.27+ kernel
> Is /tmp/linux-2.6.27 the exact source pool you built your kernel from?Yes.> It would seem that the asm->asm-<arch> symlink is not in place. Can you > paste the output of: > > $ ls -l /tmp/linux-2.6.27/include/$ ls -l /tmp/linux-2.6.27/include -rw-r--r-- 1 huesken users 218 10. Okt 2008 Kbuild drwxr-xr-x 3 huesken users 4096 10. Okt 2008 acpi lrwxrwxrwx 1 huesken users 11 14. Apr 14:18 asm -> asm-powerpc drwxr-xr-x 4 huesken users 4096 10. Okt 2008 asm-arm drwxr-xr-x 4 huesken users 4096 10. Okt 2008 asm-cris drwxr-xr-x 2 huesken users 4096 10. Okt 2008 asm-frv drwxr-xr-x 3 huesken users 4096 10. Okt 2008 asm-generic drwxr-xr-x 7 huesken users 4096 10. Okt 2008 asm-m32r drwxr-xr-x 2 huesken users 4096 10. Okt 2008 asm-m68k drwxr-xr-x 43 huesken users 12288 10. Okt 2008 asm-mips drwxr-xr-x 5 huesken users 4096 10. Okt 2008 asm-mn10300 drwxr-xr-x 2 huesken users 4096 10. Okt 2008 asm-parisc drwxr-xr-x 2 huesken users 4096 14. Apr 14:18 asm-powerpc drwxr-xr-x 2 huesken users 4096 10. Okt 2008 asm-um drwxr-xr-x 13 huesken users 12288 10. Okt 2008 asm-x86 drwxr-xr-x 4 huesken users 4096 10. Okt 2008 asm-xtensa drwxr-xr-x 206 huesken users 12288 14. Apr 14:18 config drwxr-xr-x 3 huesken users 4096 10. Okt 2008 crypto drwxr-xr-x 2 huesken users 4096 10. Okt 2008 drm drwxr-xr-x 2 huesken users 4096 10. Okt 2008 keys drwxr-xr-x 30 huesken users 32768 14. Apr 14:42 linux drwxr-xr-x 2 huesken users 4096 10. Okt 2008 math-emu drwxr-xr-x 2 huesken users 4096 10. Okt 2008 media drwxr-xr-x 2 huesken users 4096 10. Okt 2008 mtd drwxr-xr-x 11 huesken users 4096 10. Okt 2008 net drwxr-xr-x 2 huesken users 4096 10. Okt 2008 pcmcia drwxr-xr-x 2 huesken users 4096 10. Okt 2008 rdma drwxr-xr-x 2 huesken users 4096 10. Okt 2008 rxrpc drwxr-xr-x 2 huesken users 4096 10. Okt 2008 scsi drwxr-xr-x 2 huesken users 4096 10. Okt 2008 sound drwxr-xr-x 2 huesken users 4096 10. Okt 2008 video drwxr-xr-x 3 huesken users 4096 10. Okt 2008 xen $ ls -l /tmp/linux-2.6.27/include/asm-powerpc/ -rw-r--r-- 1 huesken users 11089 14. Apr 14:18 asm-offsets.h For me, the link itself seems ok, but the directory it links to is almost empty. A "find" for posix_types.h shows the following: $ find /tmp/linux-2.6.27/include -name posix_types.h /tmp/linux-2.6.27/include/asm-mips/posix_types.h /tmp/linux-2.6.27/include/asm-frv/posix_types.h /tmp/linux-2.6.27/include/asm-um/posix_types.h /tmp/linux-2.6.27/include/asm-cris/posix_types.h /tmp/linux-2.6.27/include/asm-xtensa/posix_types.h /tmp/linux-2.6.27/include/linux/posix_types.h /tmp/linux-2.6.27/include/asm-parisc/posix_types.h /tmp/linux-2.6.27/include/asm-x86/posix_types.h /tmp/linux-2.6.27/include/asm-m32r/posix_types.h /tmp/linux-2.6.27/include/asm-mn10300/posix_types.h /tmp/linux-2.6.27/include/asm-m68k/posix_types.h I do not have much knowledge about the kernel''s directory structure, I would assume posix_types.h (and maybe other headers) might have to be included from the include/linux dir? Matthias -- ------------------------------------------------ Matthias H?sken Phone: +49 202 439-3362 Fachbereich Mathematik Fax: +49 202 439-2912 Bergische Universit?t Gau?stra?e 20 D - 42097 Wuppertal ------------------------------------------------ e-mail: Matthias.Huesken at math.uni-wuppertal.de ------------------------------------------------