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

GHC ghc-devs at haskell.org
Thu Sep 5 05:09:12 CEST 2013


#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     </dev/null >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




More information about the ghc-tickets mailing list