[MacPorts] #69386: py-lxml fails with default gcc compiler

MacPorts noreply at macports.org
Fri Feb 23 00:49:56 UTC 2024


#69386: py-lxml fails with default gcc compiler
----------------------+---------------------
 Reporter:  rmottola  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:  leopard   |       Port:  py-lxml
----------------------+---------------------
 on 10.5  compilation fails:


 {{{
 In file included from src/lxml/etree.c:265443:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/internal/pycore_frame.h:
 In function ‘_PyFrame_Initialize’:
 /opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/internal/pycore_frame.h:134:
 error: ‘for’ loop initial declaration used outside C99 mode
 Compile failed: command '/usr/bin/gcc-4.2' failed with exit code 1

 }}}

 I tried using:
 apple gcc 4.2: fails
 macports gcc 4.8: fails
 macports gcc 6 : works!

 so I propose blacklisting gcc 4.x versions

-- 
Ticket URL: <https://trac.macports.org/ticket/69386>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list