[mpich-devel] /usr/local/Cellar/mpich2/3.0.4/include/mpi.h:116:56: error: expected identifier static const MPI_Datatype mpich_mpi_char MPICH_ATTR_TYPE_T...

Jeff Hammond jeff.science at gmail.com
Fri Nov 29 15:43:35 CST 2013


A fellow GA user is having trouble with GA 5.2 on Mavericks with MPICH
3.0.4  We have tried many things, including switching from Clang to
GCC and all sorts of different configure options.  There appears to be
some issue with GCC on Mac (goto X) that makes linking MPICH break.

I cannot reproduce this error because I neither have Intel Fortran on
any Mac nor have I upgraded to Mavericks.

First, is there a Mavericks Mac in MCS to which I can SSH in order to
test the non-ifort part of this?  Even better if said Mac has ifort...

Second, can someone help me resolve the MPICH_ATTR_TYPE_TAG issues?

If I cannot resolve this soon, I am going to have no choice but to
resort to recommending OtherMPI.

Thanks,

Jeff

X:

Undefined symbols for architecture x86_64:
  "___emutls_get_address", referenced from:
      _MPIU_Thread_CS_exit_lockname_recursive_impl_.isra.1.constprop.2 in libpmp
ich.a(lib_libpmpich_la-finalize.o)
      _MPIU_Thread_CS_enter_lockname_recursive_impl_.isra.0.constprop.3 in libpm
pich.a(lib_libpmpich_la-finalize.o)
which I interpret as missing -legcc_eh or similar.

---------- Forwarded message ----------
From: Peter Knowles <peterjknowles at gmail.com>
Date: Thu, Nov 28, 2013 at 1:59 PM
Subject: [hpctools] Compliation of ga-5-2 under OSX 10.9
To: hpctools at googlegroups.com


I am frustrated that I do not seem to be able to build GA on
Mavericks. Does anyone have a hint that would help me get going,
please? Details below; I've also tried quite hard to do it a number of
other different ways.
Thanks!
Peter

FC=ifort brew install --default-fortran-flags=-O3 mpich    # brings in
mpich2-3.0.4
./configure
>>>> produces:
configure:               MPI_LIBS=
configure:            MPI_LDFLAGS=
configure:           MPI_CPPFLAGS=
configure:          COMEX_NETWORK=MPI_TS
configure:  COMEX_NETWORK_LDFLAGS=
configure:     COMEX_NETWORK_LIBS=
configure: COMEX_NETWORK_CPPFLAGS=
configure:                     CC=mpicc
configure:           unwrapped CC=cc
configure:                 CFLAGS=-g -O2
configure:                    CPP=mpicc -E
configure:               CPPFLAGS=
configure:                LDFLAGS=
configure:                   LIBS=
configure:                  FLIBS=
configure:                     AR=ar
configure:               AR_FLAGS=cru
configure:                   DEFS=-DHAVE_CONFIG_H
configure:                  SHELL=/bin/sh
configure:                MPIEXEC=/usr/local/bin/mpirun -n %NP%
configure:                 NPROCS=4
configure:
configure:
configure: **************************************************************
configure:  Global Arrays (GA) configured as follows:
configure: **************************************************************
configure:
configure:                 TARGET=MACX64
configure:              MSG_COMMS=MPI
configure:             GA_MP_LIBS=
configure:          GA_MP_LDFLAGS=
configure:         GA_MP_CPPFLAGS=
configure:          ARMCI_NETWORK=SOCKETS
configure:  ARMCI_NETWORK_LDFLAGS=
configure:     ARMCI_NETWORK_LIBS=
configure: ARMCI_NETWORK_CPPFLAGS=
configure:                    F77=mpif90
configure:          unwrapped F77=ifort
configure:                 FFLAGS=
configure:              FFLAG_INT=-integer-size 64
configure:                GA_FOPT=-O3 -prefetch -w -cm
configure:                     CC=mpicc
configure:           unwrapped CC=cc
configure:                 CFLAGS=
configure:                GA_COPT=
configure:                    CPP=mpicc -E
configure:               CPPFLAGS=
configure:                LDFLAGS=
configure:                   LIBS=
configure:                  FLIBS=
-L/usr/bin/ifort-14.0-base/compiler/lib -L/usr/lib
/usr/bin/ifort-14.0-base/compiler/lib/libifport.a
/usr/bin/ifort-14.0-base/compiler/lib/libifcore.a
/usr/bin/ifort-14.0-base/compiler/lib/libimf.a
/usr/bin/ifort-14.0-base/compiler/lib/libsvml.a
/usr/bin/ifort-14.0-base/compiler/lib/libipgo.a
/usr/bin/ifort-14.0-base/compiler/lib/libirc.a -lpthread
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.0/lib/darwin/libclang_rt.osx.a
configure:           BLAS_LDFLAGS=
configure:              BLAS_LIBS=-framework Accelerate
configure:          BLAS_CPPFLAGS=
configure:                     AR=ar
configure:               AR_FLAGS=cru
configure:                   CCAS=mpicc
configure:             CCAS_FLAGS=
configure:                   DEFS=-DHAVE_CONFIG_H
configure:                  SHELL=/bin/sh
configure:                MPIEXEC=/usr/local/bin/mpirun -n %NP%
configure:                 NPROCS=4
configure:

