0 Replies Latest reply on Dec 2, 2013 6:16 AM by klavsk

    compat-rdma-3.5 build problem on el6.4+3.11.5 kernel

      (repost - can't figure out where to post this)

       

      snippets of seemingly relevant info from output file:

      Applying patches for 3.1 kernel:

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/backports/3.1 no such directory

      Created configure.mk.kernel:

      # Current working directory

      CWD=/var/tmp/OFED_topdir/BUILD/compat-rdma-3.5

       

      # Kernel level

      KVERSION=3.11.5

      ARCH=x86_64

      MODULES_DIR=/lib/modules/3.11.5/updates

      KSRC=/lib/modules/3.11.5/build

      KLIB_BUILD=/lib/modules/3.11.5/build

      ..

      -I/root/rpmbuild/BUILD/kernel-3.11.5/arch/x86/include \

      -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(main)"  -D"KBUILD_MODNAME=KBUILD_STR(compat)" -c -o /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/compat/.tmp_main.o /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/compat/main.c

      In file included from <command-line>:0:

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:4:27: error: linux/version.h: No such file or directory

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:5:6: warning: "LINUX_VERSION_CODE" is not defined

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:5:28: warning: "KERNEL_VERSION" is not defined

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:5:42: error: missing binary operator before token "("

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:7:8: warning: "LINUX_VERSION_CODE" is not defined

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:7:30: warning: "KERNEL_VERSION" is not defined

      /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:7:44: error: missing binary operator before token "("

      In file included from include/linux/types.h:5,

                       from include/linux/init.h:5,

                       from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:12,

                       from <command-line>:0:

      include/uapi/linux/types.h:4:23: error: asm/types.h: No such file or directory

      include/uapi/linux/types.h:13:31: error: linux/posix_types.h: No such file or directory

      In file included from include/linux/types.h:5,

                       from include/linux/init.h:5,

                       from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:12,

                       from <command-line>:0:

      include/uapi/linux/types.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le16'

      include/uapi/linux/types.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be16'

      include/uapi/linux/types.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le32'

      include/uapi/linux/types.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be32'

      include/uapi/linux/types.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__le64'

      include/uapi/linux/types.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__be64'

      include/uapi/linux/types.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sum16'

      include/uapi/linux/types.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__wsum'

      In file included from include/linux/init.h:5,

                       from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/include/linux/compat-2.6.h:12,

                       from <command-line>:0:

       

       

      it seems OFED-3.5 is not compatible with linux 3.11.5 ? or perhaps I need to tweak something?