[MacPorts] #65676: quartz-wm: Could not open /usr/lib/libgcc_s_ppc64.1.dylib: Error opening or reading file (referenced from /opt/local/lib/libquartz-wm-ds.1.dylib)

MacPorts noreply at macports.org
Thu Jan 23 11:52:36 UTC 2025


#65676: quartz-wm: Could not open /usr/lib/libgcc_s_ppc64.1.dylib: Error opening or
reading file (referenced from /opt/local/lib/libquartz-wm-ds.1.dylib)
---------------------------+---------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc
      Port:  quartz-wm     |
---------------------------+---------------------

Comment (by barracuda156):

 Replying to [comment:3 barracuda156]:
 > Replying to [comment:2 cooljeanius]:
 > > `__private_extern__` should be replaced with
 `__attribute__((visibility("hidden")))` these days for compilers like GCC
 12
 >
 > Thank you!
 >
 > Any idea why `gcc-4.2` tries to link with a non-existent dylib, that too
 for ppc64 (on ppc32 Rosetta)?

 Answering to myself: because the port supplies pre-built library with 4
 archs in it. And ppc64 is not supported in 10.6.

 Something like this will fix it:
 {{{
 platform darwin 10 powerpc {
     set libfile ${worksrcpath}/lib/libquartz-wm-ds.apsl.dylib
     post-extract {
         foreach arch {i386 ppc64 x86_64} {
             system "lipo -remove $arch -output $libfile $libfile"
         }
     }
 }
 }}}

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


More information about the macports-tickets mailing list