[GHC] #5407: ghc-7.2.1 build failed on sparc solaris with non-GNU linker

GHC cvs-ghc at haskell.org
Tue Sep 11 14:15:43 CEST 2012


#5407: ghc-7.2.1 build failed on sparc solaris with non-GNU linker
-------------------------+--------------------------------------------------
    Reporter:  maeder    |       Owner:                     
        Type:  bug       |      Status:  new                
    Priority:  high      |   Milestone:  7.6.1              
   Component:  Compiler  |     Version:  7.6.1              
    Keywords:            |          Os:  Solaris            
Architecture:  sparc     |     Failure:  Building GHC failed
  Difficulty:  Unknown   |    Testcase:                     
   Blockedby:            |    Blocking:                     
     Related:            |  
-------------------------+--------------------------------------------------
Changes (by maeder):

  * version:  7.4.2-rc1 => 7.6.1


Comment:

 This (trivial) problem is still not fixed in ghc-7.6.1

 {{{
 --- compiler/main/DriverPipeline.hs~    Di Sep  4 19:10:14 2012
 +++ compiler/main/DriverPipeline.hs     Mo Sep 10 11:00:43 2012
 @@ -2106,6 +2106,7 @@
                              -- -r and --relax are incompatible for ld, so
                              -- disable --relax explicitly.
                           ++ (if platformArch (targetPlatform dflags) ==
 ArchSPARC
 +                                && isGNULd
                                  then [SysTools.Option "-Wl,-no-relax"]
                                  else [])
                           ++ [
 @@ -2126,10 +2127,11 @@
        -- suppress the generation of the .note.gnu.build-id section,
        -- which we don't need and sometimes causes ld to emit a
        -- warning:
 +      isGNULd = cLdIsGNULd == "YES"
        ld_build_id | cLdHasBuildId == "YES"  = "-Wl,--build-id=none"
                    | otherwise               = ""

 -  if cLdIsGNULd == "YES"
 +  if isGNULd
       then do
            script <- newTempName dflags "ldscript"
            writeFile script $ "INPUT(" ++ unwords o_files ++ ")"
 }}}

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



More information about the Glasgow-haskell-bugs mailing list