Windows falures

Simon Peyton-Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <59543203684B2244980D7E4057D5FBC13F73CB79@DB3EX14MBXC310.europe.corp.microsoft.com>
Ian

As discussed, here are the failures I get on 32 bit Windows with MSYS:

   ../../libraries/random/tests           rangeTest [bad exit code] (normal)
   cabal                                  ghcpkg03 [bad stderr] (normal)
   cabal                                  ghcpkg05 [bad stderr] (normal)
   codeGen/should_run                     cgrun071 [bad exit code] (normal)
   driver                                 shared001 [bad stderr] (normal)
   ghci.debugger/scripts                  break011 [bad stdout] (ghci)
   ghci.debugger/scripts                  dynbrk009 [bad exit code] (ghci)
   ghci/linking                           ghcilink004 [bad exit code] (normal)
   ghci/scripts                           T5975a [bad stderr] (ghci)
   ghci/scripts                           T6106 [bad stderr] (ghci)
   ghci/scripts                           ghci058 [bad stderr] (ghci)
   rts                                    T7037 [bad exit code] (normal)

I’ve cut/pasted the relevant log output below.  Happy to help if you have any difficulty reproducing.  This is with my validate.mk saying
LAX_DEPENDENCIES = YES
WERROR          = -Werror
GhcStage1HcOpts += -O0 -DDEBUG
GhcStage2HcOpts += -dcore-lint -ticky
GhcLibHcOpts    += -dcore-lint
GhcLibWays         = v
SplitObjs          = NO

(the -ticky is accidental but should do no harm.)

thanks

Simon

=====> rangeTest(normal) 3246 of 3460 [1, 35, 1]
cd ../../libraries/random/tests && 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history -o rangeTest rangeTest.hs    >rangeTest.comp.stderr 2>&1
cd ../../libraries/random/tests && ./rangeTest    </dev/null >rangeTest.run.stdout 2>rangeTest.run.stderr
Wrong exit code (expected 0 , actual 1 )
Stdout:
Int:  Passed
Integer:  Passed
Int8:  Passed
Int16:  Passed
Int32:  Passed
Int64:  Passed
Word:  Passed
Word8:  Passed
Word16:  Passed
Word32:  Passed
Word64:  Passed
Double:  Passed
Float:  Passed
CChar:  Passed
CSChar:  Passed
CUChar:  Passed
CShort:  Passed
CUShort:  Passed
CInt:  Passed
CUInt:  Passed
CLong:  Passed
CULong:  Passed
CPtrdiff:  Passed
CSize:  Passed
CWchar:  Passed
CSigAtomic:  Passed
CLLong:  Passed
CULLong:  Passed
CIntPtr:  Passed
CUIntPtr:  Passed
CIntMax:  Passed
CUIntMax:  Passed
Int R:  Passed
Integer R:  Passed
Int8 R:  Passed
Int8 Rsmall:  Passed
Int8 Rmini:  Passed
Int8 Rtrivial:  Passed
Int16 R:  Passed
Int32 R:  Passed
Int64 R:  Passed
Word R:  Passed
Word8 R:  Passed
Word16 R:  Passed
Word32 R:  Passed
Word64 R:  Passed
Double R:  Passed
Float R:  Passed
CChar R:  Passed
CSChar R:  Passed
CUChar R:  Passed
CShort R:  Passed
CUShort R:  Passed
CInt R:  Passed
CUInt R:  Passed
CLong R:  Passed
CULong R:  Passed
CPtrdiff R:  Passed
CSize R:  Passed
CWchar R:
Stderr:
rangeTest.exe: broke lower bound: 100

*** unexpected failure for rangeTest(normal)

