<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Times New Roman","serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:519588297;
        mso-list-type:hybrid;
        mso-list-template-ids:-1058143588 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Hi Alexander,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>OFED 3.12-1 does not support RHEL 7.1<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>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:<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><span style='mso-list:Ignore'>a.<span style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Make sure you have not installed IB support when installing RHEL 7.1 or you could get conflicts.<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><span style='mso-list:Ignore'>b.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Use the latest OFED 3.18 daily build: <a href="https://www.openfabrics.org/downloads/OFED/ofed-3.18-daily/OFED-3.18-20150511-1046.tgz">https://www.openfabrics.org/downloads/OFED/ofed-3.18-daily/OFED-3.18-20150511-1046.tgz</a><o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><span style='mso-list:Ignore'>c.<span style='font:7.0pt "Times New Roman"'>       </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Check the bugs in OFA Bugzilla: <a href="http://bugs.openfabrics.org/bugzilla/">http://bugs.openfabrics.org/bugzilla/</a> <o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><span style='mso-list:Ignore'>d.<span style='font:7.0pt "Times New Roman"'>      </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>If you still have trouble, please attached the full build logs from the OFED installation.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Rupert<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> users-bounces@lists.openfabrics.org [mailto:users-bounces@lists.openfabrics.org] <b>On Behalf Of </b>Heinecke, Alexander<br><b>Sent:</b> Sunday, May 10, 2015 11:42 PM<br><b>To:</b> users@lists.openfabrics.org<br><b>Subject:</b> [Users] Trouble compiling OFED 3.12 and 3.18 on RHEL7.1/ CentOS 7.1<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:black'>With the latest nightly (3.18, daily from 5/5/15) build I’m getting (under RHEL 7.1 latest update):<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from <command-line>:0:<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>/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'<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>       struct ib_umem_chunk, list);<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>              ^<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>include/linux/compiler-gcc4.h:14:53: note: in definition of macro '__compiler_offsetof'<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                                                     ^<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>include/linux/kernel.h:845:29: note: in expansion of macro 'offsetof'<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  (type *)( (char *)__mptr - offsetof(type,member) );})<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                             ^<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>include/linux/list.h:351:2: note: in expansion of macro 'container_of'<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  container_of(ptr, type, member)<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  ^<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>/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'<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  chunk = list_entry(db_tab->page[i].umem->chunk_list.next,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>          ^<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>In file included from /usr/src/kernels/3.10.0-229.1.2.el7.x86_64/arch/x86/include/asm/scatterlist.h:4:0,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from include/linux/scatterlist.h:9,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from include/linux/dmaengine.h:27,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from include/linux/skbuff.h:31,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from include/linux/if_ether.h:23,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from include/linux/etherdevice.h:25,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/include/linux/compat-3.5.h:6,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/include/linux/compat-2.6.h:64,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from <command-line>:0:<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>/var/tmp/OFED_topdir/BUILD/compat-rdma-3.18/drivers/infiniband/hw/mthca/mthca_memfree.c:503:53: error: dereferencing pointer to incomplete type<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  ret = mthca_MAP_ICM_page(dev, sg_dma_address(&chunk->page_list[0]),<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>And with 3.12-1 stable:<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>make[1]: Entering directory `/usr/src/kernels/3.10.0-229.1.2.el7.x86_64'<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  CC [M]  /var/tmp/OFED_topdir/BUILD/compat-rdma-3.12/compat/main.o<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>In file included from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.12/include/linux/compat-2.6.29.h:5:0,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from /var/tmp/OFED_topdir/BUILD/compat-rdma-3.12/include/linux/compat-2.6.h:55,<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>                 from <command-line>:0:<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>include/linux/netdevice.h: In function 'napi_enable':<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>include/linux/netdevice.h:504:2: error: implicit declaration of function 'smp_mb__before_clear_bit' [-Werror=implicit-function-declaration]<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>  smp_mb__before_clear_bit();<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>In both cases the abort happens when building the compat-rdma module.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m compiling with –with-xeon-phi, option, but even without this option I’m  running into this issue.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Many thanks for your help!<o:p></o:p></p><p class=MsoNormal>Alexander Heinecke<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>