[mvapich-discuss] mvapich-0.9.9 compile error

Shaun Rowland rowland at cse.ohio-state.edu
Wed Oct 10 19:27:08 EDT 2007


Noam Bernstein wrote:
> Has anyone successfully compiled mvapich-0.9.9 using the PGI compilers?
> I'm using make.mpich.gen2, and the mpid/ch_gen2/ptmalloc2/malloc.c
> is trying to be compiled with gcc style -Wall flags to the compiler, 
> even though gcc isn't
> being used (pgcc, in this  case).   The problem appears to be in 
> mpid/ch_gen2/Makefile.in,
> which hardwires the flags for compiling malloc.o
> 
> Am I missing something?

David's suggestion will work. We changed this slightly in the MVAPICH
0.9.9 branch in the SVN. I've attached a patch that will remove those
GCC specific arguments in that Makefile.in. Either one of these
suggestions should work.

-- 
Shaun Rowland	rowland at cse.ohio-state.edu
http://www.cse.ohio-state.edu/~rowland/
-------------- next part --------------
Index: mpid/ch_gen2/Makefile.in
===================================================================
--- mpid/ch_gen2/Makefile.in	(revision 1142)
+++ mpid/ch_gen2/Makefile.in	(working copy)
@@ -37,8 +37,8 @@
 #
 
 ifeq ($(CC),gcc)
-	CFLAGS1 = @CFLAGS@ -D_GNU_SOURCE -I${top_srcdir} -I${srcdir} -I. $(OPTFLAGS) \
-		-Wall
+	CFLAGS1 = @CFLAGS@ -D_GNU_SOURCE -I${top_srcdir} -I${srcdir} -I. $(OPTFLAGS) 
+		
 else
 	CFLAGS1   = -D_GNU_SOURCE @CFLAGS@ -I${top_srcdir} -I${srcdir} -I. $(OPTFLAGS)
 endif
@@ -161,7 +161,7 @@
 	$(AR) $(LIBNAME) malloc.o
 
 malloc.o:
-	${CC} -fPIC -c @CFLAGS@ -D_GNU_SOURCE=1 -O2 -Wall -Wstrict-prototypes -DUSE_TSD_DATA_HACK \
+	${CC} -fPIC -c @CFLAGS@ -D_GNU_SOURCE=1 -O2 -DUSE_TSD_DATA_HACK \
 	-Iptmalloc2/sysdeps/pthread -Iptmalloc2/sysdeps/generic -I. \
 	-DTHREAD_STATS=1  ptmalloc2/malloc.c
 


More information about the mvapich-discuss mailing list