=====> ghcpkg03(normal) 75 of 3460 [1, 0, 1]
cd ./cabal && $MAKE -s --no-print-directory ghcpkg03    </dev/null >ghcpkg03.run.stdout 2>ghcpkg03.run.stderr
Actual stderr output differs from expected:
--- ./cabal/ghcpkg03.stderr-mingw32      2012-05-03 10:28:30 +0100
+++ ./cabal/ghcpkg03.run.stderr 2012-10-29 19:38:17 +0000
@@ -4,28 +4,28 @@
testpkg-1.2.3.4: import-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory (ignoring)
testpkg-1.2.3.4: library-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
testpkg-1.2.3.4: include-dirs: /usr/local/include/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
-testpkg-1.2.3.4: file A.hi is missing (ignoring)
-testpkg-1.2.3.4: file B.hi is missing (ignoring)
-testpkg-1.2.3.4: file C\D.hi is missing (ignoring)
-testpkg-1.2.3.4: cannot find libtestpkg-1.2.3.4.a on library path (ignoring)
+testpkg-1.2.3.4: cannot find any of ["A.hi","A.p_hi","A.dyn_hi"] (ignoring)
+testpkg-1.2.3.4: cannot find any of ["B.hi","B.p_hi","B.dyn_hi"] (ignoring)
+testpkg-1.2.3.4: cannot find any of ["C\\D.hi","C\\D.p_hi","C\\D.dyn_hi"] (ignoring)
+testpkg-1.2.3.4: cannot find any of ["libtestpkg-1.2.3.4.a","libtestpkg-1.2.3.4.p_a","libtestpkg-1.2.3.4-ghc7.7.20121019.so","libtestpkg-1.2.3.4-ghc7.7.20121019.dylib","testpkg-1.2.3.4-ghc7.7.20121019.dll"] on library path (ignoring)
testpkg-2.0: Warning: library-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory
testpkg-2.0: Warning: include-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory
testpkg-2.0: import-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
testpkg-2.0: import-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory (ignoring)
testpkg-2.0: library-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
testpkg-2.0: include-dirs: /usr/local/include/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
-testpkg-2.0: file A.hi is missing (ignoring)
-testpkg-2.0: file B.hi is missing (ignoring)
-testpkg-2.0: file C\D.hi is missing (ignoring)
-testpkg-2.0: file C\E.hi is missing (ignoring)
-testpkg-2.0: cannot find libtestpkg-2.0.a on library path (ignoring)
+testpkg-2.0: cannot find any of ["A.hi","A.p_hi","A.dyn_hi"] (ignoring)
+testpkg-2.0: cannot find any of ["B.hi","B.p_hi","B.dyn_hi"] (ignoring)
+testpkg-2.0: cannot find any of ["C\\D.hi","C\\D.p_hi","C\\D.dyn_hi"] (ignoring)
+testpkg-2.0: cannot find any of ["C\\E.hi","C\\E.p_hi","C\\E.dyn_hi"] (ignoring)
+testpkg-2.0: cannot find any of ["libtestpkg-2.0.a","libtestpkg-2.0.p_a","libtestpkg-2.0-ghc7.7.20121019.so","libtestpkg-2.0-ghc7.7.20121019.dylib","testpkg-2.0-ghc7.7.20121019.dll"] on library path (ignoring)
testpkg-1.2.3.4: Warning: library-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory
testpkg-1.2.3.4: Warning: include-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory
testpkg-1.2.3.4: import-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
testpkg-1.2.3.4: import-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory (ignoring)
testpkg-1.2.3.4: library-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
testpkg-1.2.3.4: include-dirs: /usr/local/include/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}. (ignoring)
-testpkg-1.2.3.4: file A.hi is missing (ignoring)
-testpkg-1.2.3.4: file B.hi is missing (ignoring)
-testpkg-1.2.3.4: file C\D.hi is missing (ignoring)
-testpkg-1.2.3.4: cannot find libtestpkg-1.2.3.4.a on library path (ignoring)
+testpkg-1.2.3.4: cannot find any of ["A.hi","A.p_hi","A.dyn_hi"] (ignoring)
+testpkg-1.2.3.4: cannot find any of ["B.hi","B.p_hi","B.dyn_hi"] (ignoring)
+testpkg-1.2.3.4: cannot find any of ["C\\D.hi","C\\D.p_hi","C\\D.dyn_hi"] (ignoring)
+testpkg-1.2.3.4: cannot find any of ["libtestpkg-1.2.3.4.a","libtestpkg-1.2.3.4.p_a","libtestpkg-1.2.3.4-ghc7.7.20121019.so","libtestpkg-1.2.3.4-ghc7.7.20121019.dylib","testpkg-1.2.3.4-ghc7.7.20121019.dll"] on library path (ignoring)
*** unexpected failure for ghcpkg03(normal)
[Error 5] Access is denied: './cabal/local03.package.conf'
[Error 145] The directory is not empty: './cabal/local03.package.conf'

=====> ghcpkg05(normal) 77 of 3460 [1, 1, 1]
cd ./cabal && $MAKE -s --no-print-directory ghcpkg05    </dev/null >ghcpkg05.run.stdout 2>ghcpkg05.run.stderr
Actual stderr output differs from expected:
--- ./cabal/ghcpkg05.stderr-mingw32      2012-05-03 10:28:30 +0100
+++ ./cabal/ghcpkg05.run.stderr 2012-10-29 19:38:27 +0000
@@ -5,11 +5,11 @@
   import-dirs: c:/Program Files/testpkg doesn't exist or isn't a directory
   library-dirs: /usr/local/lib/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}.
   include-dirs: /usr/local/include/testpkg is a relative path which makes no sense (as there is nothing for it to be relative to). You can make paths relative to the package database itself by using ${pkgroot}.
