[MacPorts] #69637: py311-lxml @5.1.1 does not build on PPC Tiger, Mac OS X 10.4.11, because #pragma GCC diagnostic not allowed inside functions

MacPorts noreply at macports.org
Sun Mar 31 11:00:52 UTC 2024


#69637: py311-lxml @5.1.1 does not build on PPC Tiger, Mac OS X 10.4.11, because
#pragma GCC diagnostic not allowed inside functions
-----------------------+------------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.9.1
 Keywords:  tiger ppc  |       Port:  py311-lxml
-----------------------+------------------------
 {{{
 creating build/temp.macosx-10.4-ppc-cpython-311/src/lxml
 /opt/local/bin/gcc-apple-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3
 -Wall -pipe -Os -std=gnu99 -arch ppc -isysroot/
 -DCYTHON_CLINE_IN_TRACEBACK=0 -I/opt/local/include/libxml2 -Isrc
 -Isrc/lxml/includes
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
 -c src/lxml/etree.c -o build/temp.macosx-10.4-ppc-
 cpython-311/src/lxml/etree.o -w -flat_namespace
 src/lxml/etree.c: In function '__pyx_f_4lxml_5etree__fixCNs':
 src/lxml/etree.c:26826: error: #pragma GCC diagnostic not allowed inside
 functions
 src/lxml/etree.c:26827: error: #pragma GCC diagnostic not allowed inside
 functions
 src/lxml/etree.c:26829: error: #pragma GCC diagnostic not allowed inside
 functions
 src/lxml/etree.c: In function '__pyx_f_4lxml_5etree__rootNodeOrRaise':
 ...
 src/lxml/etree.c:290805: error: #pragma GCC diagnostic not allowed inside
 functions
 src/lxml/etree.c:290806: error: #pragma GCC diagnostic not allowed inside
 functions
 src/lxml/etree.c:290808: error: #pragma GCC diagnostic not allowed inside
 functions
 Compile failed: command '/opt/local/bin/gcc-apple-4.2' failed with exit
 code 1
 creating opt
 creating opt/local
 creating opt/local/var
 creating opt/local/var/macports
 creating opt/local/var/macports/build
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml/py311-lxml
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml/py311-lxml/work
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml/py311-lxml/work/.tmp
 cc -I/opt/local/include/libxml2 -I/usr/include/libxml2 -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py311-lxml/work/.tmp/xmlXPathInitsppf3n86.c -o
 opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py311-lxml/work/.tmp/xmlXPathInitsppf3n86.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py311-lxml/work/.tmp/xmlXPathInitsppf3n86.c: In function ‘main’:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py311-lxml/work/.tmp/xmlXPathInitsppf3n86.c:3: warning:
 ‘xmlXPathInit’ is deprecated (declared at
 /opt/local/include/libxml2/libxml/xpath.h:564)
 cc
 opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py311-lxml/work/.tmp/xmlXPathInitsppf3n86.o -L/opt/local/lib -lxml2
 -o a.out
 error: command '/opt/local/bin/gcc-apple-4.2' failed with exit code 1
 }}}

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


More information about the macports-tickets mailing list