Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] compilation error about Open Macro when building the code with OpenMPI on Mac OS 10.5.5
From: Sudhakar Mahalingam (sudhakar_at_[hidden])
Date: 2008-10-08 15:19:05


Hi,

I am having a problem about "Open" Macro's number of arguments, when I
try to build a C++ code with the openmpi-1.2.7 on my Mac OS 10.5.5
machine. The error message is given below. When I look at the file.h
and file_inln.h header files in the cxx folder, I am seeing that the
"Open" function indeed takes four arguments but I don't know why there
is this error about the number of arguments of 4. Does anyone else
seen this type of error before ?.

Thanks for your help.

Sudhakar

/usr/local/mpi/bin/mpicxx -DHAVE_CONFIG_H -I. -I. -I.. -I../advisor -
I../physics -I../otools -I../otools -I../config -I../xg -I/usr/local/
hdf5mpi/include -I/usr/local/txphysics-2.1/include -I/usr/local/
petscmpi/include -I/usr/local/petscmpi/bmake/darwin9.5.0-c-debug -
I. -O3 -pipe -funroll-loops -Wall -Wno-unused -O3 -pipe -funroll-
loops -DQT3_SUPPORT -DUNIX -DMPI_VERSION -DNOX -c -o OopicMain.o
OopicMain.cpp
In file included from /usr/local/hdf5mpi/include/H5public.h:54,
                from /usr/local/hdf5mpi/include/hdf5.h:24,
                from ../otools/dumpHDF5.h:20,
                from ../physics/plsmadev.h:35,
                from OopicMain.h:42,
                from OopicMain.cpp:20:
/usr/local/openmpi-1.2.7/include/mpi.h:162:1: warning: "MPI_VERSION"
redefined
<command line>:1:1: warning: this is the location of the previous
definition
In file included from /usr/local/openmpi-1.2.7/include/openmpi/ompi/
mpi/cxx/mpicxx.h:200,
                from /usr/local/openmpi-1.2.7/include/mpi.h:1795,
                from /usr/local/hdf5mpi/include/H5public.h:54,
                from /usr/local/hdf5mpi/include/hdf5.h:24,
                from ../otools/dumpHDF5.h:20,
                from ../physics/plsmadev.h:35,
                from OopicMain.h:42,
                from OopicMain.cpp:20:
/usr/local/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/file.h:124:25:
error: macro "Open" passed 4 arguments, but takes just 1
In file included from /usr/local/openmpi-1.2.7/include/openmpi/ompi/
mpi/cxx/mpicxx.h:257,
                from /usr/local/openmpi-1.2.7/include/mpi.h:1795,
                from /usr/local/hdf5mpi/include/H5public.h:54,
                from /usr/local/hdf5mpi/include/hdf5.h:24,
                from ../otools/dumpHDF5.h:20,
                from ../physics/plsmadev.h:35,
                from OopicMain.h:42,
                from OopicMain.cpp:20:
/usr/local/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/file_inln.h:
189:27: error: macro "Open" passed 4 arguments, but takes just 1
/usr/local/openmpi-1.2.7/include/openmpi/ompi/mpi/cxx/file_inln.h:187:
error: invalid function declaration
make[2]: *** [OopicMain.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2