[MacPorts] #55832: py-matplotlib fails to compile on Snow Leopard (was: py36-matplotlib fails to compile on Snow Leopard)

MacPorts noreply at macports.org
Fri Feb 16 17:17:28 UTC 2018


#55832: py-matplotlib fails to compile on Snow Leopard
----------------------------+------------------------
  Reporter:  fvaccari       |      Owner:  seanfarley
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.4.2
Resolution:                 |   Keywords:
      Port:  py-matplotlib  |
----------------------------+------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * cc: sean@… (removed)
 * owner:   => seanfarley
 * keywords:  py36-matplotlib Snow Leopard =>
 * port:  py36-matplotlib => py-matplotlib


Comment:

 The error in the log is:

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

 Yes, the same problem would exist for all Python versions. It is not a
 Python version specific problem. The issue is that this code is not
 compatible with C89 mode, which is the default for the older gcc-4.2 and
 llvm-gcc-4.2 compilers used by default on Snow Leopard and earlier. C99
 mode is the default for clang which is used by default on Lion and later.

 The code could either be fixed to be C89-compatible, as per your suggested
 changes, or the build can declare that this code needs C99 mode using
 `-std=c99` in `CFLAGS`. The project's build system should do that. Either
 way, it's an upstream bug that should be reported to the developers of py-
 matplotlib so they can fix it.

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


More information about the macports-tickets mailing list