Opened 2 months ago

Closed 4 weeks ago

#8738 closed bug (fixed)

msys2 fails cabal01 test

Reported by: ezyang Owned by: refold
Priority: low Milestone:
Component: Test Suite Version: 7.9
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: Incorrect result at runtime Difficulty: Unknown
Test Case: cabal01 Blocked By:
Blocking: Related Tickets:

Description

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     </dev/null >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?

Attachments (1)

0001-Make-cabal01-pass-with-Cabal-1.18-8738.patch (1.3 KB) - added by refold 6 weeks ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 2 months ago by refold

  • Owner set to refold

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.

comment:2 Changed 6 weeks ago by refold

Looks like this has to do with cross-compilation changes in 1.18, which changed the default install locations.

comment:3 Changed 6 weeks ago by refold

Passes now on my machine with the attached patch.

comment:4 Changed 6 weeks ago by refold

  • Status changed from new to patch

comment:5 Changed 4 weeks ago by refold

  • Version changed from 7.8.1-rc1 to 7.9

comment:6 Changed 4 weeks ago by Austin Seipp <austin@…>

In be2e0e88d7ddd33eef8277c8d67f0b0f3e2874be/ghc:

Make cabal01 pass with Cabal 1.18 (#8738).

Signed-off-by: Austin Seipp <austin@well-typed.com>

comment:7 Changed 4 weeks ago by thoughtpolice

  • Resolution set to fixed
  • Status changed from patch to closed

Merged, thanks!

Note: See TracTickets for help on using tickets.