Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
#1196: Cabal on Windows doesn't like the in-place GHCs --+- Reporter: igloo | Owner: igloo Type: merge | Status: closed Priority: normal| Milestone: 6.6.1 Component: Compiler |Version: 6.6 Severity: normal| Resolution: fixed Keywords:| Difficulty: Unknown Testcase: cabal01, cabal02 | Architecture: Unknown Os: Windows | --+- Changes (by igloo): * resolution: = fixed * status: new = closed Comment: Merged. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1196 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
#1196: Cabal on Windows doesn't like the in-place GHCs --+- Reporter: igloo | Owner: igloo Type: merge | Status: new Priority: normal| Milestone: 6.6.1 Component: Compiler |Version: 6.6 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase: cabal01, cabal02 | Architecture: Unknown Os: Windows | --+- Changes (by simonmar): * milestone: _|_ = 6.6.1 * owner: = igloo * type: bug = merge Comment: Thanks mostly to Sigbjorn, this has now been fixed: {{{ Fri Nov 17 01:23:43 GMT 2006 [EMAIL PROTECTED] * Emit .bat versions of -inplace scripts on Windows platforms (Cabal- friendlier) M ./compiler/Makefile +11 Fri Nov 17 01:22:39 GMT 2006 [EMAIL PROTECTED] * Emit .bat version of -inplace script on Windows platforms }}} and in the testsuite: {{{ Thu Mar 8 13:15:40 GMT 2007 Simon Marlow [EMAIL PROTECTED] * on Windows, use the .bat versions of the inplace scripts }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1196 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
I added support for generating .bat files (to HEAD, I believe) for these in-place wrappers some time ago just to address this issue, so you may want to look into dragging those Makefile mods over. --sigbjorn On 3/5/2007 08:58, GHC wrote: #1196: Cabal on Windows doesn't like the in-place GHCs -+-- Reporter: igloo | Owner: Type: bug | Status: new Priority: normal| Milestone: _|_ Component: Compiler | Version: 6.6 Severity: normal|Keywords: Difficulty: Unknown |Testcase: cabal01 Architecture: Unknown | Os: Windows -+-- From e.g. a cmd prompt, Windows doesn't like the in-place GHCs: {{{ C:\C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc-inplace 'C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc-inplace' is not recognized as an internal or external command, operable program or batch file. C:\cat C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc- inplace #!/bin/sh exec C:/cygwin/home/ian/ghc/6.6-branch/build/compiler/stage2/ghc -BC:cygwinhomeianghc6.6-branchbuild $@ }}} which means the cabal01 test fails thus: {{{ $ ./setup configure --prefix=`pwd`/install --with- compiler=C:/cygwin/home/ian/ghc/6.6-branch/build/compiler/stage1/ghc- inplace --with-hc-pkg=../../../../../utils/ghc-pkg/ghc-pkg-inplace --enable-library-profiling setup.exe: Warning: Package is copyright All Rights Reserved setup.exe: Warning: No license-file field. 'C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage1\ghc-inplace' is not recognized as an internal or external command, operable program or batch file. Configuring test-1.0... }}} (the odd output order is due to buffering) ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
Ah, so you did, thanks for reminding me. We still need to do something about ghc-pkg, though. Cheers, Simon Sigbjorn Finne wrote: I added support for generating .bat files (to HEAD, I believe) for these in-place wrappers some time ago just to address this issue, so you may want to look into dragging those Makefile mods over. --sigbjorn On 3/5/2007 08:58, GHC wrote: #1196: Cabal on Windows doesn't like the in-place GHCs -+-- Reporter: igloo | Owner: Type: bug | Status: newPriority: normal| Milestone: _|_ Component: Compiler | Version: 6.6 Severity: normal|Keywords: Difficulty: Unknown |Testcase: cabal01 Architecture: Unknown | Os: Windows -+-- From e.g. a cmd prompt, Windows doesn't like the in-place GHCs: {{{ C:\C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc-inplace 'C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc-inplace' is not recognized as an internal or external command, operable program or batch file. C:\cat C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc- inplace #!/bin/sh exec C:/cygwin/home/ian/ghc/6.6-branch/build/compiler/stage2/ghc -BC:cygwinhomeianghc6.6-branchbuild $@ }}} which means the cabal01 test fails thus: {{{ $ ./setup configure --prefix=`pwd`/install --with- compiler=C:/cygwin/home/ian/ghc/6.6-branch/build/compiler/stage1/ghc- inplace --with-hc-pkg=../../../../../utils/ghc-pkg/ghc-pkg-inplace --enable-library-profiling setup.exe: Warning: Package is copyright All Rights Reserved setup.exe: Warning: No license-file field. 'C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage1\ghc-inplace' is not recognized as an internal or external command, operable program or batch file. Configuring test-1.0... }}} (the odd output order is due to buffering) ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
If you're referring to ghc-pkg-inplace invocations from Cabal, the same hack was applied in utils/ghc-pkg also. --sigbjorn On 3/6/2007 08:46, Simon Marlow wrote: Ah, so you did, thanks for reminding me. We still need to do something about ghc-pkg, though. Cheers, Simon Sigbjorn Finne wrote: I added support for generating .bat files (to HEAD, I believe) for these in-place wrappers some time ago just to address this issue, so you may want to look into dragging those Makefile mods over. --sigbjorn On 3/5/2007 08:58, GHC wrote: #1196: Cabal on Windows doesn't like the in-place GHCs -+-- Reporter: igloo | Owner: Type: bug | Status: newPriority: normal| Milestone: _|_ Component: Compiler | Version: 6.6Severity: normal|Keywords: Difficulty: Unknown |Testcase: cabal01 Architecture: Unknown | Os: Windows -+-- From e.g. a cmd prompt, Windows doesn't like the in-place GHCs: {{{ C:\C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc-inplace 'C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc-inplace' is not recognized as an internal or external command, operable program or batch file. C:\cat C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage2\ghc- inplace #!/bin/sh exec C:/cygwin/home/ian/ghc/6.6-branch/build/compiler/stage2/ghc -BC:cygwinhomeianghc6.6-branchbuild $@ }}} which means the cabal01 test fails thus: {{{ $ ./setup configure --prefix=`pwd`/install --with- compiler=C:/cygwin/home/ian/ghc/6.6-branch/build/compiler/stage1/ghc- inplace --with-hc-pkg=../../../../../utils/ghc-pkg/ghc-pkg-inplace --enable-library-profiling setup.exe: Warning: Package is copyright All Rights Reserved setup.exe: Warning: No license-file field. 'C:\cygwin\home\ian\ghc\6.6-branch\build\compiler\stage1\ghc-inplace' is not recognized as an internal or external command, operable program or batch file. Configuring test-1.0... }}} (the odd output order is due to buffering) ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
#1196: Cabal on Windows doesn't like the in-place GHCs --+- Reporter: igloo | Owner: Type: bug | Status: new Priority: normal| Milestone: _|_ Component: Compiler |Version: 6.6 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase: cabal01, cabal02 | Architecture: Unknown Os: Windows | --+- Changes (by igloo): * testcase: cabal01 = cabal01, cabal02 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1196 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #1196: Cabal on Windows doesn't like the in-place GHCs
#1196: Cabal on Windows doesn't like the in-place GHCs --+- Reporter: igloo | Owner: Type: bug | Status: new Priority: normal| Milestone: _|_ Component: Compiler |Version: 6.6 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase: cabal01, cabal02 | Architecture: Unknown Os: Windows | --+- Comment (by simonmar): Yes, I got halfway to fixing this and didn't finish it. Basically I was planning to do away with the ghc-inplace scripts on Windows, and instead have the GHC binary figure out whether it was in a build tree or not by inspecting the binary pathname. ghc-inplace causes problems for the testsuite driver too, IIRC. Unfortunately similar changes would also be required to ghc-pkg (doing away with ghc-pkg-inplace on Windows), since there's no way to pass extra arguments to ghc-pkg via Cabal (perhaps there should be?). Better ideas welcome... -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/1196 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs