[mpich-discuss] building ROMIO
Rob Latham
robl at mcs.anl.gov
Mon Jul 6 13:49:53 CDT 2009
On Fri, Jul 03, 2009 at 02:31:01AM -0500, Wei-keng Liao wrote:
>
> I used to be able to build ROMIO alone (mpich2-1.0.8p1 and earlier).
> But for mpich2-1.1, I got the errors below during the make:
Wei-keng, I don't know about you but I spent the 3rd of July watching
fireworks, not compiling ROMIO :>
Hey, just playing around. Sorry you ran into this problem. I found
it myself last week. Fortunately, there's just one spot to fix and
it's a rather small change:
> In file included from close.c:8:
> mpioimpl.h:41:38: error: parameter name missing
> mpioimpl.h:42:37: error: parameter name missing
> close.c: In function 'PMPI_File_close':
> close.c:45: error: 'ALLFUNC' undeclared (first use in this function)
> close.c:45: error: (Each undeclared identifier is reported only once
> close.c:45: error: for each function it appears in.)
> close.c:45: error: expected expression before ')' token
> close.c:86: error: expected expression before ')' token
> make[2]: *** [close.o] Error 1
Apply this patch and you should be good to go:
Index: mpi-io/mpioimpl.h
===================================================================
--- mpi-io/mpioimpl.h (revision 4862)
+++ mpi-io/mpioimpl.h (revision 4863)
@@ -52,8 +52,8 @@
error reporting features provided by MPICH2 must implement these
four functions. Defining these as empty should not change the behavior
of correct programs */
-#define MPIU_THREAD_CS_ENTER(ALLFUNC,)
-#define MPIU_THREAD_CS_EXIT(ALLFUNC,)
+#define MPIU_THREAD_CS_ENTER(x,y)
+#define MPIU_THREAD_CS_EXIT(x,y)
#define MPIR_Nest_incr()
#define MPIR_Nest_decr()
#ifdef HAVE_WINDOWS_H
==rob
--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA
More information about the mpich-discuss
mailing list