ghc does not tolerate rsync between different machines
hi, I ran into the following problem: I routinely do a complete "rsync --delete" of the `/opt/local' branch from a G5 PPC to a G4 PPC powerbook in order to have available the macports software there, too. this worked perfectly up to now. but when I now installed ghc-6.6.1 on the G5 PPC and rsynced to the G4, `ghci' did not start on the G4 and instead I got the error message: #------------------------------------------------------ dyld: Library not loaded: /opt/local/lib/libgmp.3.dylib Referenced from: /opt/local/lib/ghc-6.6.1/ghc-6.6.1 Reason: no suitable image found. Did find: /opt/local/lib/libgmp.3.dylib: incompatible cpu-subtype Trace/BPT trap #------------------------------------------------------ does this mean that due to the "incompatible cpu-subtype" I need to recompile ghc from scratch for the G4? I would rather not (it took 3 hours on the G5...). no way around this? regards, joerg
On Jul 16, 2007, at 11:25 AM, Joerg van den Hoff wrote:
#------------------------------------------------------ dyld: Library not loaded: /opt/local/lib/libgmp.3.dylib Referenced from: /opt/local/lib/ghc-6.6.1/ghc-6.6.1 Reason: no suitable image found. Did find: /opt/local/lib/libgmp.3.dylib: incompatible cpu-subtype Trace/BPT trap #------------------------------------------------------
does this mean that due to the "incompatible cpu-subtype" I need to recompile ghc from scratch for the G4? I would rather not (it took 3 hours on the G5...). no way around this?
It's libgmp that is the problem here. It compiled on the G5 with G5 specific optimizations and so won't work on your G4. You can rebuild it for your G4 and things should be OK (or at least, it'll get past this specific error). Note that the G4 version should run OK on your G5 (although it might be slightly slower). -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (2)
-
Daniel J. Luke
-
Joerg van den Hoff