[MacPorts] #63164: py-libxml2 icu cctools - FAT libraries built on i386 Mac OS X Tiger fail to run

MacPorts noreply at macports.org
Fri Jul 9 07:26:40 UTC 2021


#63164: py-libxml2 icu cctools - FAT libraries built on i386 Mac OS X Tiger fail to
run
-------------------------+--------------------
  Reporter:  bradleyCPA  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:              |
-------------------------+--------------------

Comment (by bradleyCPA):

 On a proper system, the output of my test program
 {{{
 #include <math.h>
 #include <stdio.h>

 int main() {
     unsigned int pagesize = 4096;
     fprintf(stdout, "%u %f %u %u\n", pagesize, log2(pagesize), (unsigned
 int) log2(pagesize), lround(log2(pagesize)));
 }
 }}}
 should be
 {{{
 ~/Downloads/macports_cctools_test$ gcc -o test test.c
 ~/Downloads/macports_cctools_test$ ./test
 4096 12.000000 12 12
 }}}
 However, it is not proper on tiger. The cast results in a value of 11
 instead of 12. This is almost certainly a bug. Whether or not it is
 ultimately the cause of the behavior I am seeing is debatable, it seems.

-- 
Ticket URL: <https://trac.macports.org/ticket/63164#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list