[GHC] #14398: Fail to install haskell platform on Windows

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Keywords: | Operating System: Windows Architecture: x86_64 | Type of failure: Installing GHC (amd64) | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I can't run WinGHCi after my installation. When I use command "ghci" in cmd, it returns: {{{ GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help ghc.exe: internal error: mkPath failed converting char* to wchar_t* (GHC version 8.2.1 for x86_64_unknown_mingw32) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. }}} I had tried to reinstall or download the Core(64-bit) version, but nothing changed. I think there's nothing wrong with my install precedure. Sorry for my poor English! BTW, my windows is under Chinese code system. I don't know whether this matters or not. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Hi, I need to know what path it's trying to convert. Can you download and extract https://1drv.ms/u/s!AuQz_u- 9HaJPmcQRFveWa9dMBi77hg Then download http://www.rohitab.com/download/api-monitor- v2r13-x86-x64.zip run the api monitor (64 bit) and click the `monitor new process` button, in the dialog for `Process` enter the path to the `GHCi.exe` in the GHC you downloaded above, and press `OK`. it should list 4 exe in the `monitored processes`, click on them each one at a time, and each time go to `File` -> `Save As`, and save the result. Attach the 4 captures here and I'll take a look. Thanks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * cc: Phyx- (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by KAAAsS): The version above works perfectly with my computer. So I tried to capture the GHCi.exe in Haskell Platform. But I could only get 2 exe. Capture file: https://1drv.ms/u/s!AsbnyYMkwdNRjFUmP4b9Sh-g2lAn Sorry for my late response. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * related: => #14168 Comment: Thanks for 8.2 won't work with the monitor, so the output won't be very useful. I'll have to make a special build of 8.2 for you to check. I'll do that today. I am however curious as to why the 8.4 build works... can you still attach a log the traces for that one? It should contain the paths i'm after. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Thanks for 8.2 won't work with the monitor, so the output won't be very useful. I'll have to make a special build of 8.2 for you to check. I'll do
#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by KAAAsS): Replying to [comment:4 Phyx-]: that today.
I am however curious as to why the 8.4 build works... can you still
attach a log the traces for that one? It should contain the paths i'm after. Capture file of version 8.3.20171021: https://1drv.ms/u/s !AsbnyYMkwdNRjFqeKwZHs-1BsNwd Hope it'll be useful. :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * Attachment "filters.zip" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Thanks @KAAAsS, unfortunately you did not seem to have any filters selected, so the capture file is mostly empty. Could you try again, but this time before you start capturing go to `Filter` -> `Load` and select the xml file in the zip file I attached here. This should enable the right APIs to monitor. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by KAAAsS): I tried to use the filter below, but it captured nothing. I don't know what's the wrong with it. Here is the capture file: https://1drv.ms/u/s!AsbnyYMkwdNRjFv1vgyL4ePq4dNs And it seems like I had captured sth without filter file: https://1drv.ms/u/s!AsbnyYMkwdNRjFwPJuzex5fv-i5e Hope it'll be useful. :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Thanks! the trace shows nothing really wrong, I think 8.2 has a memory corruption somewhere that's causing invalid characters to manifest in the strings. I'll have to figure out a way to track it down to verify if it's actually fixed or just happens to work in 8.4. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14398: Fail to install haskell platform on Windows -------------------------------------+------------------------------------- Reporter: KAAAsS | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: #14168 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by PaladinOfHonour): Replying to [comment:8 Phyx-]:
Thanks! the trace shows nothing really wrong, I think 8.2 has a memory corruption somewhere that's causing invalid characters to manifest in the strings. I'll have to figure out a way to track it down to verify if it's actually fixed or just happens to work in 8.4.
This will be a very late reply to this thread, however, I encountered the exact same internal error issue. I run Windows 10 64-bit with Japanese as the OS language. After troubleshooting, and ruling out the similar #15021 chcp ticket, upgrading from 8.2 to 8.4 did do the job and resolved the error. As I noticed the error hasn't been closed yet and it's exact origin not quite yet discovered, I thought I'd give some extra information. Certain Japanese fonts map the ¥ sign to the \ , causing paths to take the visual form of C:¥Users¥User etc. This is most often merely visual, however, can cause problems within certain programs. Furthermore, OS specific directories might be in Japanese (user = ユーザー ), however, this should once again be merely a visual change. As the original poster was running a Chinese system, I suspect the error is caused by either of the above, or similar, effects. Thanks for the suggestion of upgrading and if there's still an interest in the bug I hope a second error report might elucidate the problem a bit. Kind Regards, Pally -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14398#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC