[MacPorts] #71680: gnuregex fails on powerpc: symbol dyld_stub_binding_helper not defined for architecture ppc

MacPorts noreply at macports.org
Wed Jan 1 09:20:56 UTC 2025


#71680: gnuregex fails on powerpc: symbol dyld_stub_binding_helper not defined for
architecture ppc
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:
      Port:  gnuregex      |
---------------------------+--------------------

Comment (by barracuda156):

 Replying to [comment:12 ryandesign]:
 > Replying to [comment:7 kencu]:
 > > Replying to [comment:5 ryandesign]:
 > > > What makes you suggest that? Can you reference a prior bug report in
 which that was the solution?
 >
 > > Based on reading about  the trivial fix that made this port work on
 10.5 PPC (it was defaulting to 10.6, and telling it that it was really on
 10.5 fix the build)
 >
 > Oh right, I forgot that. So libtool may contain some code that assumes
 10.6 and later is Intel only. And if so, the creators of the 10.6-on-PPC
 effort would need to patch that.
 >
 > > I expected to find the symbols for dyld_stub_binding_helper were not
 in libSystem.dylib on 10.5 (or on 10.6-PPC).
 > >
 > > But surprise me, they were in libSystem on 10.5 when I went looking
 for them on my 10.5 PPC system as above.
 >
 > That surprises me too because I thought I found something that said
 `dyld_stub_binding_helper` was only for Intel.
 >
 > > the build (on my 10.5 system anyway) was using
 {{{/opt/local/bin/libtool}}} for the libtool.
 >
 > Ah, ok. Apple libtool from the cctools port. And if libtool assumes 10.6
 and later is Intel, then this libtool would also need a patch for 10.6-on-
 PPC.

 That would be strange of Apple, obviously they would know Rosetta existed
 and 10.6.8 (canonical one) supported building for `ppc`. But I will look
 into the code.

 GNU `libtool` at least in principle appears to be aware of building for
 `ppc` on 10.6, `config.guess` has:
 {{{
             # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
             if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
                    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
                    grep IS_PPC >/dev/null
             then
                 UNAME_PROCESSOR=powerpc
             fi
 }}}

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


More information about the macports-tickets mailing list