[mpich-discuss] Failed to compile MPICH3 v3.2a2-115-g93e816cc on Power755 (Power7/Linux)

Jeff Hammond jeff.science at gmail.com
Sat Jan 24 22:37:21 CST 2015


Try building MPICH with GCC, for which I know a POWER7 version exists.
GCC supports inline asm properly and you can use the resulting library with
XLC codes, thanks to the beauty of C ABI interoperability.  For Fortran,
use CC=gcc, FC=xlf_r.

Best,

Jeff

On Friday, January 23, 2015, "Antonio J. Peña" <apenya at mcs.anl.gov> wrote:

>
> Hi Victor,
>
> Most likely your hardware or compiler does not support atomic memory
> access. Unfortunately, our IB netmod uses these builtin functions. If you
> have Mellanox InfiniBand, you can give a try to the MXM netmod.
>
> Best,
>   Antonio
>
>
> On 01/23/2015 05:04 AM, Victor Vysotskiy wrote:
>
>    Hi,
>
>
>  I am trying to compile the latest MPICH3 snapshot on Power7/Linux
> platform by using the XLF/XLC compiler suite v14.1. The cluster is equipped
> with common IB hardware. Unfortunately, the compilation failed with the
> following error message:
>
>
>  lib/.libs/libmpi.a(lib_libmpi_la-ib_poll.o): In function
> `MPID_nem_ib_drain_scq':
>
> src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x5bc4):
> undefined reference to `__builtin_ctz'
>
> src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x5e90):
> undefined reference to `__builtin_ctz'
>
> lib/.libs/libmpi.a(lib_libmpi_la-ib_poll.o): In function
> `MPID_nem_ib_cm_drain_scq$AF227_75':
>
> src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x7d7c):
> undefined reference to `__builtin_ctz'
>
> src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x7e14):
> undefined reference to `__builtin_ctz'
>
> src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x8040):
> undefined reference to `__builtin_ctz'
>
> lib/.libs/libmpi.a(lib_libmpi_la-ib_poll.o):src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x814c):
> more undefined references to `__builtin_ctz' follow
>
>
>  For the configure's options used please check the attached
> 'config.power7.linux.log' file.
>
>
> In addition, the IBM compiler produces few warnings:
>
>
>  #1
>
>
>  "src/mpid/ch3/channels/nemesis/netmod/ib/ib_ibcom.h", line 169.39:
> 1506-1147 (W) The asm constraint "a" is not supported.
>
> "src/mpid/ch3/channels/nemesis/netmod/ib/ib_ibcom.h", line 169.49:
> 1506-1147 (W) The asm constraint "d" is not supported.
>
> "src/mpid/ch3/channels/nemesis/netmod/ib/ib_reg_mr.c", line 89.12:
> 1506-1332 (W) A function with return type "void" may not return a value of
> type "void".
>
>     1500-064: (W) The register name %rax is unknown.
>
>     1500-064: (W) The register name %rbx is unknown.
>
>     1500-064: (W) The register name %rcx is unknown.
>
>     1500-064: (W) The register name %rdx is unknown.
>
>  #2
>
>
>  "/usr/include/bits/mman.h", line 45.9: 1506-236 (W) Macro name
> MAP_SHARED has been redefined.
>
> "/usr/include/bits/mman.h", line 45.9: 1506-358 (I) "MAP_SHARED" is
> defined on line 17 of /usr/include/asm-generic/mman-common.h.
>
> "/usr/include/bits/mman.h", line 46.9: 1506-236 (W) Macro name MAP_PRIVATE
> has been redefined.
>
> "/usr/include/bits/mman.h", line 46.9: 1506-358 (I) "MAP_PRIVATE" is
> defined on line 18 of /usr/include/asm-generic/mman-common.h.
>
> "/usr/include/bits/mman.h", line 48.10: 1506-236 (W) Macro name MAP_TYPE
> has been redefined.
>
> "/usr/include/bits/mman.h", line 48.10: 1506-358 (I) "MAP_TYPE" is defined
> on line 19 of /usr/include/asm-generic/mman-common.h.
>
> "/usr/include/bits/mman.h", line 52.9: 1506-236 (W) Macro name MAP_FIXED
> has been redefined.
>
> "/usr/include/bits/mman.h", line 52.9: 1506-358 (I) "MAP_FIXED" is defined
> on line 20 of /usr/include/asm-generic/mman-common.h.
>
> "/usr/include/bits/mman.h", line 54.10: 1506-236 (W) Macro name MAP_FILE
> has been redefined.
>
> "/usr/include/bits/mman.h", line 54.10: 1506-358 (I) "MAP_FILE" is defined
> on line 43 of /usr/include/asm-generic/mman-common.h.
>
> "/usr/include/bits/mman.h", line 55.10: 1506-236 (W) Macro name
> MAP_ANONYMOUS has been redefined.
>
> "/usr/include/bits/mman.h", line 55.10: 1506-358 (I) "MAP_ANONYMOUS" is
> defined on line 21 of /usr/include/asm-generic/mman-common.h.
>
> "/usr/include/bits/mman.h", line 61.10: 1506-236 (W) Macro name
> MAP_GROWSDOWN has been redefined.
>
> "/usr/include/bits/mman.h", line 61.10: 1506-358 (I) "MAP_GROWSDOWN" is
> defined on line 19 of /usr/include/asm/mman.h.
>
> "/usr/include/bits/mman.h", line 62.10: 1506-236 (W) Macro name
> MAP_DENYWRITE has been redefined.
>
> "/usr/include/bits/mman.h", line 62.10: 1506-358 (I) "MAP_DENYWRITE" is
> defined on line 20 of /usr/include/asm/mman.h.
>
> "/usr/include/bits/mman.h", line 63.10: 1506-236 (W) Macro name
> MAP_EXECUTABLE has been redefined.
>
> "/usr/include/bits/mman.h", line 63.10: 1506-358 (I) "MAP_EXECUTABLE" is
> defined on line 21 of /usr/include/asm/mman.h.
>
> "/usr/include/bits/mman.h", line 64.10: 1506-236 (W) Macro name MAP_LOCKED
> has been redefined.
>
> "/usr/include/bits/mman.h", line 64.10: 1506-358 (I) "MAP_LOCKED" is
> defined on line 17 of /usr/include/asm/mman.h.
>
> "/usr/include/bits/mman.h", line 65.10: 1506-236 (W) Macro name
> MAP_NORESERVE has been redefined.
>
> "/usr/include/bits/mman.h", line 65.10: 1506-358 (I) "MAP_NORESERVE" is
> defined on line 16 of /usr/include/asm/mman.h.
>
> "/usr/include/bits/mman.h", line 66.10: 1506-236 (W) Macro name
> MAP_POPULATE has been redefined.
>
> "/usr/include/bits/mman.h", line 66.10: 1506-358 (I) "MAP_POPULATE" is
> defined on line 26 of /usr/include/asm/mman.h.
>
>
>  Is the error message related to the warnings observed? Or, I simply
> should avoid using the nemesis:ib channel?
>
>
>  With best regards,
>
> Victor.
>
>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org <javascript:_e(%7B%7D,'cvml','discuss at mpich.org');>
> To manage subscription options or unsubscribe:https://lists.mpich.org/mailman/listinfo/discuss
>
>
>
> --
> Antonio J. Peña
> Postdoctoral Appointee
> Mathematics and Computer Science Division
> Argonne National Laboratory
> 9700 South Cass Avenue, Bldg. 240, Of. 3148
> Argonne, IL 60439-4847apenya at mcs.anl.gov <javascript:_e(%7B%7D,'cvml','apenya at mcs.anl.gov');>www.mcs.anl.gov/~apenya
>
>

-- 
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20150124/f1f5a4e3/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list