[MacPorts] #63164: cctools @949: lipo make FAT libraries on i386 Mac OS X Tiger with wrong offset: fail to load
MacPorts
noreply at macports.org
Sat Jul 10 23:19:28 UTC 2021
#63164: cctools @949: lipo make FAT libraries on i386 Mac OS X Tiger with wrong
offset: fail to load
------------------------------+--------------------
Reporter: bradleyCPA | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: cctools libgcc7 |
------------------------------+--------------------
Comment (by kencu):
log2(double x) on Tiger is supposed to return a double, not a float. So as
it is broken on i386 I saw the uint32_t overflowing the int32 on i386
Tiger being the issue, as a uint32_t does not fit into 32bits.
But perhaps it uses a float internally and then does a poor internal
conversion to a double. log2(4096) is exactly 12, so that would be really
really bad if so, but ... it's Tiger!
{{{
double
log2(double x);
long double
log2l(long double x);
float
log2f(float x);
}}}
BTW, on PPC Tiger, log2 works properly, and there is no such issue. It's
only an i386 thing, it appears:
{{{
$ ./kentest1
4096 12 12.000000
4096 12 12.000000
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63164#comment:40>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list