<html><body><p><font size="2">Hello Experts,</font><br><br><br><font size="2">I'm new to ofed and also this mailing lists.</font><br><br><font size="2">Recently, reading lots of introductions about the benefits of utilizing the RoCE interface for clusting soulutions.</font><br><font size="2">I'm wondering if the building of ofed packages on Linux on IBM z Systems are possible (s390x arch, such as the RHEL,Fedora,Clefos,SUSE and Ubuntu for z).</font><br><font size="2">We had the ConnectX-3 cards shipped with the z13 machine and will have ConnectX-4 cards shipped on the z14 machine.</font><br><br><img src="cid:3__=8FBB0B1CDFC38B258f9e8a93df938690918c8FB@" width="1309" height="189"><br><br><br><font size="2">My first try were on rhel 7.2 and Clefos 7.3 and failed with below warnings and erros in the compilation phrase as below. </font><br><br><font size="2">Could you kindly hava a look on the issues at your convenience?<br>Any help, comments, suggestions are appreciated!</font><br><br><font size="2">Thanks!!!</font><br><br>
<table border="1"><tr valign="top"><td width="1426"><font size="2">.......</font><br><br><font size="2">  CC [M]  /tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.o</font><br><font size="2">/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.c: In function mthca_map_user_db:</font><br><font size="2">/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.c:475:2: </font><b><font size="2" color="#FF0000">warning: passing argument 1 of get_user_pages makes pointer from integer without a cast [enabled by default]</font></b><br><font size="2">  ret = get_user_pages(uaddr & PAGE_MASK, 1, 1, 0, pages, NULL);</font><br><font size="2">  ^</font><br><font size="2">In file included from /tmp/compat-rdma/include/linux/mm.h:5:0,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/pgalloc.h:16,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/mmu_context.h:10,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/elf.h:134,</font><br><font size="2">                 from include/linux/elf.h:4,</font><br><font size="2">                 from include/linux/module.h:14,</font><br><font size="2">                 from /tmp/compat-rdma/include/linux/compat-2.6.h:22,</font><br><font size="2">                 from <command-line>:0:</font><br><font size="2">include/linux/mm.h:1166:6: note: expected struct task_struct * but argument is of type long long unsigned int</font><br><font size="2"> long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,</font><br><font size="2">      ^</font><br><font size="2">/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.c:475:2: </font><b><font size="2" color="#FF0000">warning: passing argument 2 of get_user_pages makes pointer from integer without a cast [enabled by default]</font></b><br><font size="2">  ret = get_user_pages(uaddr & PAGE_MASK, 1, 1, 0, pages, NULL);</font><br><font size="2">  ^</font><br><font size="2">In file included from /tmp/compat-rdma/include/linux/mm.h:5:0,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/pgalloc.h:16,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/mmu_context.h:10,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/elf.h:134,</font><br><font size="2">                 from include/linux/elf.h:4,</font><br><font size="2">                 from include/linux/module.h:14,</font><br><font size="2">                 from /tmp/compat-rdma/include/linux/compat-2.6.h:22,</font><br><font size="2">                 from <command-line>:0:</font><br><font size="2">include/linux/mm.h:1166:6: note: expected struct mm_struct * but argument is of type int</font><br><font size="2"> long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,</font><br><font size="2">      ^</font><br><font size="2">/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.c:475:2: </font><b><font size="2" color="#FF0000">warning: passing argument 5 of get_user_pages makes integer from pointer without a cast [enabled by default]</font></b><br><font size="2">  ret = get_user_pages(uaddr & PAGE_MASK, 1, 1, 0, pages, NULL);</font><br><font size="2">  ^</font><br><font size="2">In file included from /tmp/compat-rdma/include/linux/mm.h:5:0,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/pgalloc.h:16,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/mmu_context.h:10,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/elf.h:134,</font><br><font size="2">                 from include/linux/elf.h:4,</font><br><font size="2">                 from include/linux/module.h:14,</font><br><font size="2">                 from /tmp/compat-rdma/include/linux/compat-2.6.h:22,</font><br><font size="2">                 from <command-line>:0:</font><br><font size="2">include/linux/mm.h:1166:6: note: expected int but argument is of type struct page **</font><br><font size="2"> long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,</font><br><font size="2">      ^</font><br><font size="2">/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.c:475:2: </font><b><font size="2" color="#FF0000">warning: passing argument 6 of get_user_pages makes integer from pointer without a cast [enabled by default]</font></b><br><font size="2">  ret = get_user_pages(uaddr & PAGE_MASK, 1, 1, 0, pages, NULL);</font><br><font size="2">  ^</font><br><font size="2">In file included from /tmp/compat-rdma/include/linux/mm.h:5:0,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/pgalloc.h:16,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/mmu_context.h:10,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/elf.h:134,</font><br><font size="2">                 from include/linux/elf.h:4,</font><br><font size="2">                 from include/linux/module.h:14,</font><br><font size="2">                 from /tmp/compat-rdma/include/linux/compat-2.6.h:22,</font><br><font size="2">                 from <command-line>:0:</font><br><font size="2">include/linux/mm.h:1166:6: note: expected int but argument is of type void *</font><br><font size="2"> long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,</font><br><font size="2">      ^</font><br><font size="2">/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.c:475:2: </font><b><font size="2" color="#FF0000">error: too few arguments to function get_user_pages</font></b><br><font size="2">  ret = get_user_pages(uaddr & PAGE_MASK, 1, 1, 0, pages, NULL);</font><br><font size="2">  ^</font><br><font size="2">In file included from /tmp/compat-rdma/include/linux/mm.h:5:0,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/pgalloc.h:16,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/mmu_context.h:10,</font><br><font size="2">                 from /usr/src/kernels/3.10.0-327.el7.s390x/arch/s390/include/asm/elf.h:134,</font><br><font size="2">                 from include/linux/elf.h:4,</font><br><font size="2">                 from include/linux/module.h:14,</font><br><font size="2">                 from /tmp/compat-rdma/include/linux/compat-2.6.h:22,</font><br><font size="2">                 from <command-line>:0:</font><br><font size="2">include/linux/mm.h:1166:6: note: declared here</font><br><font size="2"> long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,</font><br><font size="2">      ^</font><br><font size="2">make[5]: *** [/tmp/compat-rdma/drivers/infiniband/hw/mthca/mthca_memfree.o] Error 1</font><br><font size="2">make[4]: *** [/tmp/compat-rdma/drivers/infiniband/hw/mthca] Error 2</font><br><font size="2">make[3]: *** [/tmp/compat-rdma/drivers/infiniband/hw] Error 2</font><br><font size="2">make[2]: *** [/tmp/compat-rdma/drivers/infiniband] Error 2</font><br><font size="2">make[1]: *** [_module_/tmp/compat-rdma] Error 2</font><br><font size="2">make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.s390x'</font><br><font size="2">make: *** [kernel] Error 2</font></td></tr></table><br><b><font size="2" color="#0000FF">The complete log attached below</font></b><b><font size="2">.</font></b><br><br><i>(See attached file: ofed-4.8_build on rhel 7.2 for z.log)</i><i>(See attached file: ofed-4.8_build on clefos 7.3 for z.log)</i><br><br><br><br><br><br><font size="2">Regards,</font><br><font size="2">FuLong</font><p><font face="宋体"> </font><BR>
</body></html>