Skip to content

Can't compile apps with the -fvia-C flag - Can't locate vars.pm

When I try to compile even the simplest application with the -fvia-C flags, the compilation fails with the following error message:

Can't locate vars.pm in @INC (@INC contains: C:/ghc/ghc-6.8.0.20070925/lib .) at
 C:\ghc\ghc-6.8.0.20070925\ghc-asm line 1289.
BEGIN failed--compilation aborted at C:\ghc\ghc-6.8.0.20070925\ghc-asm line 1289

the app I used to reproduce bug:

main = putStrLn "Hello, World!"

vars.pm is not present in older versions of GHC but they don't have this problem.

Cheers,

Olivier Boudry.

Trac metadata
Trac field Value
Version 6.8
Type Bug
TypeOfFailure OtherFailure
Priority normal
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