Re: ghc uses C:\TEMP for temporary files, rather than %TEMP

2001-08-17 Thread Reuben Thomas

 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


Like it says in the instructions, you have to have C:\TEMP. Sorry; this is
hardwired at the moment.

 GHC should use %TEMP (or better, the Win32 GetTempPath() API call) to save
 intermediate files.

That sounds like a good idea. I'll look into it. Despite being the Windows
maintainer, I'm not a Win32 expert.

-- 
http://sc3d.org/rrt/ | aphorism, n.  a wise lie


___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



Re: ghc uses C:\TEMP for temporary files, rather than %TEMP

2001-08-17 Thread Sigbjorn Finne

I've had this very change sitting on my disk for quite a while;
now checked in. Unless further testing uncovers anything
really bad, 5.02 should have it included.

--sigbjorn

- Original Message -
From: Reuben Thomas [EMAIL PROTECTED]
To: Moore, Paul [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 17, 2001 06:08
Subject: Re: ghc uses C:\TEMP for temporary files, rather than %TEMP


  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
 

 Like it says in the instructions, you have to have C:\TEMP. Sorry; this is
 hardwired at the moment.

  GHC should use %TEMP (or better, the Win32 GetTempPath() API call) to
save
  intermediate files.

 That sounds like a good idea. I'll look into it. Despite being the Windows
 maintainer, I'm not a Win32 expert.

 --
 http://sc3d.org/rrt/ | aphorism, n.  a wise lie


 ___
 Glasgow-haskell-bugs mailing list
 [EMAIL PROTECTED]
 http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs