Re: [MacPorts] #65992: py310-pycryptodome fails to build on 10.5.8: error: #error No routines for aligned memory; error: ‘for’ loop initial declaration used outside C99 mode

MacPorts noreply at macports.org
Sat Oct 15 13:31:16 UTC 2022


#65992: py310-pycryptodome fails to build on 10.5.8: error: #error No routines for
aligned memory; error: ‘for’ loop initial declaration used outside C99 mode
-------------------------------------+-------------------------------------
  Reporter:  barracuda156            |      Owner:  catap
      Type:  defect                  |     Status:  assigned
  Priority:  Normal                  |  Milestone:
 Component:  ports                   |    Version:  2.7.2
Resolution:                          |   Keywords:  powerpc, leopard,
      Port:  py310-pycryptodome,     |  snowleopard
  py-pycryptodome                    |
-------------------------------------+-------------------------------------

Comment (by kencu):

 the aligned memory functions I added to legacysupport…using a newer gcc
 would be unexpected to find them without it.

 the usual fix for this:
 {{{
 error: ‘for’ loop initial declaration used outside C99 mode
 }}}

 is simply to enable C99 mode…the gcc-4.2 compiler defaults to c89, but
 gcc7 defaults to C11 so you could use that to get c99 mode if you can’t
 figure out how to get std=c99 onto the build line. MacPorts dislikes that
 kind of fix, as you know.

 but have to actually try it to see what happens, of course.

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


More information about the macports-tickets mailing list