[MacPorts] #57493: esmf @7_1_0r +gcc8: build error: 'size_t' does not name a type
MacPorts
noreply at macports.org
Sat Mar 16 00:50:08 UTC 2019
#57493: esmf @7_1_0r +gcc8: build error: 'size_t' does not name a type
---------------------------+----------------------
Reporter: Dave-Allured | Owner: tenomoto
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords:
Port: esmf |
---------------------------+----------------------
Comment (by Dave-Allured):
The cause of this problem was found. It is simply a missing `include`
statement for `cstddef` in `ESMC_Conf.h`. However, because of the unusual
use of many customized copies of this file, the missing `include` should
probably go into a few higher level files, not into `ESMC_Conf.h`
directly.
This bug is triggered by all `GCC 8` and higher versions, due to a
specific test for `GCC` version number in `ESMC_Conf.h`. This bug can be
avoided by installing either the port `esmf` default variant, which uses
`clang`, or else `+gcc7` or earlier variants.
ESMF developers already fixed this in their own code base. I am waiting
for a pubic release to update Macports. If someone needs a fix sooner,
please request or submit a patch to the current version.
--
Ticket URL: <https://trac.macports.org/ticket/57493#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list