[vsipl++] configure fails to recognize mpich

Joseph E. Sacco, Ph.D. joseph_sacco at comcast.net
Sat Sep 9 17:26:30 UTC 2006


Stefan,

I can confirm that your patch works:

[patch applied to configure]

                          ...
        with mpi enabled:                        yes
        With parallel service:                   mpich
                              ...
        
There are many ways to resolve this issue. mpich1 supports command line
arguments:

$ mpicxx -compile-info
g++ -DUSE_STDARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 -DHAVE_MPI_CPP
-I/opt/mpich/include/mpi2c++ -fexceptions -c -I/opt/mpich/include

$ mpicxx -link-info
g++ -DUSE_STDARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1
-DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 -L/opt/mpich/lib
-lpmpich++ -lmpich -lpthread -lrt


Maybe it would be cleaner to use these directly rather than using
"-show". 

Be well,

-Joseph

=========================================================================
On Fri, 2006-09-08 at 16:59 -0400, Stefan Seefeld wrote:
> Joseph,
> 
> I believe I have found the cause of the error. Our configuration script
> assumes that running 'mpicxx -show -c' will generate a command string in which
> the last token is '-c', which we then filter out using sed.
> 
> However, it appears in your case mpicxx generates a command string where
> the '-c' option is in between other options, and so our attempt to filter
> it out fails.
> 
> The attached patch makes sed filter out the '-c' option no matter where in the
> command it appears. Please confirm that this fixes the error for you.
> 
> Thanks,
> 		Stefan
> 
-- 
joseph_sacco [at] comcast [dot] net




More information about the vsipl++ mailing list