[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:49:01 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):
Aha.
Tiger has {{{log2l(x)}}}:
{{{
$ 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)log2l(pagesize),
log2l(pagesize));
return 0;
}
}}}
then:
{{{
$ gcc-mp-7 -o kentest2 kentest.c
$ ./kentest2
4096 12 12.000000
}}}
So that appears to be the answer to the log2 mystery.
--
Ticket URL: <https://trac.macports.org/ticket/63164#comment:34>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list