[GHC] #8738: msys2 fails cabal01 test

#8738: msys2 fails cabal01 test --------------------------+------------------------------------------------ Reporter: ezyang | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Test | Version: 7.8.1-rc1 Suite | Operating System: Windows Keywords: | Type of failure: Incorrect result at runtime Architecture: | Test Case: cabal01 Unknown/Multiple | Blocking: Difficulty: | Unknown | Blocked By: | Related Tickets: | --------------------------+------------------------------------------------ msys2 with 64-bit GHC has an odd failure here: {{{ =====> cabal01(normal) 81 of 3859 [0, 0, 0] cd ./cabal/cabal01 && $MAKE -s --no-print-directory cabal01 VANILLA =--enable-library-vanilla PROF=--disable-library-profiling DYN=--disable- shared cabal01.run.stdout 2>cabal01.run.stderr Actual stdout output differs from expected: --- ./cabal/cabal01/cabal01.stdout-mingw32 2014-02-02 04:48:11.233000000 +0000 +++ ./cabal/cabal01/cabal01.run.stdout 2014-02-05 03:09:28.998400000 +0000 @@ -1,9 +1,9 @@ install1: bin -test-1.0 +x86_64-windows-ghc-7.9.20140205 install2: bin -test-1.0 +x86_64-windows-ghc-7.9.20140205 dist: build package.conf.inplace }}} This is because setup is selecting this directory as the location for the installation: {{{ /inplace/bin/ghc-pkg.exe' --package- db=local.db'C:/msys64/home/Administrator/ghc Configuring test-1.0... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Dependency base >=1.0: using base-4.7.0.0 "C:/msys64/home/Administrator/ghc/inplace/bin/ghc-stage2.exe" "--info" Using Cabal-1.18.1.3 compiled by ghc-7.9 Using compiler: ghc-7.9.20140205 Using install prefix: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install Binaries installed in: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin Libraries installed in: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0 Private binaries installed in: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\test-1.0 Data files installed in: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0 Documentation installed in: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\doc\x86_64 -windows-ghc-7.9.20140205\test-1.0 Configuration files installed in: C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\etc Administrator@EZYANG-W2K8 ~/ghc/testsuite/tests/cabal/cabal01 $ ./setup.exe copy -v directory dist\doc\html\test does exist: False Installing library in C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0 Installing executable(s) in C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin Warning: The directory C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin is not in the system search path. creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205\test-1.0 creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205 creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205 creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205\test-1.0 creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205\test-1.0\B Installing dist\build\A.hi to C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0\A.hi Installing dist\build\B\A.hi to C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0\B\A.hi creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205\test-1.0 Installing dist\build\libHStest-1.0.a to C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0\libHStest-1.0.a creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\x86_64 -windows-ghc-7.9.20140205\test-1.0 Installing dist\build\HStest-1.0.o to C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\x86_64 -windows-ghc-7.9.20140205\test-1.0\HStest-1.0.o creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\bin Installing executable dist\build\testA\testA.exe to C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin\testA.exe C:\msys64\ghc-7.6.3\mingw\bin\strip.exe C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin\testA.exe creating C:\msys64\home\Administrator\ghc\testsuite\tests\cabal\cabal01\install\bin Installing executable dist\build\testB\testB.exe to C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin\testB.exe C:\msys64\ghc-7.6.3\mingw\bin\strip.exe C:/msys64/home/Administrator/ghc/testsuite/tests/cabal/cabal01/install\bin\testB.exe }}} Perhaps a cabal developer can stare at the relevant codepath and figure out why this directory name is being selected? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8738: msys2 fails cabal01 test ------------------------------------------------+-------------------------- Reporter: ezyang | Owner: refold Type: bug | Status: new Priority: low | Milestone: Component: Test Suite | Version: Resolution: | 7.8.1-rc1 Operating System: Windows | Keywords: Type of failure: Incorrect result at runtime | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by refold): * owner: => refold Comment:
Perhaps a cabal developer can stare at the relevant codepath and figure out why this directory name is being selected?
I'll look into this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8738: msys2 fails cabal01 test ------------------------------------------------+-------------------------- Reporter: ezyang | Owner: refold Type: bug | Status: new Priority: low | Milestone: Component: Test Suite | Version: Resolution: | 7.8.1-rc1 Operating System: Windows | Keywords: Type of failure: Incorrect result at runtime | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by refold): Looks like this has to do with cross-compilation changes in 1.18, which changed the default install locations. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8738: msys2 fails cabal01 test ------------------------------------------------+-------------------------- Reporter: ezyang | Owner: refold Type: bug | Status: new Priority: low | Milestone: Component: Test Suite | Version: Resolution: | 7.8.1-rc1 Operating System: Windows | Keywords: Type of failure: Incorrect result at runtime | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by refold): Passes now on my machine with the attached patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8738: msys2 fails cabal01 test ------------------------------------------------+-------------------------- Reporter: ezyang | Owner: refold Type: bug | Status: patch Priority: low | Milestone: Component: Test Suite | Version: Resolution: | 7.8.1-rc1 Operating System: Windows | Keywords: Type of failure: Incorrect result at runtime | Architecture: Test Case: cabal01 | Unknown/Multiple Blocking: | Difficulty: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by refold): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8738: msys2 fails cabal01 test ------------------------------------------------+-------------------------- Reporter: ezyang | Owner: refold Type: bug | Status: patch Priority: low | Milestone: Component: Test Suite | Version: 7.9 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Incorrect result at runtime | Unknown/Multiple Test Case: cabal01 | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by refold): * version: 7.8.1-rc1 => 7.9 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8738: msys2 fails cabal01 test
------------------------------------------------+--------------------------
Reporter: ezyang | Owner: refold
Type: bug | Status: patch
Priority: low | Milestone:
Component: Test Suite | Version: 7.9
Resolution: | Keywords:
Operating System: Windows | Architecture:
Type of failure: Incorrect result at runtime | Unknown/Multiple
Test Case: cabal01 | Difficulty:
Blocking: | Unknown
| Blocked By:
| Related Tickets:
------------------------------------------------+--------------------------
Comment (by Austin Seipp

#8738: msys2 fails cabal01 test ------------------------------------------------+-------------------------- Reporter: ezyang | Owner: refold Type: bug | Status: closed Priority: low | Milestone: Component: Test Suite | Version: 7.9 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Incorrect result at runtime | Unknown/Multiple Test Case: cabal01 | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8738#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC