[mpich-discuss] mpich-master: couldn't build libmpicxx.la with Sun C on Linux
Siegmar Gross
siegmar.gross at informatik.hs-fulda.de
Mon Aug 21 07:34:16 CDT 2017
Hi,
I tried to install mpich-master on my "SUSE Linux Enterprise Server 12.2
(x86_64)" with Sun C 5.15 (Oracle Developer Studio 12.6) and gcc-7.1.0.
Unfortunately, I couldn't build it with Sun C due to the following error.
loki mpich-master_2017-08-20_Linux.x86_64.64_cc 276 tail -18
log.make.Linux.x86_64.64_cc
"../mpich/src/include/mpir_handlemem.h", line 61: warning: null dimension: indirect
"../mpich/src/include/mpir_handlemem.h", line 122: warning: null dimension: indirect
CCLD src/mpi/debugger/libdbginitdummy.la
GEN lib/libmpi.la
CXX src/binding/cxx/initcxx.lo
"./src/include/mpichconf.h", line 1132: Warning (Anachronism): Attempt to
redefine __restrict__ without using #undef.
1 Warning(s) detected.
CXXLD lib/libmpicxx.la
CC: -library=Crun cannot be used with -std=c++03. To use this library you need
to switch to -std=sun03
CC: -library=Cstd cannot be used with -std=c++03. To use this library you need
to switch to -std=sun03
Makefile:9429: recipe for target 'lib/libmpicxx.la' failed
make[2]: *** [lib/libmpicxx.la] Error 1
make[2]: Leaving directory
'/export2/src/mpich-master/mpich-master_2017-08-20_Linux.x86_64.64_cc'
Makefile:34562: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/export2/src/mpich-master/mpich-master_2017-08-20_Linux.x86_64.64_cc'
Makefile:9242: recipe for target 'all' failed
make: *** [all] Error 2
loki mpich-master_2017-08-20_Linux.x86_64.64_cc 277
I used the following command to configure MPICH.
../mpich/configure \
--prefix=/usr/local/mpich-master_64_cc \
--libdir=/usr/local/mpich-master_64_cc/lib64 \
--includedir=/usr/local/mpich-master_64_cc/include64 \
CC="cc" CXX="CC" F77="f77" FC="f95" \
CFLAGS="-m64" CXXFLAGS="-m64" FFLAGS="-m64" FCFLAGS="-m64" \
LDFLAGS="-m64 -L/usr/lib64 -R/usr/lib64" \
--enable-fortran=ye --enable-cxx --enable-romio \
--enable-debuginfo --enable-smpcoll \
--enable-threads=multiple --with-thread-package=posix \
--enable-shared \
|& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_cc
Building MPICH caused the following warning with gcc.
loki mpich-master_2017-08-20_Linux.x86_64.64_gcc 267 grep -i warning
log.make.Linux.x86_64.64_gcc | sort | uniq
../mpich/src/include/mpir_mem.h:144:11: warning: argument 1 value
'18446744073709551612' exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
loki mpich-master_2017-08-20_Linux.x86_64.64_gcc 268
Building MPICH caused the following warnings with cc.
loki mpich-master_2017-08-20_Linux.x86_64.64_cc 270 grep -i warning
log.make.Linux.x86_64.64_cc | sort | uniq
"../../../../../../../../../mpich/src/pm/hydra/tools/topo/hwloc/hwloc/src/topology-custom.c",
line 88: warning: initializer will be sign-extended: -1
"../../../../../../../../../mpich/src/pm/hydra/tools/topo/hwloc/hwloc/src/topology-linux.c",
line 2727: warning: initializer will be sign-extended: -1
"../../../../../../../../../mpich/src/pm/hydra/tools/topo/hwloc/hwloc/src/topology-synthetic.c",
line 851: warning: initializer will be sign-extended: -1
"../../../../../../../../../mpich/src/pm/hydra/tools/topo/hwloc/hwloc/src/topology-x86.c",
line 122: warning: initializer will be sign-extended: -1
"../../../../../../../../../mpich/src/pm/hydra/tools/topo/hwloc/hwloc/src/topology-xml.c",
line 1783: warning: initializer will be sign-extended: -1
"../../../../mpich/src/mpi/romio/adio/common/ad_fstype.c", line 428: warning:
statement not reached
"../../../../mpich/src/mpi/romio/adio/common/ad_threaded_io.c", line 31:
warning: statement not reached
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
103: warning: parameter in inline asm statement unused: %1
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
111: warning: parameter in inline asm statement unused: %1
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
121: warning: parameter in inline asm statement unused: %2
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
129: warning: parameter in inline asm statement unused: %3
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
142: warning: parameter in inline asm statement unused: %1
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
151: warning: parameter in inline asm statement unused: %1
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
159: warning: parameter in inline asm statement unused: %3
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
167: warning: parameter in inline asm statement unused: %3
"../../../../mpich/src/openpa/src/primitives/opa_gcc_intel_32_64_ops.h", line
95: warning: parameter in inline asm statement unused: %2
"../../../../mpich/src/pm/hydra/pm/pmiserv/pmiserv_pmi_v1.c", line 796: warning:
statement not reached
"../mpich/src/include/mpir_handlemem.h", line 122: warning: null dimension: indirect
"../mpich/src/include/mpir_handlemem.h", line 61: warning: null dimension: indirect
"../mpich/src/mpi/datatype/dataloop/segment.c", line 658: warning: statement not
reached
"../mpich/src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c", line 194:
warning: assignment type mismatch:
"../mpich/src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c", line 195:
warning: operands have incompatible pointer types: op "=="
"../mpich/src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c", line 196:
warning: operands have incompatible pointer types: op "!="
"../mpich/src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c", line 198:
warning: argument #2 is incompatible with prototype:
"../mpich/src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c", line 198:
warning: assignment type mismatch:
"../mpich/src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c", line 199:
warning: operands have incompatible pointer types: op "=="
"../mpich/src/mpid/ch3/channels/nemesis/src/ch3i_comm.c", line 36: warning:
statement not reached
"../mpich/src/mpid/ch3/channels/nemesis/src/ch3i_comm.c", line 99: warning:
statement not reached
"./src/include/mpichconf.h", line 1132: Warning (Anachronism): Attempt to
redefine __restrict__ without using #undef.
I would be grateful, if somebody can fix the problem. Do you need anything
else? Thank you very much for any help in advance.
Kind regards
Siegmar
_______________________________________________
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