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

Rupert Dance rsdance at soft-forge.com
Mon May 11 10:57:19 PDT 2015


Hi Alexander,

 

1.      OFED 3.12-1 does not support RHEL 7.1

2.      OFED 3.18 should build on RHEL 7.1 but we are still in the process
of resolving a few issues. So here are my suggestions:

a.       Make sure you have not installed IB support when installing RHEL
7.1 or you could get conflicts.

b.      Use the latest OFED 3.18 daily build:
https://www.openfabrics.org/downloads/OFED/ofed-3.18-daily/OFED-3.18-2015051
1-1046.tgz

c.       Check the bugs in OFA Bugzilla:
http://bugs.openfabrics.org/bugzilla/ 

d.      If you still have trouble, please attached the full build logs from
the OFED installation.

 

Thanks

 

Rupert

 

From: users-bounces at lists.openfabrics.org
[mailto:users-bounces at lists.openfabrics.org] On Behalf Of Heinecke,
Alexander
Sent: Sunday, May 10, 2015 11:42 PM
To: users at lists.openfabrics.org
Subject: [Users] Trouble compiling OFED 3.12 and 3.18 on RHEL7.1/ CentOS 7.1

 

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/mthc
a_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/mthc
a_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/mthc
a_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/c9350743/attachment.html>


More information about the Users mailing list