Created attachment 461326 [details] GHC build log After a quick search I have seen a couple of unresolved similar problems in the forums. The problem is the same with the ::gentoo stable version of ghc. This is for ::haskell The problem seems to be that the binary haskell distribution is not compatible out of the box with the i486-pc-linux-gnu toolchain. However it might just be enough to review the ghc code to see if an environment variable can be set to determine which CC to use and bypass the autotools detection completely. To reproduce : install Gentoo i486 stage3, emerge ghc.
The main problem here is that binary ghc hardcodes gcc it was built with in: /usr/lib64/ghc-$(ghc --numeric-version)/settings
*** This bug has been marked as a duplicate of bug 531016 ***