-  file A.hi is missing
-  file B.hi is missing
-  file C\D.hi is missing
-  file C\E.hi is missing
-  cannot find libtestpkg-2.0.a on library path
+  cannot find any of ["A.hi","A.p_hi","A.dyn_hi"]
+  cannot find any of ["B.hi","B.p_hi","B.dyn_hi"]
+  cannot find any of ["C\\D.hi","C\\D.p_hi","C\\D.dyn_hi"]
+  cannot find any of ["C\\E.hi","C\\E.p_hi","C\\E.dyn_hi"]
+  cannot find any of ["libtestpkg-2.0.a","libtestpkg-2.0.p_a","libtestpkg-2.0-ghc7.7.20121019.so","libtestpkg-2.0-ghc7.7.20121019.dylib","testpkg-2.0-ghc7.7.20121019.dll"] on library path
 The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.

=====> cgrun071(normal) 86 of 103 [0, 0, 0]
cd ./should_run && 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history -o cgrun071 cgrun071.hs    >cgrun071.comp.stderr 2>&1
cd ./should_run && ./cgrun071    </dev/null >cgrun071.run.stdout 2>cgrun071.run.stderr
Wrong exit code (expected 0 , actual 1 )
Stdout:
Segmentation fault/access violation in generated code

Stderr:

*** unexpected failure for cgrun071(normal)


=====> shared001(normal) 594 of 3460 [1, 3, 1]
cd ./driver && $MAKE -s --no-print-directory shared001    </dev/null >shared001.run.stdout 2>shared001.run.stderr
Actual stderr output differs from expected:
--- ./driver/shared001.stderr        2011-12-08 14:24:12 +0000
+++ ./driver/shared001.run.stderr          2012-10-29 19:59:30 +0000
@@ -1 +1,3 @@
+Warning: -rtsopts and -with-rtsopts have no effect with -shared.
+    Call hs_init_ghc() from your main() function to set these options.
Creating library file: HSdll.dll.a


=====> break011(ghci) 982 of 3460 [1, 9, 1]
cd ./ghci.debugger/scripts && HC='C:/code/HEAD/inplace/bin/ghc-stage2.exe' HC_OPTS='-dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history ' 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' --interactive -v0 -ignore-dot-ghci -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history  -ignore-dot-ghci   <break011.script >break011.run.stdout 2>&1
Actual stdout output differs from expected:
--- ./ghci.debugger/scripts/break011.stdout      2011-12-08 14:24:13 +0000
+++ ./ghci.debugger/scripts/break011.run.stdout       2012-10-29 20:13:16 +0000
@@ -3,21 +3,21 @@
_exception :: e = _
Stopped at <exception thrown>
_exception :: e = _
--1  : main (../Test7.hs:2:18-28)
--2  : main (../Test7.hs:2:8-29)
+-1  : main (..\Test7.hs:2:18-28)
+-2  : main (..\Test7.hs:2:8-29)
<end of history>
-Logged breakpoint at ../Test7.hs:2:18-28
+Logged breakpoint at ..\Test7.hs:2:18-28
_result :: a
-Logged breakpoint at ../Test7.hs:2:8-29
+Logged breakpoint at ..\Test7.hs:2:8-29
_result :: IO a
no more logged breakpoints
-Logged breakpoint at ../Test7.hs:2:18-28
+Logged breakpoint at ..\Test7.hs:2:18-28
_result :: a
Stopped at <exception thrown>
_exception :: e
already at the beginning of the history
-_exception = SomeException (ErrorCall "foo")
+_exception = SomeException "foo"
_result :: a = _
-_exception :: SomeException = SomeException (ErrorCall "foo")
+_exception :: SomeException = SomeException "foo"
*** Exception: foo
*** Exception: foo
*** unexpected failure for break011(ghci)


=====> dynbrk009(ghci) 1005 of 3460 [1, 10, 1]
cd ./ghci.debugger/scripts && HC='C:/code/HEAD/inplace/bin/ghc-stage2.exe' HC_OPTS='-dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history ' 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' --interactive -v0 -ignore-dot-ghci -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history  -ignore-dot-ghci   <dynbrk009.script >dynbrk009.run.stdout 2>dynbrk009.run.stderr
Wrong exit code (expected 0 , actual 1 )
Stdout:
Stopped at dynbrk009.hs:8:22
_result :: Int = _
Stopped at dynbrk009.hs:8:27-36
_result :: Int = _
Stopped at dynbrk009.hs:8:31-35

Stopped at dynbrk009.hs:6:1-9

Segmentation fault/access violation in generated code

Stderr:

*** unexpected failure for dynbrk009(ghci)

=====> ghcilink004(normal) 4 of 115 [0, 0, 0]
cd ./linking && $MAKE -s --no-print-directory ghcilink004    </dev/null >ghcilink004.run.stdout 2>ghcilink004.run.stderr
Wrong exit code (expected 0 , actual 2 )
Stdout:
84
Segmentation fault/access violation in generated code

Stderr:
make[1]: *** [ghcilink004] Error 1

*** unexpected failure for ghcilink004(normal)


=====> T5975a(ghci) 923 of 3460 [1, 6, 1]
......comes out as Chinese gibberish when I paste it in), but the main line is:

+<no location info>: can't find file: fb狠㄀⸀栀猀

=====> T6106(ghci) 928 of 3460 [1, 7, 1]
cd ./ghci/scripts && HC='C:/code/HEAD/inplace/bin/ghc-stage2.exe' HC_OPTS='-dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history ' 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' --interactive -v0 -ignore-dot-ghci -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history     <T6106.script >T6106.run.stdout 2>T6106.run.stderr
Actual stderr output differs from expected:
--- ./ghci/scripts/T6106.stderr      2012-05-25 21:08:21 +0100
+++ ./ghci/scripts/T6106.run.stderr       2012-10-29 20:12:14 +0000
@@ -1,2 +1,2 @@
-
-T6106.hs:1:1: Parse error: naked expression at top level
+phase `Haskell pre-processor' failed (exitcode = 1)
+phase `Haskell pre-processor' failed (exitcode = 1)
*** unexpected failure for T6106(ghci)


=====> ghci058(ghci) 931 of 3460 [1, 8, 1]
cd ./ghci/scripts && HC='C:/code/HEAD/inplace/bin/ghc-stage2.exe' HC_OPTS='-dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history ' 'C:/code/HEAD/inplace/bin/ghc-stage2.exe' --interactive -v0 -ignore-dot-ghci -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -fno-ghci-history     <ghci058.script >ghci058.run.stdout 2>ghci058.run.stderr
Actual stderr output differs from expected:
--- /dev/null  2012-10-29 20:12:17 +0000
+++ ./ghci/scripts/ghci058.run.stderr     2012-10-29 20:12:17 +0000
@@ -0,0 +1,12 @@
+'$HC' is not recognized as an internal or external command,
+operable program or batch file.
+
+Ghci058.hs:1:1: Parse error: naked expression at top level
+
+<interactive>:9:1: Not in scope: `c'
+'$HC' is not recognized as an internal or external command,
+operable program or batch file.
+
+Ghci058.hs:1:1: Parse error: naked expression at top level
+
+<interactive>:14:1: Not in scope: `c'
Actual stdout output differs from expected:
--- ./ghci/scripts/ghci058.stdout   2012-10-19 20:37:24 +0100
+++ ./ghci/scripts/ghci058.run.stdout    2012-10-29 20:12:17 +0000
@@ -1,4 +1,4 @@
-Ok, modules loaded: Ghci058.
-'a'
-Ok, modules loaded: Ghci058.
-'b'
+[1 of 1] Compiling Main             ( Ghci058.hs, interpreted )
+Failed, modules loaded: none.
+[1 of 1] Compiling Main             ( Ghci058.hs, interpreted )
+Failed, modules loaded: none.

=====> T7037(normal) 2141 of 3460 [1, 17, 1]
cd ./rts && $MAKE -s --no-print-directory T7037    </dev/null >T7037.run.stdout 2>T7037.run.stderr
Wrong exit code (expected 0 , actual 2 )
Stdout:

Stderr:
T7037_main.c: In function 'main':

T7037_main.c:4:22:
     error: 'NULL' undeclared (first use in this function)

T7037_main.c:4:22:
     note: each undeclared identifier is reported only once for each function it appears in

T7037_main.c:5:5:
     warning: passing argument 2 of 'execv' from incompatible pointer type
c:\code\head\inplace\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/process.h:118:42: note: expected 'const char * const*' but argument is of type 'char **'
make[3]: *** [T7037] Error 1

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.