Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] No spaces between concatenated string literals causes warning on GCC 4.9 prerelease in C++11 mode
From: Jeff Squyres (jsquyres) (jsquyres_at_[hidden])
Date: 2013-11-05 14:25:54


Thanks for reporting the issue. Can you try this patch, and see if it fixes the issue on your trunk checkout?

On Nov 5, 2013, at 11:12 AM, Jeremiah Willcock <jewillco_at_[hidden]> wrote:

> In version 1.6.1 (and the same issue appears to be in SVN trunk), there are some warnings when using <mpi.h> from code compiled in C++11 mode with more recent snapshots of GCC 4.9:
>
> .../include/mpi_portable_platform.h:102:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> _STRINGIFY(__INTEL_COMPILER)"."_STRINGIFY(_PLATFORM_INTEL_COMPILER_BUILD_DATE)
> ^
> .../include/mpi_portable_platform.h:135:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> _STRINGIFY(__PGIC__)"."_STRINGIFY(__PGIC_MINOR__)"-"_STRINGIFY(__PGIC_PATCHLEVEL__)
> ^
> .../include/mpi_portable_platform.h:135:62: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> _STRINGIFY(__PGIC__)"."_STRINGIFY(__PGIC_MINOR__)"-"_STRINGIFY(__PGIC_PATCHLEVEL__)
> ^
> .../include/mpi_portable_platform.h:374:34: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
> ^
> .../include/mpi_portable_platform.h:374:63: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
> ^
> .../include/mpi_portable_platform.h:377:34: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)".?"
>
> The fix is to insert spaces between the strings like the warnings say; doing that is compatible with both older and new language standards.
>
> -- Jeremiah Willcock
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

--
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/