Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] 1.5rc5 warnings from gcc on OpenSolaris
From: George Bosilca (bosilca_at_[hidden])
Date: 2010-08-24 21:34:44


> ../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c:201: warning: assignment from incompatible pointer type
> ../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c:207: warning: assignment from incompatible pointer type

This belongs to an assignment to the iov_base member of an "struct iov". We had this problem in the past, and we have a solution for it. The pointer stored in the iov_base should be casted using (IOVBASE_TYPE*).

> ../../../../../openmpi-1.5rc5/ompi/mca/common/sm/common_sm_mmap.c:280: warning: passing arg 1 of `munmap' from incompatible pointer type

I guess the munmap doesn't take a size_t on this platform ... Too bad, we will not be able to allocate more than 2GB of shared memory!

  george.

> [...]
>
> Those are the only warnings generated by this build.
>
> -Paul
>
>
> --
> Paul H. Hargrove PHHargrove_at_[hidden]
> Future Technologies Group
> HPC Research Department Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel