Hadrian: remaining test failures
Summary
We cannot run tests in CI just yet, because the testsuite isn't green yet. Here are the failures I'm seeing in a ghc.nix shell (the tip of its master
branch):
TEST="T1288_ghci T15633a T15633b T15858 T16104 T16260 T2014 T2276_ghci T2386 T7022 T7040_ghci T7445 T9208 annth_compunits haddockHoogleTest haddockHtmlTest haddockHypsrcTest haddockLatexTest path_with_commas"
SUMMARY for test run started at Tue Apr 16 11:44:52 2019 CEST
0:00:13 spent to go through
20 total tests, which gave rise to
49 test cases, of which
29 were skipped
0 had missing libraries
0 expected passes
1 expected failures
0 caused framework failures
0 caused framework warnings
1 unexpected passes
18 unexpected failures
0 unexpected stat failures
I'm going to use this issue to report on why the tests fail and to link to MR that fix the failures. I'm going to put aside the 4 haddock failures (haddockHoogleTest haddockHtmlTest haddockHypsrcTest haddockLatexTest
) for now, as they're due to the tests expecting some files to be where the make build system puts them and we quite likely will need to introduce some flexibility.
Steps to reproduce
$ nix-shell path/to/ghc.nix --run './boot; ./configure; hadrian/build.sh -jN test'
Log for the failing tests
=====> annth_compunits(normal) 1 of 20 [0, 0, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/annotations/should_compile/th/annth_compunits.run" && $MAKE --no-print-directory annth_compunits
Wrong exit code for annth_compunits()(expected 0 , actual 2 )
Stdout ( annth_compunits ):
/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin/make -s --no-print-directory clean_annth_compunits
mkdir build_compunits
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 \
-odir build_compunits -hidir build_compunits \
-c AnnHelper.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 \
-odir build_compunits -hidir build_compunits \
-c TestModule.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 \
-odir build_compunits -hidir build_compunits \
-c TestModuleTH.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 -ibuild_compunits \
-odir build_compunits -hidir build_compunits \
-c annth.hs
Stderr ( annth_compunits ):
annth.hs:12:3: fatal:
cannot find object file ‘build_compunits/AnnHelper.dyn_o’
while linking an interpreted expression
make: *** [Makefile:20: annth_compunits] Error 1
*** unexpected failure for annth_compunits(normal)
=====> recomp007(normal) 2 of 20 [0, 1, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/driver/recomp007/recomp007.run" && $MAKE --no-print-directory recomp007
=====> T1288_ghci(ghci) 3 of 20 [0, 1, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ffi/should_run/T1288_ghci.run" && $MAKE --no-print-directory T1288_ghci_setup
# Don't show gcc warning: 'stdcall' attribute ignored [-Wattributes]
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -c -optc=-Wno-attributes T1288_ghci_c.c
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ffi/should_run/T1288_ghci.run" && "/home/alp/ghc/_build/stage1/bin/ghc" T1288_ghci.hs -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS T1288_ghci_c.o< T1288_ghci.genscript
Wrong exit code for T1288_ghci(ghci) (expected 0 , actual 1 )
*** unexpected failure for T1288_ghci(ghci)
=====> T2276_ghci(ghci) 4 of 20 [0, 2, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ffi/should_run/T2276_ghci.run" && $MAKE --no-print-directory T2276_ghci_setup
# Don't show gcc warning: 'stdcall' attribute ignored [-Wattributes]
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -c -optc=-Wno-attributes T2276_ghci_c.c
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ffi/should_run/T2276_ghci.run" && "/home/alp/ghc/_build/stage1/bin/ghc" T2276_ghci.hs -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -fobject-code T2276_ghci_c.o< T2276_ghci.genscript
Wrong exit code for T2276_ghci(ghci) (expected 0 , actual 1 )
*** unexpected failure for T2276_ghci(ghci)
=====> T15633a(ghci) 5 of 20 [0, 3, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633a.run" && $MAKE --no-print-directory -C tc-plugin-ghci package.plugins01 TOP=/home/alp/ghc/testsuite
/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin/make -s --no-print-directory clean.plugins01
mkdir pkg.plugins01
"/home/alp/ghc/_build/stage1/bin/ghc" -outputdir pkg.plugins01 --make -v0 -o pkg.plugins01/setup Setup.hs
"/home/alp/ghc/_build/stage1/bin/ghc-pkg" init pkg.plugins01/local.package.conf
pkg.plugins01/setup configure --distdir pkg.plugins01/dist -v0 --enable-library-vanilla --disable-shared --ghc-option="-DRUN1" --prefix="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633a.run/tc-plugin-ghci/pkg.plugins01/install" --with-compiler="/home/alp/ghc/_build/stage1/bin/ghc" --with-hc-pkg="/home/alp/ghc/_build/stage1/bin/ghc-pkg" --extra-lib-dirs="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633a.run/tc-plugin-ghci" --package-db=pkg.plugins01/local.package.conf --enable-library-profiling
pkg.plugins01/setup build --distdir pkg.plugins01/dist -v0
pkg.plugins01/setup install --distdir pkg.plugins01/dist -v0
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633a.run" && HC="/home/alp/ghc/_build/stage1/bin/ghc" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -package-db tc-plugin-ghci/pkg.plugins01/local.package.conf -fplugin TcPluginGHCi" "/home/alp/ghc/_build/stage1/bin/ghc" --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -package-db tc-plugin-ghci/pkg.plugins01/local.package.conf -fplugin TcPluginGHCi < T15633a.script
Wrong exit code for T15633a(ghci)(expected 0 , actual 1 )
Stderr ( T15633a ):
<command line>: Could not find module ‘TcPluginGHCi’
Perhaps you haven't installed the "dyn" libraries for package ‘tc-plugin-ghci-0.1’?
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
*** unexpected failure for T15633a(ghci)
=====> T15633b(ghci) 6 of 20 [0, 4, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run" && $MAKE --no-print-directory -C tc-plugin-ghci package.plugins01 TOP=/home/alp/ghc/testsuite
/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin/make -s --no-print-directory clean.plugins01
mkdir pkg.plugins01
"/home/alp/ghc/_build/stage1/bin/ghc" -outputdir pkg.plugins01 --make -v0 -o pkg.plugins01/setup Setup.hs
"/home/alp/ghc/_build/stage1/bin/ghc-pkg" init pkg.plugins01/local.package.conf
pkg.plugins01/setup configure --distdir pkg.plugins01/dist -v0 --enable-library-vanilla --disable-shared --ghc-option="-DRUN1" --prefix="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run/tc-plugin-ghci/pkg.plugins01/install" --with-compiler="/home/alp/ghc/_build/stage1/bin/ghc" --with-hc-pkg="/home/alp/ghc/_build/stage1/bin/ghc-pkg" --extra-lib-dirs="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run/tc-plugin-ghci" --package-db=pkg.plugins01/local.package.conf --enable-library-profiling
pkg.plugins01/setup build --distdir pkg.plugins01/dist -v0
pkg.plugins01/setup install --distdir pkg.plugins01/dist -v0
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run" && HC="/home/alp/ghc/_build/stage1/bin/ghc" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -package-db tc-plugin-ghci/pkg.plugins01/local.package.conf" "/home/alp/ghc/_build/stage1/bin/ghc" --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -package-db tc-plugin-ghci/pkg.plugins01/local.package.conf < T15633b.script
Actual stderr output differs from expected:
diff -uw "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run/T15633b.stderr.normalised" "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run/T15633b.run.stderr.normalised"
--- "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run/T15633b.stderr.normalised" 2019-04-16 11:50:42.445103451 +0200
+++ "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/ghci/should_run/T15633b.run/T15633b.run.stderr.normalised" 2019-04-16 11:50:42.445103451 +0200
@@ -1 +1,3 @@
-TcPluginGHCi
+Could not find module ‘TcPluginGHCi’
+Perhaps you haven't installed the "dyn" libraries for package ‘tc-plugin-ghci-0.1’?
+Use -v (or `:set -v` in ghci) to see a list of the files searched for.
*** unexpected failure for T15633b(ghci)
=====> haddockHtmlTest(normal) 7 of 20 [0, 5, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/haddock/haddock_testsuite/haddockHtmlTest.run" && $MAKE --no-print-directory htmlTest
Wrong exit code for haddockHtmlTest()(expected 0 , actual 2 )
Stdout ( haddockHtmlTest ):
'/home/alp/ghc/_build/stage1/bin/ghc' \
-odir . \
-hidir . \
-package Cabal \
-o html-test \
/home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs \
/home/alp/ghc/testsuite/../utils/haddock/html-test/Main.hs
[1 of 6] Compiling Test.Haddock.Process ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs, Test/Haddock/Process.o )
[2 of 6] Compiling Test.Haddock.Utils ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs, Test/Haddock/Utils.o )
[3 of 6] Compiling Test.Haddock.Config ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs, Test/Haddock/Config.o )
[4 of 6] Compiling Test.Haddock ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs, Test/Haddock.o )
[5 of 6] Compiling Test.Haddock.Xhtml ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs, Test/Haddock/Xhtml.o )
[6 of 6] Compiling Main ( /home/alp/ghc/testsuite/../utils/haddock/html-test/Main.hs, Main.o )
Linking html-test ...
./html-test \
--ghc-path=/home/alp/ghc/_build/stage1/bin/ghc \
--haddock-path=/home/alp/ghc/_build/stage1/bin/haddock \
--haddock-stdout=haddock-out.log
Haddock version 2.22.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
8.9.0.20190415
Generating documentation...
Failed to run Haddock on test package ''
Haddock output is at 'haddock-out.log'. This file can be set with `--haddock-stdout`.
Testing output files...
Some tests crashed.
Stderr ( haddockHtmlTest ):
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.0.0.0 supports
'ghc' version < 8.8): /home/alp/ghc/_build/stage1/bin/ghc is version
8.9.0.20190415
make: *** [Makefile:20: htmlTest] Error 1
*** unexpected failure for haddockHtmlTest(normal)
=====> haddockLatexTest(normal) 8 of 20 [0, 6, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/haddock/haddock_testsuite/haddockLatexTest.run" && $MAKE --no-print-directory latexTest
Wrong exit code for haddockLatexTest()(expected 0 , actual 2 )
Stdout ( haddockLatexTest ):
'/home/alp/ghc/_build/stage1/bin/ghc' \
-odir . \
-hidir . \
-package Cabal \
-o latex-test \
/home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs \
/home/alp/ghc/testsuite/../utils/haddock/latex-test/Main.hs
[1 of 6] Compiling Test.Haddock.Process ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs, Test/Haddock/Process.o )
[2 of 6] Compiling Test.Haddock.Utils ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs, Test/Haddock/Utils.o )
[3 of 6] Compiling Test.Haddock.Config ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs, Test/Haddock/Config.o )
[4 of 6] Compiling Test.Haddock ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs, Test/Haddock.o )
[5 of 6] Compiling Main ( /home/alp/ghc/testsuite/../utils/haddock/latex-test/Main.hs, Main.o )
[6 of 6] Compiling Test.Haddock.Xhtml ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs, Test/Haddock/Xhtml.o )
Linking latex-test ...
./latex-test \
--ghc-path=/home/alp/ghc/_build/stage1/bin/ghc \
--haddock-path=/home/alp/ghc/_build/stage1/bin/haddock \
--haddock-stdout=haddock-out.log
Haddock version 2.22.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
8.9.0.20190415
Generating documentation...
Failed to run Haddock on test package 'TypeFamilies3'
Stderr ( haddockLatexTest ):
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.0.0.0 supports
'ghc' version < 8.8): /home/alp/ghc/_build/stage1/bin/ghc is version
8.9.0.20190415
latex-test: /home/alp/ghc/testsuite/../utils/haddock/latex-test/out/TypeFamilies3: removeDirectoryRecursive:getSymbolicLinkStatus: does not exist (No such file or directory)
make: *** [Makefile:35: latexTest] Error 1
*** unexpected failure for haddockLatexTest(normal)
=====> haddockHoogleTest(normal) 9 of 20 [0, 7, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/haddock/haddock_testsuite/haddockHoogleTest.run" && $MAKE --no-print-directory hoogleTest
Wrong exit code for haddockHoogleTest()(expected 0 , actual 2 )
Stdout ( haddockHoogleTest ):
'/home/alp/ghc/_build/stage1/bin/ghc' \
-odir . \
-hidir . \
-package Cabal \
-o hoogle-test \
/home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs \
/home/alp/ghc/testsuite/../utils/haddock/hoogle-test/Main.hs
[1 of 6] Compiling Test.Haddock.Process ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs, Test/Haddock/Process.o )
[2 of 6] Compiling Test.Haddock.Utils ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs, Test/Haddock/Utils.o )
[3 of 6] Compiling Test.Haddock.Config ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs, Test/Haddock/Config.o )
[4 of 6] Compiling Test.Haddock ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs, Test/Haddock.o )
[5 of 6] Compiling Main ( /home/alp/ghc/testsuite/../utils/haddock/hoogle-test/Main.hs, Main.o )
[6 of 6] Compiling Test.Haddock.Xhtml ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs, Test/Haddock/Xhtml.o )
Linking hoogle-test ...
./hoogle-test \
--ghc-path=/home/alp/ghc/_build/stage1/bin/ghc \
--haddock-path=/home/alp/ghc/_build/stage1/bin/haddock \
--haddock-stdout=haddock-out.log
Haddock version 2.22.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
8.9.0.20190415
Generating documentation...
Failed to run Haddock on test package 'type-sigs'
Stderr ( haddockHoogleTest ):
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.0.0.0 supports
'ghc' version < 8.8): /home/alp/ghc/_build/stage1/bin/ghc is version
8.9.0.20190415
hoogle-test: /home/alp/ghc/testsuite/../utils/haddock/hoogle-test/out/type-sigs: removeDirectoryRecursive:getSymbolicLinkStatus: does not exist (No such file or directory)
make: *** [Makefile:50: hoogleTest] Error 1
*** unexpected failure for haddockHoogleTest(normal)
=====> haddockHypsrcTest(normal) 10 of 20 [0, 8, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/haddock/haddock_testsuite/haddockHypsrcTest.run" && $MAKE --no-print-directory hypsrcTest
Wrong exit code for haddockHypsrcTest()(expected 0 , actual 2 )
Stdout ( haddockHypsrcTest ):
'/home/alp/ghc/_build/stage1/bin/ghc' \
-odir . \
-hidir . \
-package Cabal \
-o hypsrc-test \
/home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs \
/home/alp/ghc/testsuite/../utils/haddock/hypsrc-test/Main.hs
[1 of 6] Compiling Test.Haddock.Process ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Process.hs, Test/Haddock/Process.o )
[2 of 6] Compiling Test.Haddock.Utils ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Utils.hs, Test/Haddock/Utils.o )
[3 of 6] Compiling Test.Haddock.Config ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Config.hs, Test/Haddock/Config.o )
[4 of 6] Compiling Test.Haddock ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock.hs, Test/Haddock.o )
[5 of 6] Compiling Test.Haddock.Xhtml ( /home/alp/ghc/testsuite/../utils/haddock/haddock-test/src/Test/Haddock/Xhtml.hs, Test/Haddock/Xhtml.o )
[6 of 6] Compiling Main ( /home/alp/ghc/testsuite/../utils/haddock/hypsrc-test/Main.hs, Main.o )
Linking hypsrc-test ...
./hypsrc-test \
--ghc-path=/home/alp/ghc/_build/stage1/bin/ghc \
--haddock-path=/home/alp/ghc/_build/stage1/bin/haddock \
--haddock-stdout=haddock-out.log
Haddock version 2.22.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
8.9.0.20190415
Generating documentation...
Failed to run Haddock on test package ''
Haddock output is at 'haddock-out.log'. This file can be set with `--haddock-stdout`.
Testing output files...
Some tests crashed.
Stderr ( haddockHypsrcTest ):
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.0.0.0 supports
'ghc' version < 8.8): /home/alp/ghc/_build/stage1/bin/ghc is version
8.9.0.20190415
make: *** [Makefile:65: hypsrcTest] Error 1
*** unexpected failure for haddockHypsrcTest(normal)
=====> T15858(ghci) 11 of 20 [0, 9, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run" && $MAKE --no-print-directory -C plugin-recomp package.plugins01 TOP=/home/alp/ghc/testsuite
/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin/make -s --no-print-directory clean.plugins01
mkdir pkg.plugins01
"/home/alp/ghc/_build/stage1/bin/ghc" -outputdir pkg.plugins01 --make -v0 -o pkg.plugins01/setup Setup.hs
"/home/alp/ghc/_build/stage1/bin/ghc-pkg" init pkg.plugins01/local.package.conf
pkg.plugins01/setup configure --distdir pkg.plugins01/dist -v0 --enable-library-vanilla --disable-shared --ghc-option="-DRUN1" --prefix="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run/plugin-recomp/pkg.plugins01/install" --with-compiler="/home/alp/ghc/_build/stage1/bin/ghc" --with-hc-pkg="/home/alp/ghc/_build/stage1/bin/ghc-pkg" --extra-lib-dirs="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run/plugin-recomp" --package-db=pkg.plugins01/local.package.conf --enable-library-profiling
pkg.plugins01/setup build --distdir pkg.plugins01/dist -v0
pkg.plugins01/setup install --distdir pkg.plugins01/dist -v0
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run" && HC="/home/alp/ghc/_build/stage1/bin/ghc" HC_OPTS="-dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -package-db plugin-recomp/pkg.plugins01/local.package.conf " "/home/alp/ghc/_build/stage1/bin/ghc" --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -package-db plugin-recomp/pkg.plugins01/local.package.conf < T15858.script
Actual stderr output differs from expected:
diff -uw "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run/T15858.stderr.normalised" "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run/T15858.run.stderr.normalised"
--- "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run/T15858.stderr.normalised" 2019-04-16 11:50:54.549079131 +0200
+++ "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T15858.run/T15858.run.stderr.normalised" 2019-04-16 11:50:54.549079131 +0200
@@ -1,21 +1,18 @@
==ImpurePlugin.0
-Simple Plugin Passes Queried
-Got options:
-Simple Plugin Pass Run
+Could not find module ‘ImpurePlugin’
+Perhaps you haven't installed the "dyn" libraries for package ‘plugin-recompilation-0.1’?
+Use -v (or `:set -v` in ghci) to see a list of the files searched for.
==ImpurePlugin.1
-Simple Plugin Passes Queried
-Got options:
-Simple Plugin Pass Run
==PurePlugin.0
-Simple Plugin Passes Queried
-Got options:
-Simple Plugin Pass Run
+Could not find module ‘PurePlugin’
+Perhaps you haven't installed the "dyn" libraries for package ‘plugin-recompilation-0.1’?
+Use -v (or `:set -v` in ghci) to see a list of the files searched for.
==FingerprintPlugin.0
-Simple Plugin Passes Queried
-Got options:
-Simple Plugin Pass Run
+Could not find module ‘FingerprintPlugin’
+Perhaps you haven't installed the "dyn" libraries for package ‘plugin-recompilation-0.1’?
+Use -v (or `:set -v` in ghci) to see a list of the files searched for.
==FingerprintPlugin.1
==PurePlugin.1
-Simple Plugin Passes Queried
-Got options:
-Simple Plugin Pass Run
+Could not find module ‘PurePlugin’
+Perhaps you haven't installed the "dyn" libraries for package ‘plugin-recompilation-0.1’?
+Use -v (or `:set -v` in ghci) to see a list of the files searched for.
*** unexpected failure for T15858(ghci)
=====> T16104(normal) 12 of 20 [0, 10, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T16104.run" && $MAKE --no-print-directory -C T16104-plugin package.T16104-plugin TOP=/home/alp/ghc/testsuite
/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin/make -s --no-print-directory clean.T16104-plugin
mkdir pkg.T16104-plugin
"/home/alp/ghc/_build/stage1/bin/ghc" -outputdir pkg.T16104-plugin --make -v0 -o pkg.T16104-plugin/setup Setup.hs
"/home/alp/ghc/_build/stage1/bin/ghc-pkg" init pkg.T16104-plugin/local.package.conf
pkg.T16104-plugin/setup configure --distdir pkg.T16104-plugin/dist -v0 --enable-library-vanilla --disable-shared --prefix="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T16104.run/T16104-plugin/pkg.T16104-plugin/install" --with-compiler="/home/alp/ghc/_build/stage1/bin/ghc" --with-hc-pkg="/home/alp/ghc/_build/stage1/bin/ghc-pkg" --package-db=pkg.T16104-plugin/local.package.conf --enable-library-profiling
pkg.T16104-plugin/setup build --distdir pkg.T16104-plugin/dist -v0
pkg.T16104-plugin/setup install --distdir pkg.T16104-plugin/dist -v0
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T16104.run" && $MAKE --no-print-directory T16104
Wrong exit code for T16104()(expected 0 , actual 2 )
Stdout ( T16104 ):
"/home/alp/ghc/_build/stage1/bin/ghc" -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 T16104.hs -package-db T16104-plugin/pkg.T16104-plugin/local.package.conf
Stderr ( T16104 ):
<no location info>: warning: [-Wmissed-extra-shared-lib (in -Wdefault)]
libHST16104-plugin-0.1-EUPefQrkCwAAWAX6z5Q30i.so: cannot open shared object file: No such file or directory
It's OK if you don't want to use symbols from it directly.
(the package DLL is loaded by the system linker
which manages dependencies by itself).
ghc: ^^ Could not load 'T16104zmpluginzm0zi1zmEUPefQrkCwAAWAX6zz5Q30i_T16104zuPlugin_plugin_closure', dependency unresolved. See top entry above.
ByteCodeLink.lookupCE
During interactive linking, GHCi couldn't find the following symbol:
T16104zmpluginzm0zi1zmEUPefQrkCwAAWAX6zz5Q30i_T16104zuPlugin_plugin_closure
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please report this as a GHC bug:
https://www.haskell.org/ghc/reportabug
make: *** [Makefile:127: T16104] Error 1
*** unexpected failure for T16104(normal)
=====> T16260(normal) 13 of 20 [0, 11, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T16260.run" && $MAKE --no-print-directory -C simple-plugin package.T16260 TOP=/home/alp/ghc/testsuite
/nix/store/8n7v99ii7cg694pz0cfch422zvkdqfv4-gnumake-4.2.1/bin/make -s --no-print-directory clean.T16260
mkdir pkg.T16260
"/home/alp/ghc/_build/stage1/bin/ghc" -outputdir pkg.T16260 --make -v0 -o pkg.T16260/setup Setup.hs
"/home/alp/ghc/_build/stage1/bin/ghc-pkg" init pkg.T16260/local.package.conf
pkg.T16260/setup configure --distdir pkg.T16260/dist -v0 --enable-library-vanilla --disable-shared --prefix="/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T16260.run/simple-plugin/pkg.T16260/install" --with-compiler="/home/alp/ghc/_build/stage1/bin/ghc" --with-hc-pkg="/home/alp/ghc/_build/stage1/bin/ghc-pkg" --package-db=pkg.T16260/local.package.conf --enable-library-profiling
pkg.T16260/setup build --distdir pkg.T16260/dist -v0
pkg.T16260/setup install --distdir pkg.T16260/dist -v0
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/plugins/T16260.run" && $MAKE --no-print-directory T16260
Wrong exit code for T16260()(expected 0 , actual 2 )
Stdout ( T16260 ):
"/home/alp/ghc/_build/stage1/bin/ghc" -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 T16260.hs -package-db simple-plugin/pkg.T16260/local.package.conf -fplugin Simple.TrustworthyPlugin
Stderr ( T16260 ):
<no location info>: warning: [-Wmissed-extra-shared-lib (in -Wdefault)]
libHSsimple-plugin-0.1-iuGWSAvLU76CYHjcGPaak.so: cannot open shared object file: No such file or directory
It's OK if you don't want to use symbols from it directly.
(the package DLL is loaded by the system linker
which manages dependencies by itself).
ghc: ^^ Could not load 'simplezmpluginzm0zi1zmiuGWSAvLU76CYHjcGPaak_SimpleziTrustworthyPlugin_plugin_closure', dependency unresolved. See top entry above.
ByteCodeLink.lookupCE
During interactive linking, GHCi couldn't find the following symbol:
simplezmpluginzm0zi1zmiuGWSAvLU76CYHjcGPaak_SimpleziTrustworthyPlugin_plugin_closure
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please report this as a GHC bug:
https://www.haskell.org/ghc/reportabug
make: *** [Makefile:131: T16260] Error 1
*** unexpected failure for T16260(normal)
=====> T7022(normal) 14 of 20 [0, 12, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/polykinds/T7022.run" && $MAKE --no-print-directory T7022
Wrong exit code for T7022()(expected 0 , actual 2 )
Stdout ( T7022 ):
rm -f -f T7022.hi T7022.o T7022a.hi T7022a.o T7022b.hi T7022b.o
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -c T7022a.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -c T7022b.hs -v0
Stderr ( T7022 ):
T7022b.hs:1:1: fatal:
cannot find object file ‘./T7022a.dyn_o’
while linking an interpreted expression
make: *** [Makefile:28: T7022] Error 1
*** unexpected failure for T7022(normal)
=====> T7040_ghci(ghci) 15 of 20 [0, 13, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/rts/T7040_ghci.run" && $MAKE --no-print-directory T7040_ghci_setup
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -c T7040_ghci_c.c
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/rts/T7040_ghci.run" && "/home/alp/ghc/_build/stage1/bin/ghc" T7040_ghci.hs -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS T7040_ghci_c.o< T7040_ghci.genscript
Wrong exit code for T7040_ghci(ghci) (expected 0 , actual 1 )
*** unexpected failure for T7040_ghci(ghci)
=====> T9208(optasm) 16 of 20 [0, 14, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/stranal/should_compile/T9208.run" && "/home/alp/ghc/_build/stage1/bin/ghc" -c T9208.hs -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -O -fasm
*** unexpected pass for T9208(optasm)
=====> T2386(normal) 17 of 20 [1, 14, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/th/T2386.run" && $MAKE --no-print-directory T2386
Wrong exit code for T2386()(expected 0 , actual 2 )
Stdout ( T2386 ):
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 -c T2386_Lib.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 -c T2386.hs
Stderr ( T2386 ):
T2386.hs:9:7: fatal:
cannot find object file ‘./T2386_Lib.dyn_o’
while linking an interpreted expression
make: *** [Makefile:9: T2386] Error 1
*** unexpected failure for T2386(normal)
=====> T7445(normal) 18 of 20 [1, 15, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/th/T7445.run" && $MAKE --no-print-directory T7445
Wrong exit code for T7445()(expected 0 , actual 2 )
Stdout ( T7445 ):
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 -c T7445a.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -v0 -c T7445.hs
Stderr ( T7445 ):
T7445.hs:6:7: fatal:
cannot find object file ‘./T7445a.dyn_o’
while linking an interpreted expression
make: *** [Makefile:13: T7445] Error 1
*** unexpected failure for T7445(normal)
=====> T2014(normal) 19 of 20 [1, 16, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/th/T2014/T2014.run" && $MAKE --no-print-directory T2014
Wrong exit code for T2014()(expected 0 , actual 2 )
Stdout ( T2014 ):
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -fforce-recomp -c A.hs-boot
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -fforce-recomp -c A.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -fforce-recomp -c B.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -fforce-recomp -c C.hs -v0
Stderr ( T2014 ):
C.hs:8:18: fatal:
cannot find object file ‘./B.dyn_o’
while linking an interpreted expression
make: *** [Makefile:9: T2014] Error 1
*** unexpected failure for T2014(normal)
=====> path_with_commas(normal) 20 of 20 [1, 17, 0]
cd "/run/user/1001/ghctest-g2ere7od/test spaces/testsuite/tests/th/TH_linker/path_with_commas.run" && $MAKE --no-print-directory path_with_commas
Wrong exit code for path_with_commas()(expected 0 , actual 2 )
Stdout ( path_with_commas ):
mkdir -p 'test,path'
'/home/alp/ghc/_build/stage1/bin/ghc-pkg' --no-user-package-db -f 'test,path'/local.package.conf init 'test,path'/local.package.conf
# Create shared library 'foo' from Dummy.hs
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -shared -dynamic Dummy.hs -odir 'test,path' -hidir 'test,path' -o 'test,path'/libfoo.so > /dev/null
# Make a package that forces trying to load it
'/home/alp/ghc/_build/stage1/bin/ghc-pkg' --no-user-package-db -f 'test,path'/local.package.conf register --force test.pkg
Reading package info from "test.pkg" ... done.
# Because we compile with -package testpkg, TH has to load 'foo'
'/home/alp/ghc/_build/stage1/bin/ghc' -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output -static -package-db 'test,path'/local.package.conf -package testpkg Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
./Main
Stderr ( path_with_commas ):
Warning: -rtsopts and -with-rtsopts have no effect with -shared.
Call hs_init_ghc() from your main() function to set these options.
./Main: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory
make: *** [Makefile:39: path_with_commas] Error 127
*** unexpected failure for path_with_commas(normal)
Environment
- GHC version used: running tests against HEAD, booted with 8.4.4
Optional:
- Operating System: NixOS
- System Architecture: x86_64