[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

openmpi + c++11



Hi everyone,

the OpenMPI in Debian is somewhat outdated; the current stable version is 1.10.1 [1], Debian ships 1.6.5 [2]. A bug has been filed for this a while ago [3].

When compiling a C++11-enabled source, one gets loads of compiler warnings of the kind
```
/usr/lib/openmpi/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__)
                                  ^
/usr/lib/openmpi/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__)
                                                               ^
```
It would be easy to turn them off, but perhaps even easier would be to patch the current openmpi 1.6.5 to include the spaces.

Who would need to be contacted about this?

Cheers,
Nico

[1] http://www.open-mpi.de/software/ompi/v1.10/
[2] https://packages.debian.org/sid/net/openmpi-bin
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796982

Reply to: