[GHC] #11759: can't decompose ghc.exe path
#11759: can't decompose ghc.exe path --------------------------------------+---------------------------- Reporter: erisco | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Keywords: | Operating System: Windows Architecture: x86_64 (amd64) | Type of failure: Other Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: --------------------------------------+---------------------------- {{{ erisco@ERICWIN C:\Users\erisco\haskell-platform-bin $ ghc.exe ghc.exe: panic! (the 'impossible' happened) (GHC version 7.8.3 for x86_64-unknown-mingw32): can't decompose ghc.exe path: "C:\\Users\\erisco\\haskell- platform-bin\\ghc.exe" }}} haskell-platform-bin is a symbolic directory link to "C:\Program Files\Haskell Platform\2014.2.0.0\bin". I did this so there would not be spaces in the path because this is causing other issues for me. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: new Priority: normal | Milestone: 8.2.1 Component: Driver | Version: 7.8.3 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: => Phyx- * component: Compiler => Driver * type: bug => feature request * architecture: x86_64 (amd64) => Unknown/Multiple * milestone: => 8.2.1 Comment: Thanks for the report. I've fixed this in HEAD, but the fix will only work on Vista+. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Driver | Version: 7.8.3 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => patch * differential: => Phab:D2101 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Driver | Version: 7.8.3 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Tamar Christina <tamar@…>): In [changeset:"a3922083e8f41fc236972564dc2978f2a2d4ec13/ghc" a392208/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="a3922083e8f41fc236972564dc2978f2a2d4ec13" Resolve symlinks when attempting to find GHC's lib folder on Windows Summary: Systools makes some pretty hard assumptions about where GHC is on Windows. One of these is that ghc be in a folder named `bin` and that `../lib` exists. This pattern doesn't hold for symlinks as a link `C:\ghc-bin\` pointing to `C:\ghc\ghc-7.10.3\bin` will break this assumption. This patch resolves symlinks by finding where they point to and uses that location as the base for GHC. This uses an API that's been introduced in Vista. For older systems it falls back to the current behavior of not resolving symlinks. Test Plan: 1) Create symlink to GHC's bin folder. 2) Run GHC from that folder. Reviewers: austin, bgamari Reviewed By: austin Subscribers: #ghc_windows_task_force, thomie Differential Revision: https://phabricator.haskell.org/D2101 GHC Trac Issues: #11759 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * milestone: 8.2.1 => 8.0.1 Comment: Was merged to GHC 8.0 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Gurkenglas): May not be dead? {{{ PS C:\Users\gurke> ghc ghc.exe: panic! (the 'impossible' happened) (GHC version 8.4.3 for x86_64-unknown-mingw32): can't decompose ghc.exe path: "C:\\Users\\gurke\\AppData\\Roaming\\local\\bin\\ghc.exe" }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Does `C:\\Users\\gurke\\AppData\\Roaming\\local\\lib\\`? exist? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Gurkenglas): Nope. `C:\Users\gurke\AppData\Roaming\local\` exists, immediately in there's only `bin\`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Then that's the problem. Your bindist is incorrectly installed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11759: can't decompose ghc.exe path -------------------------------------+------------------------------------- Reporter: erisco | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Driver | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2101 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Gurkenglas): Then it should say that instead of telling me to report that ghc wrongly assumed something to be impossible, right? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11759#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC