[MacPorts] #63164: cctools @949: lipo generates FAT libraries on i386 Mac OS X Tiger with wrong offset: fail to load
MacPorts
noreply at macports.org
Sat Jul 10 20:59:28 UTC 2021
#63164: cctools @949: lipo generates 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):
because it also has {{{log2f}}} of course:
{{{
$ cat kentest.c
#include <math.h>
#include <stdio.h>
#include <stdint.h>
int main() {
uint32_t pagesize = 4096;
printf("%u %d %f \n", pagesize, (uint32_t)log2(pagesize),
log2(pagesize));
printf("%u %d %f \n", pagesize, (uint32_t)log2l(pagesize),
log2f(pagesize));
return 0;
}
}}}
and then you get the right answers:
{{{
$ gcc-mp-7 -o kentest2 kentest.c
$ ./kentest2
4096 11 12.000000
4096 12 12.000000
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63164#comment:35>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list