Thanks for the bug report. You are absolutely correct - the #define is
incorrect in Open MPI. I've committed a fix to our development trunk and
it should be included in the future releases. In the mean time, it is
safe to change the line in the installed mpi.h for Open MPI from:
#define MPI_ERRCODES_IGNORE ((void *) 0) /* don't return error
#define MPI_ERRCODES_IGNORE ((int *) 0) /* don't return error
Since it's a simple cast, there is no need to recompile Open MPI's libmpi
-- modifying the installed mpi.h is safe.
> OPEN MPI folks,
> Please see the possible error in your code, if this is indeed an error
> on your part we would appreciate a fix as soon as possible so that we do
> not have to direct our users to other MPI implementations.
> On Fri, 29 Dec 2006, Satish Balay wrote:
>> Looks like there is some issues with MPI_Spawn() and OpenMPI.
>> libfast in:
>> mpinit.c: In function 'PetscErrorCode PetscOpenMPSpawn(PetscMPIInt)':
>> mpinit.c:73: error: invalid conversion from 'void*' to 'int*'
>> mpinit.c:73: error: initializing argument 8 of 'int
>> MPI_Comm_spawn(char*, char**, int, ompi_info_t*, int, omp
>> i_communicator_t*, ompi_communicator_t**, int*)'
>> ar: mpinit.o: No such file or directory
>> ierr =
>> Looks like using MPI_ERRCODES_IGNORE in that function call is
>> correct. However OpenMPI declares it to '((void *) 0)' giving compile
>> error with c++. [MPICH declares it to '(int *)0' - which doesn't give
>> any compile erorrs].
>> I guss the following change should work - but I suspect this is an
>> openmpi bug.. I don't think its appropriate to make this change in
>> PETSc code..
>> ierr =
>> On Fri, 29 Dec 2006, Charles Williams wrote:
>> > Hi,
>> > I'm not sure if this is a problem with PETSc or OpenMPI. Things were
>> > OK on December 19, and this problem has crept in since then. Thanks
>> for any
>> > ideas.
>> > Thanks,
>> > Charles
>> > Charles A. Williams
>> > Dept. of Earth & Environmental Sciences
>> > Science Center, 2C01B
>> > Rensselaer Polytechnic Institute
>> > Troy, NY 12180
>> > Phone: (518) 276-3369
>> > FAX: (518) 276-2012
>> > e-mail: willic3_at_[hidden]
> devel mailing list