#3354: binaries built with GHC on Mac OS X 10.5 (Leopard) do not work on 10.4
(Tiger)
---------------------------------+------------------------------------------
    Reporter:  bkomuves          |        Owner:         
        Type:  bug               |       Status:  new    
    Priority:  normal            |    Milestone:  _|_    
   Component:  Build System      |      Version:  6.10.1 
    Severity:  minor             |   Resolution:         
    Keywords:                    |   Difficulty:  Unknown
    Testcase:                    |           Os:  MacOS X
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by bkomuves):

 I managed to build binaries on 10.5 which work on 10.4, however the
 solution was very hackish. In theory it is quite simple, but it needs
 knowledge about the ghc build system (which I don't have).

 What I did was the following: I recompiled the runtime system and the base
 library with passing the appropriate flags to gcc and the linker. These
 flags are listed on thread linked above. (I think the Unix library also
 has to be rebuild, but my program did not depend on it; and maybe some
 other fundamental libraries, but not many). After this, I have to pass the
 same flags when building my program, and then it will work on both 10.4
 and 10.5 (if I don't pass the flags, it will still work on 10.5).

 The build system (this was with ghc 6.10.1, so I think that's the old
 build system) had in fact some infrastructure in it for doing exactly
 this, but it seems to be bitrotten, as it worked only for the runtime
 system, iirc (or maybe I made some mistakes, as I didn't build a full
 ghc). So I just patched manually various configure files and whatnot, very
 brute-force, but it worked.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3354#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to