sjakobi / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
Other
0 stars 0 forks source link

html-test: "Failed to run Haddock on specified test files" #22

Open sjakobi opened 6 years ago

sjakobi commented 6 years ago

My invocation is

dist-newstyle/build/x86_64-linux/ghc-8.7.20180722/haddock-2.20.0/t/html-test/build/html-test/html-test \
  --ghc-path=/home/simon/src/ghc-hh2/inplace/bin/ghc-stage2 \
  --haddock-path=/home/simon/src/ghc-hh2/inplace/bin/haddock \
  --haddock-options="--optghc=-v2"

At the end of the output I find:

*** Deleting temp files:
Warning: deleting non-existent /tmp/ghc7710_0/ghc_3.dyn_o
Warning: deleting non-existent /tmp/ghc7710_0/ghc_4.dyn_o
Warning: deleting non-existent /tmp/ghc7710_0/ghc_5.dyn_o
Warning: deleting non-existent /tmp/ghc7710_0/ghc_6.dyn_o
Warning: deleting non-existent /tmp/ghc7710_0/ghc_7.dyn_o
Warning: deleting non-existent /tmp/ghc7710_0/ghc_8.dyn_o
*** Deleting temp dirs:
Warning: exception raised when deleting /tmp/ghc7710_0:
/tmp/ghc7710_0: removeDirectory: unsatisfied constraints (Directory not empty)
Failed to run Haddock on specified test files

Full log

sjakobi commented 6 years ago

The warning comes from ghc's removeTmpDirs.

In /tmp/ghc7710_0/ I find

≻ ll /tmp/ghc20049_0/
total 12K
-rw-rw-r-- 1 simon simon 2,1K Jul 22 16:35 ghc_1.o
-rw-rw-r-- 1 simon simon 5,7K Jul 22 16:35 ghc_2.o
sjakobi commented 6 years ago

Changing removeTmpDirs to use removeDirectoryRecursive doesn't fix this. I now get

Warning: deleting non-existent /tmp/ghc25871_0/ghc_3.dyn_o
Warning: deleting non-existent /tmp/ghc25871_0/ghc_4.dyn_o
Warning: deleting non-existent /tmp/ghc25871_0/ghc_5.dyn_o
Warning: deleting non-existent /tmp/ghc25871_0/ghc_6.dyn_o
Warning: deleting non-existent /tmp/ghc25871_0/ghc_7.dyn_o
Warning: deleting non-existent /tmp/ghc25871_0/ghc_8.dyn_o
*** Deleting temp dirs:
Failed to run Haddock on specified test files

and I suspect that the failure is unrelated to the warnings from them temp file cleanup.

sjakobi commented 6 years ago

Another warning:

Warning: Unknown/unsupported 'ghc' version detected (Cabal 2.3.0.0 supports
'ghc' version < 8.7): /home/simon/src/ghc-hh2/inplace/bin/ghc-stage2 is
version 8.7.20180722

Herbert suggested that shouldn't cause the failure.