Skip to content

GHC built under Windows does not generate dyn_hi files

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.

Trac metadata
Trac field Value
Version 7.7
Type Bug
TypeOfFailure OtherFailure
Priority high
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information