[MacPorts] #61170: libffi @3.3_1 fails to build on 10.5 i386
MacPorts
noreply at macports.org
Mon Sep 14 01:20:56 UTC 2020
#61170: libffi @3.3_1 fails to build on 10.5 i386
------------------------+--------------------
Reporter: fhgwright | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Resolution: | Keywords:
Port: libffi |
------------------------+--------------------
Comment (by kencu):
On i386 Tiger, we see warnings at the same file, but not errors:
{{{
355 ../src/x86/sysv.S:808:section type does not match previous section
type
356 ../src/x86/sysv.S:814:section type does not match previous section
type
}}}
I did manage to get past that spot with a small edit to the sysv.S source
file:
{{{
- .section __TEXT,__text,coalesced,pure_instructions;
+ .section __TEXT,__textcoal_nt,coalesced,pure_instructions;
}}}
but then still ran into the same linker error in the end:
{{{
ld: in src/x86/.libs/sysv.o, in section __TEXT,__eh_frame reloc 0: bad
length for GENERIC_RELOC_SECTDIFF
}}}
working on it...
It is well known, as you point out, that the libffi assembler is advanced
in nature, and no doubt the 32bit darwin part of it suffers more than
most. We are trying to see if we can tweak it to build with the system
toolchain, as otherwise our bootstrapping is complicated.
We could consider salting away libffi 3.2.1 in a directory and building
some llvm version against it (3.7?) that gets us to a current libffi
version. But I'm hoping we don't have to do that as it just adds ever more
complexity to supporting and bootstrapping these older systems that I
would live to avoid.
--
Ticket URL: <https://trac.macports.org/ticket/61170#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list