If there is a size_t vs PRIsize_t mismatch then it is probably a result of
less-than-perfect integration in the Clang private headers (stddef.h in
particular).
I will make a point not to trust Clang for this class of warning in the
future.

What about the sharedfp warnings such as the following:

/scratch/phargrov/OMPI/openmpi-v2.x-dev-1410-g81e0924-linux-x86_64-clang-m32/openmpi-gitclone/ompi/mca/sharedfp/lockedfile/sharedfp_lockedfile_seek.c:68:113:
warning: format specifies type 'long long' but the argument has type 'long'
[-Wformat]
                opal_output(0,"sharedfp_lockedfile_seek - MPI_SEEK_SET,
offset must be > 0, got offset=%lld.\n",offset);

                           ~~~~     ^~~~~~

In that case the "%lld" is 64-bits (long long) but the argument is only
32-bits (long).

-Paul

On Wed, May 11, 2016 at 9:42 AM, Ralph Castain <r...@open-mpi.org> wrote:

> I took a look at this, and the problem isn’t in the print statements. The
> problem is that PRIsize_t is being incorrectly set to “unsigned long”
> instead of something correct for the -m32 directive in that environment
>
>
> On May 6, 2016, at 9:48 AM, Paul Hargrove <phhargr...@lbl.gov> wrote:
>
> The 96 printf format warnings in the attachment come from an Linux/x86-64
> system w/ Clang and "-m32".
>
> Some of the warnings are "size_t" vs "unigned long", which is harmless
> since both are 32-bits.
>
> However, there are several cases in sharedfp/sm where a 64-bit (long long)
> format has a 32-bit (long) argument.
>
> -Paul
>
>
> --
> Paul H. Hargrove                          phhargr...@lbl.gov
> Computer Languages & Systems Software (CLaSS) Group
> Computer Science Department               Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
> <format_warn_m32.txt>_______________________________________________
> devel mailing list
> de...@open-mpi.org
> Subscription: https://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2016/05/18932.php
>
>
>
> _______________________________________________
> devel mailing list
> de...@open-mpi.org
> Subscription: https://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2016/05/18970.php
>



-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to