[MacPorts] #65043: py-lxml failures on 10.4.11 and 10.6.8

MacPorts noreply at macports.org
Thu Apr 25 21:07:52 UTC 2024


#65043: py-lxml failures on 10.4.11 and 10.6.8
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  petrrr
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  powerpc, tiger, rosetta,
      Port:  py-lxml     |  snowleopard
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:3 petrrr]:
 > I have no possibility to reproduce the problem (and probably neither the
 skills).
 >
 > So is this ticket still relevant or have we dropped support for very old
 versions?

 It is relevant, and the port is still broken on 10.6.8 Rosetta at least:
 {{{
 running build_ext
 building 'lxml.etree' extension
 creating build/temp.macosx-10.6-ppc-cpython-312
 creating build/temp.macosx-10.6-ppc-cpython-312/src
 creating build/temp.macosx-10.6-ppc-cpython-312/src/lxml
 /usr/bin/clang -fno-strict-overflow -fno-common -dynamic -DNDEBUG -g -O3
 -Wall -pipe -Os -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.12/include/python3.12
 -c src/lxml/etree.c -o build/temp.macosx-10.6-ppc-
 cpython-312/src/lxml/etree.o -w -flat_namespace
 clang: warning: not using the clang compiler for the 'powerpc'
 architecture
 In file included from src/lxml/etree.c:297968:
 /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/clang' 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_rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml/py312-lxml
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml/py312-lxml/work
 creating
 opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-lxml/py312-lxml/work/.tmp
 cc -I/opt/local/include/libxml2 -I/usr/include/libxml2 -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py312-lxml/work/.tmp/xmlXPathInitkfjp2usw.c -o
 opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py312-lxml/work/.tmp/xmlXPathInitkfjp2usw.o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py312-lxml/work/.tmp/xmlXPathInitkfjp2usw.c: In function ‘main’:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py312-lxml/work/.tmp/xmlXPathInitkfjp2usw.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_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 lxml/py312-lxml/work/.tmp/xmlXPathInitkfjp2usw.o -L/opt/local/lib -lxml2
 -o a.out
 ld: warning: in /opt/local/lib/libxml2.dylib, file was built for ppc7400
 which is not the architecture being linked (x86_64)
 Undefined symbols:
   "_xmlXPathInit", referenced from:
       _main in xmlXPathInitkfjp2usw.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 }}}

 Meson is a disaster of a build system. Probably this can be fixed by
 fixing compiler choice. I will try.

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


More information about the macports-tickets mailing list