[MacPorts] #64264: glib2 fails for PowerPC (ppc, ppc64 and universal)

MacPorts noreply at macports.org
Fri Dec 24 09:17:56 UTC 2021


#64264: glib2 fails for PowerPC (ppc, ppc64 and universal)
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  PowerPC, Leopard, ppc64
      Port:  glib2         |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:3 ryandesign]:
 > 2. universal ppc ppc64 builds fail with `Cannot find specified cross
 file: ppc64-darwin`. This relates to the fact that glib2, along with
 countless other projects, have decided for some reason to switch to the
 immature new meson build system which has some trouble with universal
 builds. See #59864, #62498. I don't have a solution for you. Complain to
 the developers of glib2 for switching to a build system that doesn't work.
 Complain to the developers of meson for introducing a build system that
 doesn't work. If you have a solution, please provide it. Maybe it is as
 simple as creating a "cross file", whatever that is, for ppc64-darwin, if
 you can figure out how and where to do that.

 Thank you for pointing that out, I will try to find a solution re meson.

 As for the first issue, trying to build `icu` as universal asks for
 universal `llvm-3.3`, which fails. I spent this night trying to fix that,
 but no success so far. Link for others' ref:
 https://trac.macports.org/ticket/64253

 Output:

 {{{
 36-225:~ svacchanda$ port -v installed icu libxml2
 The following ports are currently installed:
   icu @67.1_4 (active) requested_variants='-universal' platform='darwin 9'
 archs='ppc' date='2021-12-22T08:24:11+0800'
   libxml2 @2.9.12_1 requested_variants='-universal' platform='darwin 9'
 archs='ppc' date='2021-12-22T12:25:12+0800'
   libxml2 @2.9.12_1+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2021-12-22T08:28:30+0800'
 }}}


 {{{
 36-225:~ svacchanda$ lipo -info
 /opt/local/lib/lib{icudata,icui18n,icuuc,xml2}.dylib
 Architectures in the fat file: /opt/local/lib/libxml2.dylib are: ppc64
 ppc7400
 Non-fat file: /opt/local/lib/libicudata.dylib is architecture: ppc
 Non-fat file: /opt/local/lib/libicui18n.dylib is architecture: ppc7400
 Non-fat file: /opt/local/lib/libicuuc.dylib is architecture: ppc7400
 }}}


 {{{
 36-225:~ svacchanda$ otool -L
 /opt/local/lib/lib{icudata,icui18n,icuuc,xml2}.dylib
 /opt/local/lib/libicudata.dylib:
         /opt/local/lib/libicudata.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.7)
 /opt/local/lib/libicui18n.dylib:
         /opt/local/lib/libicui18n.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libicuuc.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libicudata.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version
 7.0.0, current version 7.24.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.7)
 /opt/local/lib/libicuuc.dylib:
         /opt/local/lib/libicuuc.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libicudata.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version
 7.0.0, current version 7.24.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.7)
 /opt/local/lib/libxml2.dylib:
         /opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0,
 current version 12.12.0)
         /opt/local/lib/libicui18n.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libicuuc.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /opt/local/lib/libicudata.67.dylib (compatibility version 67.0.0,
 current version 67.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.7)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/liblzma.5.dylib (compatibility version 8.0.0,
 current version 8.5.0)
         /opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0,
 current version 9.1.0)
         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
 version 1.0.0)

 }}}

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


More information about the macports-tickets mailing list