[GHC] #8615: All packages built with GHC / clang are failing

#8615: All packages built with GHC / clang are failing ------------------------------------+------------------------------------- Reporter: sylvestre | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- I am trying to rebuild the Debian archive using clang instead of gcc. The biggest source of errors (622 over 2188 [1]) is related to GHC. Clang does not implement the "-u" option [2]. This is causing most (all?) of the "GHC based" packages to fail to build. with: {{{ /usr/lib/ghc/libHSrts.a(RtsStartup.o): In function `hs_exit_': (.text+0x49): undefined reference to `base_GHCziTopHandler_flushStdHandles_closure' }}} Of course, if you think it is not GHC's fault at all or there is no workaround, don't hesitate to close this bug. For example: http://clang.debian.net/logs/2013-07-14/agda_2.3.2.1-1_unstable_clang.log http://clang.debian.net/logs/2013-07-14/happy_1.18.10-2_unstable_clang.log [1] http://clang.debian.net/status.php?version=3.3&key=MISSING_OPTION_U [2] http://llvm.org/bugs/show_bug.cgi?id=18250 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8615 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8615: All packages built with GHC / clang are failing -------------------------------------+------------------------------------ Reporter: sylvestre | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by carter): * status: new => closed * resolution: => fixed Comment: GHC 7.6 wont build with clang, unless you backport a few patches from the ghc head. ghc 7.7 / HEAD / soon 7.8 should build with clang HEAD (also the bug fix branch of clang 3.3 works too). so while this concern is valid, the fixes are in the more current work on GHC. So i'm going to close it as "fixed" :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8615#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8615: All packages built with GHC / clang are failing -------------------------------------+------------------------------------ Reporter: sylvestre | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by sylvestre): OK. Thanks :) Any chance you have the list of patches to backport to 7.6 ? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8615#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8615: All packages built with GHC / clang are failing -------------------------------------+------------------------------------ Reporter: sylvestre | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by carter): Darin Morrison has some in progress branches on this, though I think he'd LOVE some help finishing the work. https://github.com/darinmorrison/ghc look at the 7.6.3 mavericks and the 7.6.3 mavericks + clang branches -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8615#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8615: All packages built with GHC / clang are failing -------------------------------------+------------------------------------ Reporter: sylvestre | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by carter): @sylvestre, I think Darin's a bit burnt out on it, but if you want to carry the torg to the finish line so that 7.6 + clang / mavericks play nice, that'd be neat. NB:it may be a bit of work. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8615#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8615: All packages built with GHC / clang are failing -------------------------------------+------------------------------------ Reporter: sylvestre | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by sylvestre): The option has been implemented in LLVM and will be part of Clang 3.5: http://llvm.org/viewvc/llvm- project?diff_format=h&view=revision&revision=211756 I think this bug can be closed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8615#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC