Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 607142

Summary: dev-lang/ghc fails to configure on i486-pc-linux-gnu
Product: Gentoo Linux Reporter: Thomas de Grivel <thoxdg>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: GHC build log

Description Thomas de Grivel 2017-01-25 07:52:36 UTC
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.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-01-25 19:47:43 UTC
The main problem here is that binary ghc hardcodes
gcc it was built with in:
    /usr/lib64/ghc-$(ghc --numeric-version)/settings
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-01-25 19:47:59 UTC

*** This bug has been marked as a duplicate of bug 531016 ***