[MacPorts] #64398: How to build icu for ppc+ppc64 on 10.5.8?
MacPorts
noreply at macports.org
Sun Jan 9 16:36:45 UTC 2022
#64398: How to build icu for ppc+ppc64 on 10.5.8?
---------------------------+-------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: PowerPC, Leopard, ppc64
Port: icu |
---------------------------+-------------------------------------
Comment (by kencu):
This error:
{{{
ld: absolute addressing (perhaps -mdynamic-no-pic) used in
icu_67::FixedDecimal::getFractionalDigits(double, int) from plurrule.o not
allowed in slidable image. Use '-read_only_relocs suppress' to enable text
relocs
}}}
Is quite commonly found when building some code archs. The fix is usually
to do what the error is telling you to do, ie add:
{{{
-read_only_relocs suppress
}}}
to the linker args.
You will find a number of cases in the ports tree where I did this, and
perhaps others have done it too, I didn't look at them all. You usually
need to restrict that linker flag to just the build archs where the error
is generated, as it is not accepted by some other build archs.
If you grep the ports repo for {{{read_only_relocs}}} you will find some
reasonable-looking examples.
As to WHY this is needed, the best explanation I have come across is here:
https://lists.apple.com/archives/darwin-dev/2009/Jul/msg00123.html
--
Ticket URL: <https://trac.macports.org/ticket/64398#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list