Opened 7 months ago

Closed 7 months ago

#69637 closed defect (fixed)

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

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: tiger ppc Cc: petr@…
Port: py311-lxml

Description

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

Attachments (1)

main.log (124.8 KB) - added by ballapete (Peter "Pete" Dyballa) 7 months ago.
Main.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (3)

Changed 7 months ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

comment:1 Changed 7 months ago by ballapete (Peter "Pete" Dyballa)

It built with GCC7: py311-lxml @5.1.1_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2024-03-31T13:33:32+0200'.

comment:2 Changed 7 months ago by reneeotten (Renee Otten)

Resolution: fixed
Status: newclosed

Fixed in this commit

Note: See TracTickets for help on using tickets.