[Users] Trouble compiling OFED 3.12 and 3.18 on RHEL7.1/ CentOS 7.1

Heinecke, Alexander alexander.heinecke at intel.com
Sun May 10 20:42:26 PDT 2015


Hi,

I'm having troubles installing OFED 3.12 or 3.18 on RHEL7.1/CentOS7.1. Can somebody provides hints how I can compile on this platform:

Linux 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

With the latest nightly (3.18, daily from 5/5/15) build I'm getting (under RHEL 7.1 latest update):
                 from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/drivers/infiniband/hw/mthca/mthca_memfree.c:501:14: error: invalid use of undefined type 'struct ib_umem_chunk'
       struct ib_umem_chunk, list);
              ^
include/linux/compiler-gcc4.h:14:53: note: in definition of macro '__compiler_offsetof'
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
                                                     ^
include/linux/kernel.h:845:29: note: in expansion of macro 'offsetof'
  (type *)( (char *)__mptr - offsetof(type,member) );})
                             ^
include/linux/list.h:351:2: note: in expansion of macro 'container_of'
  container_of(ptr, type, member)
  ^
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/drivers/infiniband/hw/mthca/mthca_memfree.c:500:10: note: in expansion of macro 'list_entry'
  chunk = list_entry(db_tab->page[i].umem->chunk_list.next,
          ^
In file included from /usr/src/kernels/3.10.0-229.1.2.el7.x86_64/arch/x86/include/asm/scatterlist.h:4:0,
                 from include/linux/scatterlist.h:9,
                 from include/linux/dmaengine.h:27,
                 from include/linux/skbuff.h:31,
                 from include/linux/if_ether.h:23,
                 from include/linux/etherdevice.h:25,
                 from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/include/linux/compat-3.5.h:6,
                 from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/include/linux/compat-2.6.h:64,
                 from <command-line>:0:
/var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/drivers/infiniband/hw/mthca/mthca_memfree.c:503:53: error: dereferencing pointer to incomplete type
  ret = mthca_MAP_ICM_page(dev, sg_dma_address(&chunk->page_list[0]),

And with 3.12-1 stable:
make[1]: Entering directory `/usr/src/kernels/3.10.0-229.1.2.el7.x86_64'
  CC [M]  /var/tmp/OFED_topdir/BUILD/compat-rdma-3.12/compat/main.o
In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.12/include/linux/compat-2.6.29.h:5:0,
                 from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.12/include/linux/compat-2.6.h:55,
                 from <command-line>:0:
include/linux/netdevice.h: In function 'napi_enable':
include/linux/netdevice.h:504:2: error: implicit declaration of function 'smp_mb__before_clear_bit' [-Werror=implicit-function-declaration]
  smp_mb__before_clear_bit();


In both cases the abort happens when building the compat-rdma module.

I'm compiling with -with-xeon-phi, option, but even without this option I'm  running into this issue.

Many thanks for your help!
Alexander Heinecke

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/users/attachments/20150511/7be5d6f7/attachment.html>


More information about the Users mailing list