[GHC] #8228: GHC built under Windows does not generate dyn_hi files

#8228: GHC built under Windows does not generate dyn_hi files ------------------------------+-------------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Operating System: Windows Architecture: | Type of failure: GHC doesn't work at all Unknown/Multiple | Test Case: cabal01 Difficulty: Unknown | Blocking: Blocked By: | Related Tickets: | ------------------------------+-------------------------------------------- I found cabal01 failing with: {{{ =====> cabal01(normal) 1 of 1 [0, 0, 0] cd . && $MAKE -s --no-print-directory cabal01 VANILLA=--enable-library- vanilla PROF=--disable-l ibrary-profiling DYN=--enable-shared cabal01.run.stdout 2>cabal01.run.stderr Wrong exit code (expected 0 , actual 2 ) Stdout: Stderr: Creating library file: dist\build\libHStest-1.0-ghc7.7.20130904.dll.a setup.exe: Error: Could not find module: A with any suffix: ["dyn_hi"] in the search path: ["dist\\build"] make[2]: *** [cabal01] Error 1 }}} but I bet some of the other failures are due to this. Indeed, in dist/build, there are no dyn_hi files When I look more closely at the commands being run, I see: {{{ bash.exe-3.1$ c:/Users/ezyang/Dev/ghc-validate/inplace/bin/ghc-stage2.exe --make -fbuilding-ca bal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir dist/build -odi r dist/build -hidir dist/build -stubdir dist/build -i -idist/build -i. -idist/build/autogen -I dist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -package- name test-1.0 -hide-all- packages -no-user-package-db -package-db local.db -package-db dist/pac kage.conf.inplace -package-id base-4.7.0.0-inplace -XHaskell98 -XForeignFunctionInterface A B. A -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db [1 of 2] Compiling B.A ( B\A.hs, dist\build\B\A.o ) [2 of 2] Compiling A ( A.hs, dist\build\A.o ) }}} which should result in dyn_hi files but does not. I haven't traced it any further yet. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work at all | Unknown/Multiple Test Case: cabal01 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: --------------------------------------------+------------------------------ Comment (by awson): In short, in compiler/main/DynFlags.hs "YES" in ("Support dynamic-too", "YES") should be changed to "NO". See the discussion here: http://ghc.haskell.org/trac/ghc/ticket/7134#comment:23. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work at all | Unknown/Multiple Test Case: cabal01 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Changes (by shelarcy): * related: => #7134 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: high | Status: new Component: Compiler | Milestone: 7.8.1 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work at all | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Changes (by thoughtpolice): * owner: => thoughtpolice -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: highest | Status: new Component: Compiler | Milestone: 7.8.1 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work at all | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Changes (by thoughtpolice): * priority: high => highest -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: highest | Status: new Component: Compiler | Milestone: 7.8.1 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work at all | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Comment (by thoughtpolice): The most bizarre aspect of this ticket now that I'm looking at it more deeply is that if you don't use `--make`, i.e. you're using one-shot mode, then GHC does indeed seem to generate dynamic interface files successfully. I have no idea why `--make` mode would be any different (yet) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files
--------------------------------------------+------------------------------
Reporter: ezyang | Owner:
Type: bug | thoughtpolice
Priority: highest | Status: new
Component: Compiler | Milestone: 7.8.1
Resolution: | Version: 7.7
Operating System: Windows | Keywords:
Type of failure: GHC doesn't work at all | Architecture:
Test Case: cabal01 | Unknown/Multiple
Blocking: | Difficulty: Unknown
| Blocked By:
| Related Tickets: #7134
--------------------------------------------+------------------------------
Comment (by Austin Seipp

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: highest | Status: new Component: Compiler | Milestone: 7.8.2 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work at all | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Changes (by thoughtpolice): * milestone: 7.8.1 => 7.8.2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: highest | Status: new Component: Compiler | Milestone: 7.8.2 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work at all | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Changes (by gidyn): * cc: gideon@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files --------------------------------------------+------------------------------ Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: high | Status: new Component: Compiler | Milestone: 7.8.3 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work at all | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: Unknown | Blocked By: | Related Tickets: #7134 --------------------------------------------+------------------------------ Changes (by thoughtpolice): * priority: highest => high -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | thoughtpolice Priority: high | Status: new Component: Compiler | Milestone: 7.12.1 Resolution: | Version: 7.7 Operating System: Windows | Keywords: Type of failure: GHC doesn't work | Architecture: at all | Unknown/Multiple Blocked By: | Test Case: cabal01 Related Tickets: #7134 | Blocking: 6107 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by gidyn): * cc: gideon@… (removed) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: thoughtpolice Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Austin, do you still intend on looking at this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: thoughtpolice Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 8.0.1 => 8.2.1 Comment: Punting to 8.2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: Phyx- (added) * owner: thoughtpolice => Comment: Unassigning. Phyx, have you seen this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): I don't seem to have this issue with Phab:D2592 but I haven't looked very deeply. But I am able to build with DYNAMIC_TOO set and build dynamic programs fine. I will rebase that patch and update it most likely next week, should have more free time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): In my patch I do see `dyn_hi` being generated. So that should be fine now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Phyx- Type: bug | Status: new Priority: high | Milestone: 8.4.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: => Phyx- * milestone: 8.2.1 => 8.4.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:22 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8228: GHC built under Windows does not generate dyn_hi files -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Phyx- Type: bug | Status: new Priority: high | Milestone: 8.6.1 Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: cabal01 Blocked By: | Blocking: 6107 Related Tickets: #7134 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 8.4.1 => 8.6.1 Comment: Bumping to 8.6. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8228#comment:23 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC