[GHC] #12971: gcc not finding default temporary directory

GHC ghc-devs at haskell.org
Tue Dec 13 22:26:29 UTC 2016


#12971: gcc not finding default temporary directory
-------------------------------------+-------------------------------------
           Reporter:  erikprantare   |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Hello, I've been trying to get the ghc to compile a .hs file to binary. I
 get an error that seems to be caused during the C compilation phase from
 the special character ä in my user directory. When compiling I get this:

 {{{
 C:\Users\Erik Präntare>ghc C:\code\Haskell\test.hs
 Linking C:\code\Haskell\test.exe ...
 realgcc.exe: error: C:\Users\Erik
 Präntare\AppData\Local\Temp\ghc28912_0\ghc_1.
 c: No such file or directory
 realgcc.exe: fatal error: no input files
 compilation terminated.
 `gcc.exe' failed in phase `C Compiler'. (Exit code: 1)
 }}}

 Notice how it says Pr├ñntare instead of Präntare. The UTF-8 encoding for ä
 is 0xC3 0xA4 which, surprise surprise, corresponds to ä in ASCII. Now, I
 managed to get around this by changing the tmpdir to my actual temporary
 directory, but as a new user of ghc it was very troublesome to find a
 solution. Maybe consider changing the default tmpdir, at least if special
 characters are encountered?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12971>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list