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 17:53:15 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):

 Oh, these python ports are hard to manipulate.

 Adding legacysupport does nothing, as it is not used even if added:

 {{{
 usr/bin/gcc-4.2 -fno-strict-aliasing -Wsign-compare -fno-common -dynamic
 -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch i386 -isysroot/
 -DHAVE_STDINT_H -DPYCRYPTO_LITTLE_ENDIAN -DSYS_BITS=32 -DLTC_NO_ASM
 -DHAVE_EMMINTRIN_H -DUSE_SSE2 -DGCC_REALIGN
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10
 -c src/raw_ocb.c -o build/temp.macosx-10.5-i386-cpython-310/src/raw_ocb.o
 -msse2
 }}}

 forcing gcc7 does fix the c99 errors, but the aligned memory issues still
 happen.

 Perhaps we have to use the compiler wrapper PortGroup to get these python
 ports to obey the extra CFLAGS and LDFLAGS? Let me see...

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


More information about the macports-tickets mailing list