Cannot run GHC-7.10.1 tests

I successfully built GHC-7.10.1 but I cannot run the tests (at least not when I follow the instructions at https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests). "make fast" fails like this: ===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds make[1]: Nothing to be done for `phase_1_builds'. ===--- building final phase make -r --no-print-directory -f ghc.mk phase=final fast make[1]: *** No rule to make target `fast'. Stop. make: *** [fast] Error 2 "make testfast" fails in exactly the same way, except that the broken make target is "testfast" instead of fast. "make test" and "make fulltest" fail like this: make -C testsuite/tests CLEANUP=1 OUTPUT_SUMMARY=../../testsuite_summary.txt fast make[1]: Entering directory `/data/build.d/6.8/ghc-7.10.1/testsuite/tests' ../mk/boilerplate.mk:168: ../mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk: No such file or directory ../mk/ghc-config "/data/build.d/6.8/ghc-7.10.1/inplace/bin/ghc-stage2" >"../mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "../mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; exit 1; fi /bin/sh: ../mk/ghc-config: cannot execute binary file make[1]: *** [../mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk] Error 1 make[1]: Leaving directory `/data/build.d/6.8/ghc-7.10.1/testsuite/tests' make: *** [test] Error 2 Interestingly, for GHC-7.8.4 "make fast" and "make testfast" fail in exactly the same way but "make test" and "make fulltest" both work. So, how do I test GHC-7.10.1 ? Regards, Jeremy Henty

You are running these commands from _within_ the 'testsuite' directory,
right?
On 28 April 2015 at 23:48, Jeremy Henty
I successfully built GHC-7.10.1 but I cannot run the tests (at least not when I follow the instructions at https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests).
"make fast" fails like this:
===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds make[1]: Nothing to be done for `phase_1_builds'. ===--- building final phase make -r --no-print-directory -f ghc.mk phase=final fast make[1]: *** No rule to make target `fast'. Stop. make: *** [fast] Error 2
"make testfast" fails in exactly the same way, except that the broken make target is "testfast" instead of fast.
"make test" and "make fulltest" fail like this:
make -C testsuite/tests CLEANUP=1 OUTPUT_SUMMARY=../../testsuite_summary.txt fast make[1]: Entering directory `/data/build.d/6.8/ghc-7.10.1/testsuite/tests' ../mk/boilerplate.mk:168: ../mk/ ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk: No such file or directory ../mk/ghc-config "/data/build.d/6.8/ghc-7.10.1/inplace/bin/ghc-stage2"
"../mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "../mk/ ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; exit 1; fi /bin/sh: ../mk/ghc-config: cannot execute binary file make[1]: *** [../mk/ ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk] Error 1 make[1]: Leaving directory `/data/build.d/6.8/ghc-7.10.1/testsuite/tests' make: *** [test] Error 2
Interestingly, for GHC-7.8.4 "make fast" and "make testfast" fail in exactly the same way but "make test" and "make fulltest" both work.
So, how do I test GHC-7.10.1 ?
Regards,
Jeremy Henty _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Christiaan Baaij wrote:
You are running these commands from _within_ the 'testsuite' directory, right?
No, because the instructions at https://ghc.haskell.org/trac/ghc/wiki/Building/RunningTests told me to run these commands in "the root of the GHC tree". But since you suggested it, I tried running all the test commands from within the ghc-7.10.1/testsuite directory and they all failed as follows: mk/boilerplate.mk:168: mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk: No such file or directory ./mk/ghc-config "/data/build.d/6.8/ghc-7.10.1/inplace/bin/ghc-stage2" >"mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; exit 1; fi /bin/sh: ./mk/ghc-config: cannot execute binary file make: *** [mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk] Error 1 Something is really broken here. Regards, Jeremy Henty

On 29.04.2015, Jeremy Henty wrote:
But since you suggested it, I tried running all the test commands from within the ghc-7.10.1/testsuite directory and they all failed as follows:
mk/boilerplate.mk:168: mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk: No such file or directory ./mk/ghc-config "/data/build.d/6.8/ghc-7.10.1/inplace/bin/ghc-stage2"
"mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; exit 1; fi /bin/sh: ./mk/ghc-config: cannot execute binary file make: *** [mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk] Error 1
Just tried this myself. I get very similar errors. The reason is, AFAICT, that the testsuite tarball contains some build-artifacts, particularly some binaries. A "make clean" in the testsuite directory before running the tests helps. Regards, Bernhard

Bernhard Herzog wrote:
On 29.04.2015, Jeremy Henty wrote:
But since you suggested it, I tried running all the test commands from within the ghc-7.10.1/testsuite directory and they all failed as follows:
mk/boilerplate.mk:168: mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk: No such file or directory ./mk/ghc-config "/data/build.d/6.8/ghc-7.10.1/inplace/bin/ghc-stage2"
"mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; exit 1; fi /bin/sh: ./mk/ghc-config: cannot execute binary file make: *** [mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk] Error 1
Just tried this myself. I get very similar errors. The reason is, AFAICT, that the testsuite tarball contains some build-artifacts, particularly some binaries. A "make clean" in the testsuite directory before running the tests helps.
Thanks, that worked! I get a few unexpected failures from "make fast". Should I be concerned? Regards, Jeremy Henty

Jeremy Henty (ie. me) wrote:
Bernhard Herzog wrote:
On 29.04.2015, Jeremy Henty wrote:
But since you suggested it, I tried running all the test commands from within the ghc-7.10.1/testsuite directory and they all failed as follows:
mk/boilerplate.mk:168: mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk: No such file or directory ./mk/ghc-config "/data/build.d/6.8/ghc-7.10.1/inplace/bin/ghc-stage2"
"mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; if [ $? != 0 ]; then rm -f "mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk"; exit 1; fi /bin/sh: ./mk/ghc-config: cannot execute binary file make: *** [mk/ghcconfig_data_build.d_6.8_ghc-7.10.1_inplace_bin_ghc-stage2.mk] Error 1
Just tried this myself. I get very similar errors. The reason is, AFAICT, that the testsuite tarball contains some build-artifacts, particularly some binaries. A "make clean" in the testsuite directory before running the tests helps.
Thanks, that worked! I get a few unexpected failures from "make fast". Should I be concerned?
*cough* *bump* Any thoughts on this? The wiki suggested that I should expect no errors from "make fast" so this is a little surprising. Should I install regardless or investigate further? (There were 11 errors which is a pretty small fraction of the total.) Regards, Jeremy Henty
participants (3)
-
Bernhard Herzog
-
Christiaan Baaij
-
Jeremy Henty