ghc uses C:\TEMP for temporary files, rather than %TEMP
Moore, Paul
Paul.Moore at atosorigin.com
Fri Aug 17 08:16:47 EDT 2001
This is the GHC version from
http://www.haskell.org/ghc/dist/5.00.2/ghc-5-01.exe.
>ghc --version
The Glorious Glasgow Haskell Compilation System, version 5.01
I have my TEMP variable set to C:\WINNT\TEMP (Windows 2000). I do not have a
C:\TEMP directory. However, when I run ghc on a trivial source file, I get
>ghc -o main main.hs
ghc: panic! (the `impossible' happened, GHC version 5.01):
Failed to open or write code output file C:/TEMP/ghc1644.s
Please report it as a compiler bug to glasgow-haskell-bugs at haskell.org,
or http://sourceforge.net/projects/ghc/.
GHC should use %TEMP (or better, the Win32 GetTempPath() API call) to save
intermediate files.
Paul Moore.
More information about the Glasgow-haskell-bugs
mailing list