[GHC] #15096: GHC fails to execute gcc on Windows when unicode character is in the path

GHC ghc-devs at haskell.org
Sat Apr 28 01:05:22 UTC 2018


#15096: GHC fails to execute gcc on Windows when unicode character is in the path
-------------------------------------+-------------------------------------
           Reporter:  nh2            |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.6.1
          Component:  Build System   |           Version:  8.0.2
           Keywords:                 |  Operating System:  Windows
       Architecture:                 |   Type of failure:  GHC doesn't work
  Unknown/Multiple                   |  at all
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:  #15021
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 This happens when the location of gcc is under a path with non-ASCII
 directory in it:

 {{{
 PS C:\Users\日\stack-test> & 'C:\Users\日
 \AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\bin\ghc.exe' -no-
 user-package-db .\Main.hs
 [1 of 1] Compiling Main             ( Main.hs, Main.o )

 <no location info>: error:
     Warning: Couldn't figure out C compiler information!
              Make sure you're using GNU gcc, or clang
 Unable to start
 C:\Users\?\AppData\Local\Programs\stack\x86_64-windows\ghc-8.0.2\mingw\bin/realgcc.exe
 (error code: 123)
 `gcc.exe' failed in phase `Assembler'. (Exit code: 1)
 }}}

 Tested with ghc 8.0.2 on Windows Server 2016 (same setup as in #15021).

 This was discovered as part of the effort to make Haskell tooling work
 well for users with non-ASCII user names:
 https://github.com/commercialhaskell/stack/issues/3988

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


More information about the ghc-tickets mailing list