[GHC] #7780: GHC HEAD dll fails to build on Windows

#7780: GHC HEAD dll fails to build on Windows --------------------------------+------------------------------------------- Reporter: rassilon | Owner: Type: bug | Status: new Priority: normal | Component: Build System Version: | Keywords: Os: Windows | Architecture: Unknown/Multiple Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Bitmap depends on PlatformConstants. Currently, dll0 fails to link because Bitmap has undefined references to PlatformContstants constructor info table like so: {{{ compiler\stage2\build\Bitmap.dyn_o:fake:(.text+0x2f73): undefined reference to `ghczm7zi7zi20130319_PlatformConstants_Pl atformConstants_con_info' compiler\stage2\build\Bitmap.dyn_o:fake:(.text+0x5734): undefined reference to `ghczm7zi7zi20130319_PlatformConstants_Pl atformConstants_con_info' compiler\stage2\build\Bitmap.dyn_o:fake:(.text+0xd3e5): undefined reference to `ghczm7zi7zi20130319_PlatformConstants_Pl atformConstants_con_info' compiler\stage2\build\Bitmap.dyn_o:fake:(.text+0xfb8c): undefined reference to `ghczm7zi7zi20130319_PlatformConstants_Pl atformConstants_con_info' }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7780 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7780: GHC HEAD dll fails to build on Windows --------------------------------+------------------------------------------- Reporter: rassilon | Owner: Type: bug | Status: patch Priority: normal | Component: Build System Version: | Keywords: Os: Windows | Architecture: Unknown/Multiple Failure: Building GHC failed | Blockedby: Blocking: | Related: --------------------------------+------------------------------------------- Changes (by rassilon): * status: new => patch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7780#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7780: GHC HEAD dll fails to build on Windows ---------------------------------+------------------------------------------ Reporter: rassilon | Owner: igloo Type: bug | Status: patch Priority: normal | Milestone: Component: Build System | Version: Keywords: | Os: Windows Architecture: Unknown/Multiple | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * owner: => igloo * difficulty: => Unknown -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7780#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7780: GHC HEAD dll fails to build on Windows ---------------------------------+------------------------------------------ Reporter: rassilon | Owner: igloo Type: bug | Status: patch Priority: normal | Milestone: Component: Build System | Version: Keywords: | Os: Windows Architecture: Unknown/Multiple | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by igloo): Hmm, I suspect that this worked for me because my optimisation flags meant that the cross-module reference got inlined. I've been looking at making an automated check for this, but discovered that all but these 14 modules: {{{ CmmRewriteAssignments Debugger DriverMkDepend DriverPipeline GHC GhcMake GhcPlugins LexCore ParserCore ParserCoreUtils PprTyThing RegAlloc.Graph.ArchBase RegAlloc.Graph.ArchX86 RegAlloc.Graph.Coalesce }}} are in the module import loop in the ghc package. I've attached the graph and the script to make it. Red blobs are boot modules, and blue blobs are normal modules which have a boot counterpart. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7780#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7780: GHC HEAD dll fails to build on Windows ---------------------------------+------------------------------------------ Reporter: rassilon | Owner: igloo Type: bug | Status: patch Priority: normal | Milestone: Component: Build System | Version: Keywords: | Os: Windows Architecture: Unknown/Multiple | Failure: Building GHC failed Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Comment(by rassilon): Hrm, I built with a perf flavor build set with: {{{ SRC_HC_OPTS = -O -H64m GhcStage1HcOpts = -O -fasm GhcStage2HcOpts = -O2 -fasm -Rghc-timing GhcHcOpts = -Rghc-timing GhcLibHcOpts = -O2 -Rghc-timing GhcLibWays += p }}} I'll try again with Stage1HcOpts/SRC_HC_OPTS with -O2 and see what happens. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7780#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7780: GHC HEAD dll fails to build on Windows
---------------------------------+------------------------------------------
Reporter: rassilon | Owner: igloo
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Build System | Version:
Keywords: | Os: Windows
Architecture: Unknown/Multiple | Failure: Building GHC failed
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by igloo@…):
commit ba7952bdae641b52fd08b38ae6bb75446f42e6a1
{{{
Author: Ian Lynagh

#7780: GHC HEAD dll fails to build on Windows
---------------------------------+------------------------------------------
Reporter: rassilon | Owner: igloo
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Build System | Version:
Keywords: | Os: Windows
Architecture: Unknown/Multiple | Failure: Building GHC failed
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by ian@…):
commit 444119fbb78aef88450bc51b54429942f8ef3cbf
{{{
Author: Ian Lynagh

#7780: GHC HEAD dll fails to build on Windows ----------------------------------+----------------------------------------- Reporter: rassilon | Owner: igloo Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: Resolution: fixed | Keywords: Os: Windows | Architecture: Unknown/Multiple Failure: Building GHC failed | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ----------------------------------+----------------------------------------- Changes (by igloo): * status: patch => closed * resolution: => fixed Comment: OK, the package is now safely split in 2, and a check that the split is correct is done every time GHC is built. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7780#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC