[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:58:11 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 jmroot):

 All floating point calculations are inherently inexact. There is no
 "right" and "wrong" behaviour you're demonstrating here, just (very
 slightly) different.

 To put it another way, there is a roughly 50% chance when casting //any//
 floating point number to an integer type that you will get a result that
 is not the integer that is closest to the original value, but one less
 than that. That's just how truncation works, and is why you don't want to
 do it, on any platform.

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


More information about the macports-tickets mailing list