<<<<

make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in armci
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
depbase=`echo src/collectives/message.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile mpicc -DHAVE_CONFIG_H -I.
             -I./src/devices/sockets -DSHMEM -DMMAP  -I./src/include
    -MT src/collectives/message.lo -MD -MP -MF $depbase.Tpo -c -o
src/collectives/message.lo src/collectives/message.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  mpicc -DHAVE_CONFIG_H -I. -I./src/devices/sockets
-DSHMEM -DMMAP -I./src/include -MT src/collectives/message.lo -MD -MP
-MF src/collectives/.deps/message.Tpo -c src/collectives/message.c -o
src/collectives/message.o
In file included from src/collectives/message.c:52:
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:116:56: error: expected identifier
static const MPI_Datatype mpich_mpi_char               MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:117:56: error: expected identifier
static const MPI_Datatype mpich_mpi_signed_char        MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:118:56: error: expected identifier
static const MPI_Datatype mpich_mpi_unsigned_char      MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:120:56: error: expected identifier
static const MPI_Datatype mpich_mpi_wchar              MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:121:56: error: expected identifier
static const MPI_Datatype mpich_mpi_short              MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:122:56: error: expected identifier
static const MPI_Datatype mpich_mpi_unsigned_short     MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:123:56: error: expected identifier
static const MPI_Datatype mpich_mpi_int                MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:124:56: error: expected identifier
static const MPI_Datatype mpich_mpi_unsigned           MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:125:56: error: expected identifier
static const MPI_Datatype mpich_mpi_long               MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:126:56: error: expected identifier
static const MPI_Datatype mpich_mpi_unsigned_long      MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:127:56: error: expected identifier
static const MPI_Datatype mpich_mpi_float              MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:128:56: error: expected identifier
static const MPI_Datatype mpich_mpi_double             MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:130:56: error: expected identifier
static const MPI_Datatype mpich_mpi_long_double        MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:132:56: error: expected identifier
static const MPI_Datatype mpich_mpi_long_long_int      MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:133:56: error: expected identifier
static const MPI_Datatype mpich_mpi_unsigned_long_long MPICH_ATTR_TYPE_T...
                                                       ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:24:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG'
  ...__attribute__((type_tag_for_datatype(MPI,type)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:165:53: error: expected identifier
static const MPI_Datatype mpich_mpi_float_int       MPICH_ATTR_TYPE_TAG_...
                                                    ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:25:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG_LAYOUT_COMPATIBLE'
  ...__attribute__((type_tag_for_datatype(MPI,type,layout_compatible)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:166:53: error: expected identifier
static const MPI_Datatype mpich_mpi_double_int      MPICH_ATTR_TYPE_TAG_...
                                                    ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:25:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG_LAYOUT_COMPATIBLE'
  ...__attribute__((type_tag_for_datatype(MPI,type,layout_compatible)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:167:53: error: expected identifier
static const MPI_Datatype mpich_mpi_long_int        MPICH_ATTR_TYPE_TAG_...
                                                    ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:25:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG_LAYOUT_COMPATIBLE'
  ...__attribute__((type_tag_for_datatype(MPI,type,layout_compatible)))
                                             ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:168:53: error: expected identifier
static const MPI_Datatype mpich_mpi_short_int       MPICH_ATTR_TYPE_TAG_...
                                                    ^
/usr/local/Cellar/mpich2/3.0.4/include/mpi.h:25:109: note: expanded from macro
      'MPICH_ATTR_TYPE_TAG_LAYOUT_COMPATIBLE'
  ...__attribute__((type_tag_for_datatype(MPI,type,layout_compatible)))
                                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [src/collectives/message.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

--
You received this message because you are subscribed to the Google
Groups "hpctools" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to hpctools+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
Jeff Hammond
jeff.science at gmail.com


More information about the devel mailing list