[GHC] #8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory

#8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory -------------------------------------------+------------------------------- Reporter: configurator | Owner: Type: bug | Status: new Priority: low | Milestone: Component: GHCi | Version: 7.6.3 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Easy (less than 1 hour) | Type of failure: Blocked By: | None/Unknown Related Tickets: | Test Case: | Blocking: -------------------------------------------+------------------------------- The paths used in the {{{ghcii.sh}}} scripts to start {{{ghc --interactive}}} are incorrectly built using {{{"$0"/..}}}, which causes the message: {{{ /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh: line 2: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh: line 2: exec: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: cannot execute: No such file or directory }}} I believe using {{{"$(dirname "$0")"}}} would be a portable solution that works under both cygwin and Linux versions of bash. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8873 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory -------------------------------+------------------------------------------- Reporter: | Owner: configurator | Status: new Type: bug | Milestone: Priority: low | Version: 7.6.3 Component: GHCi | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | -------------------------------+------------------------------------------- Comment (by configurator): Output from looking at ghcii.sh: {{{ configurator@koan:/cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin$ cat ghcii-7.6.3.sh #!/bin/sh exec "$0"/../ghc --interactive ${1+"$@"} }}} This version seems to work: {{{ #!/bin/sh exec "$(dirname "$0")"/ghc --interactive ${1+"$@"} }}} However, I can't find ghcii.sh in the source to modify it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8873#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory -------------------------------+------------------------------------------- Reporter: | Owner: configurator | Status: new Type: bug | Milestone: Priority: low | Version: 7.6.3 Component: GHCi | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | -------------------------------+------------------------------------------- Comment (by rwbarton): Well I've never heard of `ghcii.sh`; apparently it is a Windows-only thing so no worries about portability. It's produced by `driver/ghci/ghc.mk`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8873#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory -------------------------------+------------------------------------------- Reporter: | Owner: configurator | Status: new Type: bug | Milestone: Priority: low | Version: 7.6.3 Component: GHCi | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | -------------------------------+------------------------------------------- Comment (by configurator): {{{perl boot}}} seems to fail on my machine, rendering me unable to compile GHC - I'd look into it if my change touched any of the compiler stuff, but this is just a shell file change. Is there a process for suggesting a patch without being able to compile? My patch is attached; it changes the directory name to use the version I specified earlier, and also changes {{{${1+"$@"}}}} to {{{"$@"}}} which does the exact same thing but cleaner. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8873#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory -------------------------------+------------------------------------------- Reporter: | Owner: configurator | Status: patch Type: bug | Milestone: Priority: low | Version: 7.6.3 Component: GHCi | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | -------------------------------+------------------------------------------- Changes (by thomie): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8873#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8873: /cygdrive/c/Program Files (x86)/Haskell
Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory
-------------------------------+-------------------------------------------
Reporter: | Owner:
configurator | Status: patch
Type: bug | Milestone:
Priority: low | Version: 7.6.3
Component: GHCi | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Easy (less than 1 hour)
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
-------------------------------+-------------------------------------------
Comment (by Austin Seipp

#8873: /cygdrive/c/Program Files (x86)/Haskell Platform/2013.2.0.0/bin/ghcii-7.6.3.sh/../ghc: No such file or directory -------------------------------------+------------------------------------- Reporter: | Owner: configurator | Status: closed Type: bug | Milestone: 7.10.1 Priority: low | Version: 7.6.3 Component: GHCi | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Merged, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8873#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC