[GHC] #6063: GHC's build-time ld-flag checks are problematic

GHC cvs-ghc at haskell.org
Mon Apr 30 18:05:27 CEST 2012


#6063: GHC's build-time ld-flag checks are problematic
------------------------------+---------------------------------------------
 Reporter:  parcs             |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 If the linker that GHC was built against happened to recognize the
 `--hash-size` and `--reduce-memory-overhead` flags, but the current system
 linker does not, GHC will indiscriminately pass those flags to the current
 linker when attempting to link anything, and the linking will fail due to
 an 'unrecognized option' error.

 I have experienced this behavior when I upgraded to GHC 7.4.1 on debian.
 The GHC package in question was built against `bfd ld`, which recognized
 those linker flags, but my system linker is `gold`, which does not
 recognized those flags. Therefore, I could not build anything until i
 reverted to `bfd ld`.

 (Relevant commits: 3275b7bd2a803a3adc0b952b6fbfeb738fc15a74 and
 9ccb59ed6e5edf73c876e87429e69e8848162497)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6063>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list