Ticket #19736 (closed defect: fixed)
ghc: Library not loaded: libffi.5.dylib
|Reported by:||ryandesign@…||Owned by:||gwright@…|
While trying to upgrade from 6.10.1_9 to 6.10.3_1, I got a Crash Reporter dialog stating:
Link (dyld) error: Library not loaded: /mp/lib/libffi.5.dylib Referenced from: /mp/lib/ghc-6.10.1/hsc2hs Reason: image not found
/mp is my MacPorts prefix.
This error shows two problems:
- The new version of ghc is trying to use parts from the currently-installed version of ghc to build itself. This means the software might build differently for users who had a previous version installed vs. those who didn't. This is bad and a port should probably never use an installed version of itself to build a new version of itself.
- hsc2hs was linked with libffi but ghc did not declare a dependency on libffi. Either ghc needs to declare a dependency on libffi, or ghc needs to not link with libffi even if it is installed.
Note: See TracTickets for help on using tickets.