[MacPorts] #70073: libminc uses wrong mpich includes and needs a fix to compiler choice

MacPorts noreply at macports.org
Fri May 24 20:51:35 UTC 2024


#70073: libminc uses wrong mpich includes and needs a fix to compiler choice
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.3
Resolution:                |   Keywords:
      Port:  libminc       |
---------------------------+--------------------

Comment (by ryandesign):

 Replying to [ticket:70073 barracuda156]:
 > 1. Old compilers fails:

 Which old compilers? gcc-4.2?

 > {{{
 > error: ‘for’ loop initial declaration used outside C99 mode
 > }}}

 This suggests your compiler defaults to C89 mode, like gcc-4.2.

 > {{{
 > /opt/local/include/H5public.h:39:21: error: cinttypes: No such file or
 directory
 > }}}

 H5public.h contains:

 {{{#!c
 #ifdef __cplusplus
 #include <cinttypes>
 #else
 #include <inttypes.h>
 #endif
 }}}

 So it requires `<cinttypes>` (from C++11) when in C++ mode and
 `<inttypes.h>` (from C99) when in C mode; any port including this file
 should use `configure.cxx_standard 2011` or `configure.c_standard 1999` as
 appropriate, and if it doesn't already add its own `-std` flags, add
 `configure.cxxflags-append -std=c++11` or `configure.cflags-append
 -std=gnu99` as appropriate.

-- 
Ticket URL: <https://trac.macports.org/ticket/70073#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list