It looks like this bug has been in MPICH2 forever. The configure checks if the C compiler requires to be linked with pthreads to compile thread programs and if it does, we add -lpthread to LDFLAGS. GCC requires it, but nvcc doesn't. But LDFLAGS are used by all compilers (CC, CXX, F77, F90). So, when the C compiler doesn't require this library but the other compilers do, things break. Rajeev: can you try the attached patch? -- Pavan On 07/19/2009 11:50 AM, Pavan Balaji wrote:
A problem unrelated to the patch is that if I build with nvcc and g77, all Fortran tests in test/mpi/f77 fail to compile with the errors attached. If I use gcc, however, it works. This problem may have existed even earlier with 1.1; I didn't try to build the Fortran tests before. It may be something weird going on with nvcc. We can probably ignore it for now.
Yup, this seems to have been broken in 1.1 itself. I'll take a look at it, though we shouldn't hold up 1.1.1 for it.
-- Pavan
-- Pavan Balaji http://www.mcs.anl.gov/~balaji