Can't typeset docs

Simon Peyton Jones simonpj at microsoft.com
Wed Feb 7 09:16:59 UTC 2018


|  > When I have
|  >
|  > BUILD_SPHINX_HTML        = YES
|  >
|  > BUILD_SPHINX_PDF         = YES
|  > I get this error in my build.  Any ideas? I think Sphinx is up to
|  date.
|  > Thanks
|  > Simon
|  >
|  I suspect the cause here is the --no-clean, which doesn't run ./boot
|  and ./configure. The latter generates docs/users_guide/ghc_config.py,
|  which appears to be missing. Is the problem reproducible with a fresh
|  validate?

Thanks Ben.  I think you are right -- sorry about that.  I didn't know that you need to start from clean of you change those settings.

But a fresh validate still fails, just differently.  Tail of the log is below.  There seem be two suspicious lines:

	Package cmap Warning: pdftex not detected - exiting.

and later
	(/usr/share/texlive/texmf-dist/doc/support/pedigree-perl/examples/english.cfg
	! You can't use `macro parameter character #' in vertical mode.
	l.1 #
  	    An example configuration file for pedigree program
	No pages of output.

Full log below

Oh, and I do have pdftex:

simonpj at cam-05-unx:~/5builds/HEAD-3$ pdftex --version
pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian)
kpathsea version 6.2.1
Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.41.0
simonpj at cam-05-unx:~/5builds/HEAD-3$

Simon


flow.thr_l_dyn_o rts/dist/build/sm/MBlock.thr_l_dyn_o rts/dist/build/sm/Scav.thr_l_dyn_o rts/dist/build/sm/CNF.thr_l_dyn_o rts/dist/build/sm/Compact.thr_l_dyn_o rts/dist/build/sm/GCAux.thr_l_dyn_o rts/dist/build/sm/Sweep.thr_l_dyn_o rts/dist/build/sm/GCUtils.thr_l_dyn_o rts/dist/build/sm/BlockAlloc.thr_l_dyn_o rts/dist/build/sm/Evac_thr.thr_l_dyn_o rts/dist/build/sm/MarkWeak.thr_l_dyn_o rts/dist/build/sm/GC.thr_l_dyn_o rts/dist/build/sm/Sanity.thr_l_dyn_o rts/dist/build/sm/Evac.thr_l_dyn_o rts/dist/build/sm/Storage.thr_l_dyn_o rts/dist/build/sm/Scav_thr.thr_l_dyn_o rts/dist/build/eventlog/EventLogWriter.thr_l_dyn_o rts/dist/build/eventlog/EventLog.thr_l_dyn_o rts/dist/build/linker/elf_reloc_aarch64.thr_l_dyn_o rts/dist/build/linker/MachO.thr_l_dyn_o rts/dist/build/linker/PEi386.thr_l_dyn_o rts/dist/build/linker/elf_plt.thr_l_dyn_o rts/dist/build/linker/elf_reloc.thr_l_dyn_o rts/dist/build/linker/elf_plt_aarch64.thr_l_dyn_o rts/dist/build/linker/M32Alloc.thr_l_dyn_o rts/dist/build/linker/Elf.thr_l_dyn_o rts/dist/build/linker/CacheFlush.thr_l_dyn_o rts/dist/build/linker/elf_got.thr_l_dyn_o rts/dist/build/linker/SymbolExtras.thr_l_dyn_o rts/dist/build/linker/elf_plt_arm.thr_l_dyn_o rts/dist/build/linker/LoadArchive.thr_l_dyn_o rts/dist/build/linker/elf_util.thr_l_dyn_o rts/dist/build/posix/OSMem.thr_l_dyn_o rts/dist/build/posix/GetTime.thr_l_dyn_o rts/dist/build/posix/OSThreads.thr_l_dyn_o rts/dist/build/posix/Itimer.thr_l_dyn_o rts/dist/build/posix/TTY.thr_l_dyn_o rts/dist/build/posix/Signals.thr_l_dyn_o rts/dist/build/posix/Select.thr_l_dyn_o rts/dist/build/posix/GetEnv.thr_l_dyn_o   rts/dist/build/StgStartup.thr_l_dyn_o rts/dist/build/Updates.thr_l_dyn_o rts/dist/build/Exception.thr_l_dyn_o rts/dist/build/StgMiscClosures.thr_l_dyn_o rts/dist/build/Apply.thr_l_dyn_o rts/dist/build/Compact.thr_l_dyn_o rts/dist/build/StgStdThunks.thr_l_dyn_o rts/dist/build/HeapStackCheck.thr_l_dyn_o rts/dist/build/PrimOps.thr_l_dyn_o rts/dist/build/AutoApply.thr_l_dyn_o  -fPIC -dynamic -optc-DTHREADED_RTS -eventlog  -O0 -H64m -Wall -fllvm-fill-undef-with-garbage    -Werror -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -this-unit-id rts -dcmm-lint      -i -irts -irts/dist/build -Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen            -O2 -Wcpp-undef    -Wnoncanonical-monad-instances   -o rts/dist/build/libHSrts_thr_l-ghc8.5.20180207.so
reading sources... [ 28%] ffi-chap
"rm" -f rts/dist/build/libHSrts_debug.a
reading sources... [ 28%] ffi-chap
echo rts/dist/build/ProfHeap.debug_o rts/dist/build/TopHandler.debug_o rts/dist/build/Stats.debug_o rts/dist/build/Arena.debug_o rts/dist/build/Stable.debug_o rts/dist/build/Linker.debug_o rts/dist/build/RtsFlags.debug_o rts/dist/build/Sparks.debug_o rts/dist/build/Profiling.debug_o rts/dist/build/RetainerSet.debug_o rts/dist/build/RtsStartup.debug_o rts/dist/build/FileLock.debug_o rts/dist/build/StgPrimFloat.debug_o rts/dist/build/CheckUnload.debug_o rts/dist/build/StaticPtrTable.debug_o rts/dist/build/WSDeque.debug_o rts/dist/build/Disassembler.debug_o rts/dist/build/ProfilerReport.debug_o rts/dist/build/RtsDllMain.debug_o rts/dist/build/Schedule.debug_o rts/dist/build/Adjustor.debug_o rts/dist/build/Globals.debug_o rts/dist/build/Capability.debug_o rts/dist/build/Threads.debug_o rts/dist/build/xxhash.debug_o rts/dist/build/RtsUtils.debug_o rts/dist/build/Messages.debug_o rts/dist/build/Interpreter.debug_o rts/dist/build/Hpc.debug_o rts/dist/build/Libdw.debug_o rts/dist/build/RetainerProfile.debug_o rts/dist/build/ClosureFlags.debug_o rts/dist/build/LdvProfile.debug_o rts/dist/build/StgCRun.debug_o rts/dist/build/Task.debug_o rts/dist/build/ProfilerReportJson.debug_o rts/dist/build/Weak.debug_o rts/dist/build/Trace.debug_o rts/dist/build/Hash.debug_o rts/dist/build/RtsMessages.debug_o rts/dist/build/RaiseAsync.debug_o rts/dist/build/RtsSymbolInfo.debug_o rts/dist/build/Timer.debug_o rts/dist/build/RtsAPI.debug_o rts/dist/build/HsFFI.debug_o rts/dist/build/OldARMAtomic.debug_o rts/dist/build/ThreadLabels.debug_o rts/dist/build/Proftimer.debug_o rts/dist/build/RtsSymbols.debug_o rts/dist/build/PathUtils.debug_o rts/dist/build/RtsMain.debug_o rts/dist/build/Inlines.debug_o rts/dist/build/Ticky.debug_o rts/dist/build/Pool.debug_o rts/dist/build/LibdwPool.debug_o rts/dist/build/ThreadPaused.debug_o rts/dist/build/Printer.debug_o rts/dist/build/STM.debug_o rts/dist/build/hooks/OutOfHeap.debug_o rts/dist/build/hooks/MallocFail.debug_o rts/dist/build/hooks/FlagDefaults.debug_o rts/dist/build/hooks/OnExit.debug_o rts/dist/build/hooks/LongGCSync.debug_o rts/dist/build/hooks/StackOverflow.debug_o rts/dist/build/sm/MBlock.debug_o rts/dist/build/sm/Scav.debug_o rts/dist/build/sm/CNF.debug_o rts/dist/build/sm/Compact.debug_o rts/dist/build/sm/GCAux.debug_o rts/dist/build/sm/Sweep.debug_o rts/dist/build/sm/GCUtils.debug_o rts/dist/build/sm/BlockAlloc.debug_o rts/dist/build/sm/Evac_thr.debug_o rts/dist/build/sm/MarkWeak.debug_o rts/dist/build/sm/GC.debug_o rts/dist/build/sm/Sanity.debug_o rts/dist/build/sm/Evac.debug_o rts/dist/build/sm/Storage.debug_o rts/dist/build/sm/Scav_thr.debug_o rts/dist/build/eventlog/EventLogWriter.debug_o rts/dist/build/eventlog/EventLog.debug_o rts/dist/build/linker/elf_reloc_aarch64.debug_o rts/dist/build/linker/MachO.debug_o rts/dist/build/linker/PEi386.debug_o rts/dist/build/linker/elf_plt.debug_o rts/dist/build/linker/elf_reloc.debug_o rts/dist/build/linker/elf_plt_aarch64.debug_o rts/dist/build/linker/M32Alloc.debug_o rts/dist/build/linker/Elf.debug_o rts/dist/build/linker/CacheFlush.debug_o rts/dist/build/linker/elf_got.debug_o rts/dist/build/linker/SymbolExtras.debug_o rts/dist/build/linker/elf_plt_arm.debug_o rts/dist/build/linker/LoadArchive.debug_o rts/dist/build/linker/elf_util.debug_o rts/dist/build/posix/OSMem.debug_o rts/dist/build/posix/GetTime.debug_o rts/dist/build/posix/OSThreads.debug_o rts/dist/build/posix/Itimer.debug_o rts/dist/build/posix/TTY.debug_o rts/dist/build/posix/Signals.debug_o rts/dist/build/posix/Select.debug_o rts/dist/build/posix/GetEnv.debug_o   rts/dist/build/StgStartup.debug_o rts/dist/build/Updates.debug_o rts/dist/build/Exception.debug_o rts/dist/build/StgMiscClosures.debug_o rts/dist/build/Apply.debug_o rts/dist/build/Compact.debug_o rts/dist/build/StgStdThunks.debug_o rts/dist/build/HeapStackCheck.debug_o rts/dist/build/PrimOps.debug_o rts/dist/build/AutoApply.debug_o | "xargs"  "ar" q  rts/dist/build/libHSrts_debug.a
ar: creating rts/dist/build/libHSrts_debug.a
reading sources... [ 31%] flags
reading sources... [ 31%] flags
reading sources... [ 31%] flags
reading sources... [ 34%] ghc
reading sources... [ 34%] ghc
reading sources... [ 34%] ghc
reading sources... [ 36%] ghci
reading sources... [ 36%] ghci
reading sources... [ 36%] ghci
reading sources... [ 39%] glasgow_exts
reading sources... [ 39%] glasgow_exts
reading sources... [ 39%] glasgow_exts
reading sources... [ 42%] gone_wrong
reading sources... [ 44%] index
reading sources... [ 42%] gone_wrong
reading sources... [ 47%] intro
reading sources... [ 42%] gone_wrong
reading sources... [ 44%] index
reading sources... [ 44%] index
reading sources... [ 47%] intro
reading sources... [ 50%] lang
reading sources... [ 47%] intro
reading sources... [ 52%] license
reading sources... [ 55%] packages
reading sources... [ 50%] lang
reading sources... [ 52%] license
reading sources... [ 50%] lang
reading sources... [ 55%] packages
reading sources... [ 52%] license
reading sources... [ 55%] packages
reading sources... [ 57%] parallel
reading sources... [ 60%] phases
reading sources... [ 57%] parallel
reading sources... [ 57%] parallel
reading sources... [ 60%] phases
reading sources... [ 60%] phases
reading sources... [ 63%] profiling
reading sources... [ 63%] profiling
reading sources... [ 63%] profiling
reading sources... [ 65%] runghc
reading sources... [ 68%] runtime_control
reading sources... [ 65%] runghc
reading sources... [ 65%] runghc
reading sources... [ 68%] runtime_control
reading sources... [ 68%] runtime_control
reading sources... [ 71%] safe_haskell
reading sources... [ 71%] safe_haskell
reading sources... [ 71%] safe_haskell
reading sources... [ 73%] separate_compilation
reading sources... [ 73%] separate_compilation
reading sources... [ 73%] separate_compilation
reading sources... [ 76%] shared_libs
reading sources... [ 76%] shared_libs
reading sources... [ 78%] sooner
reading sources... [ 76%] shared_libs
reading sources... [ 78%] sooner
reading sources... [ 78%] sooner
reading sources... [ 81%] usage
reading sources... [ 84%] using
reading sources... [ 81%] usage
reading sources... [ 84%] using
reading sources... [ 81%] usage
reading sources... [ 84%] using
reading sources... [ 86%] using-concurrent
reading sources... [ 89%] using-optimisation
reading sources... [ 86%] using-concurrent
reading sources... [ 86%] using-concurrent
reading sources... [ 89%] using-optimisation
reading sources... [ 89%] using-optimisation
reading sources... [ 92%] using-warnings
reading sources... [ 92%] using-warnings
reading sources... [ 92%] using-warnings
reading sources... [ 94%] utils
reading sources... [ 94%] utils
reading sources... [ 97%] what_glasgow_exts_does
reading sources... [ 94%] utils
reading sources... [100%] win32-dlls
reading sources... [ 97%] what_glasgow_exts_does
reading sources... [100%] win32-dlls
reading sources... [ 97%] what_glasgow_exts_does

/5playpen/simonpj/HEAD-3/docs/users_guide/using-optimisation.rst:: ERROR: Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
looking for now-outdated files... reading sources... [100%] win32-dlls

/5playpen/simonpj/HEAD-3/docs/users_guide/using-optimisation.rst:: ERROR: Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
looking for now-outdated files... 
/5playpen/simonpj/HEAD-3/docs/users_guide/using-optimisation.rst:: ERROR: Anonymous hyperlink mismatch: 1 references but 0 targets.
See "backrefs" attribute for IDs.
looking for now-outdated files... none found
pickling environment... none found
pickling environment... none found
pickling environment... done
checking consistency... /5playpen/simonpj/HEAD-3/docs/users_guide/8.6.1-notes.rst:: WARNING: document isn't included in any toctree
/5playpen/simonpj/HEAD-3/docs/users_guide/what_glasgow_exts_does.rst:: WARNING: document isn't included in any toctree
done
preparing documents... done
writing output... [  2%] 8.2.1-notes
done
checking consistency... /5playpen/simonpj/HEAD-3/docs/users_guide/8.6.1-notes.rst:: WARNING: document isn't included in any toctree
/5playpen/simonpj/HEAD-3/docs/users_guide/what_glasgow_exts_does.rst:: WARNING: document isn't included in any toctree
done
done
checking consistency... /5playpen/simonpj/HEAD-3/docs/users_guide/8.6.1-notes.rst:: WARNING: document isn't included in any toctree
/5playpen/simonpj/HEAD-3/docs/users_guide/what_glasgow_exts_does.rst:: WARNING: document isn't included in any toctree
done
writing... ghc.1 { processing users_guide.tex... index license intro } 8.2.1-notes 8.4.1-notes ghci writing output... [  5%] 8.4.1-notes
runghc usage using using-warnings writing output... [  7%] 8.6.1-notes
using-optimisation writing output... [ 10%] bugs

build succeeded, 3 warnings.
writing output... [ 13%] codegens
using-concurrent flags writing output... [ 15%] debug-info
runtime_control separate_compilation writing output... [ 18%] debugging
packages writing output... [ 21%] editing-guide
codegens writing output... [ 23%] eventlog-formats
phases writing output... [ 26%] extending_ghc
shared_libs debugging profiling writing output... [ 28%] ffi-chap
sooner writing output... [ 31%] flags
lang glasgow_exts writing output... [ 34%] ghc
parallel safe_haskell ffi-chap extending_ghc gone_wrong debug-info writing output... [ 36%] ghci
utils win32-dlls bugs eventlog-formats editing-guide 
resolving references...
writing output... [ 39%] glasgow_exts
writing... /5playpen/simonpj/HEAD-3/docs/users_guide/8.2.1-notes.rst:: WARNING: unusable reference target found: ../libraries/ghc-compact-0.1.0.0/GHC-Compact.html
/5playpen/simonpj/HEAD-3/docs/users_guide/ghci.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Exception.html
/5playpen/simonpj/HEAD-3/docs/users_guide/using-concurrent.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Concurrent.html
/5playpen/simonpj/HEAD-3/docs/users_guide/using-concurrent.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Concurrent.html#v:setNumCapabilities
/5playpen/simonpj/HEAD-3/docs/users_guide/using-concurrent.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Concurrent.html#v:forkOn
/5playpen/simonpj/HEAD-3/docs/users_guide/runtime_control.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Conc.html#v:enableAllocationLimit
/5playpen/simonpj/HEAD-3/docs/users_guide/runtime_control.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Conc.html#v:par
/5playpen/simonpj/HEAD-3/docs/users_guide/runtime_control.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Stats.html
/5playpen/simonpj/HEAD-3/docs/users_guide/packages.rst:: WARNING: unusable reference target found: ../libraries/index.html
/5playpen/simonpj/HEAD-3/docs/users_guide/packages.rst:: WARNING: unusable reference target found: ../libraries/Cabal-2.1.0.0/Distribution-Simple.html
/5playpen/simonpj/HEAD-3/docs/users_guide/packages.rst:: WARNING: unusable reference target found: ../libraries/Cabal-2.1.0.0/Distribution-InstalledPackageInfo.html#t:InstalledPackageInfo
/5playpen/simonpj/HEAD-3/docs/users_guide/packages.rst:: WARNING: unusable reference target found: ../libraries/Cabal-2.1.0.0/Distribution-License.html#t:License
/5playpen/simonpj/HEAD-3/docs/users_guide/profiling.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Debug-Trace.html#v:traceShow
/5playpen/simonpj/HEAD-3/docs/users_guide/sooner.rst:: WARNING: unusable reference target found: ../libraries/array- at LIBRARY_array_VERSION@/Data-Array-Unboxed.html
/5playpen/simonpj/HEAD-3/docs/users_guide/sooner.rst:: WARNING: unusable reference target found: ../libraries/array- at LIBRARY_array_VERSION@/Data-Array.html
/5playpen/simonpj/HEAD-3/docs/users_guide/sooner.rst:: WARNING: unusable reference target found: ../libraries/ghc-compact-0.1.0.0/GHC-Compact.html
/5playpen/simonpj/HEAD-3/docs/users_guide/sooner.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Prelude.html#t:Read
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/index.html
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/ghc-prim-0.5.2.0/detailed online documentation <GHC-Prim.html#v:>
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Monad-Zip.html
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Records.html
writing output... [ 42%] gone_wrong
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-OverloadedLabels.html
writing output... [ 44%] index
writing output... [ 47%] intro
writing output... [ 50%] lang
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Data-Coerce.html
writing output... [ 52%] license
writing output... [ 55%] packages
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-TypeLits.html
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/template-haskell- at LIBRARY_template_haskell_VERSION@/Haddock reference documentation <Language-Haskell-TH.html#v:>
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Arrow.html
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Arrow.html
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Arrow.html
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Arrow.html
writing output... [ 57%] parallel
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control.html#t:Exception
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-StaticPtr.html#v:unsafeLookupStaticPtr
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-StaticPtr.html#v:deRefStaticPtr
writing output... [ 60%] phases
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-StaticPtr.html#t:IsStatic
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/Cabal-2.1.0.0/Language-Haskell-Extension.html
writing output... [ 63%] profiling
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Exts.html#v:inline
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Exts.html#v:lazy
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Exts.html#v:oneShot
/5playpen/simonpj/HEAD-3/docs/users_guide/glasgow_exts.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-Generics.html
/5playpen/simonpj/HEAD-3/docs/users_guide/parallel.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Concurrent.html
/5playpen/simonpj/HEAD-3/docs/users_guide/ffi-chap.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Foreign.html
writing output... [ 65%] runghc
/5playpen/simonpj/HEAD-3/docs/users_guide/ffi-chap.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/Control-Concurrent.html
writing output... [ 68%] runtime_control
/5playpen/simonpj/HEAD-3/docs/users_guide/extending_ghc.rst:: WARNING: unusable reference target found: ../libraries/template-haskell- at LIBRARY_template_haskell_VERSION@/Language-Haskell-TH-Syntax.html#v:addCorePlugin
/5playpen/simonpj/HEAD-3/docs/users_guide/debug-info.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-ExecutionStack.html
/5playpen/simonpj/HEAD-3/docs/users_guide/win32-dlls.rst:: WARNING: unusable reference target found: ../libraries/base-4.11.0.0/GHC-ConsoleHandler.html
writing output... [ 71%] safe_haskell
done
copying images... images/prof_scc.pdf
copying TeX support files...
done
build succeeded, 47 warnings.
writing output... [ 73%] separate_compilation
writing output... [ 76%] shared_libs
cd docs/users_guide/build-pdf/users_guide ; xelatex -halt-on-error users_guide.tex
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded format=xelatex)
 restricted \write18 enabled.
writing output... [ 78%] sooner
writing output... [ 81%] usage
writing output... [ 84%] using
entering extended mode
(./users_guide.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 81 language(s) loaded.
(./sphinxmanual.cls
Document Class: sphinxmanual 2009/06/02 Document class (Sphinx manual)
writing output... [ 86%] using-concurrent
writing output... [ 89%] using-optimisation
writing output... [ 92%] using-warnings
writing output... [ 94%] utils
writing output... [ 97%] what_glasgow_exts_does
writing output... [100%] win32-dlls

generating indices... genindex
writing additional pages... search opensearch
copying images... [100%] images/prof_scc.svg

copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 3 warnings.
(/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)))
(/usr/share/texlive/texmf-dist/tex/latex/cmap/cmap.sty

Package cmap Warning: pdftex not detected - exiting.

) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
*************************************
* Local config file bblopts.cfg used
*
(/usr/share/texlive/texmf-dist/doc/latex/arabi/bblopts.cfg)
(/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf
(/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def
(/usr/share/texlive/texmf-dist/tex/generic/babel/xebabel.def))
*************************************
* Local config file english.cfg used
*
(/usr/share/texlive/texmf-dist/doc/support/pedigree-perl/examples/english.cfg
! You can't use `macro parameter character #' in vertical mode.
l.1 #
      An example configuration file for pedigree program
No pages of output.
Transcript written on users_guide.log.
docs/users_guide/ghc.mk:16: recipe for target 'docs/users_guide/users_guide.pdf' failed
make[1]: *** [docs/users_guide/users_guide.pdf] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:122: recipe for target 'all' failed
make: *** [all] Error 2
simonpj at cam-05-unx:~/5builds/HEAD-3$
|  -----Original Message-----
|  From: Ben Gamari [mailto:ben at well-typed.com]
|  Sent: 06 February 2018 16:46
|  To: Simon Peyton Jones <simonpj at microsoft.com>
|  Cc: ghc-devs at haskell.org
|  Subject: Re: Can't typeset docs
|  
|  Simon Peyton Jones via ghc-devs <ghc-devs at haskell.org> writes:
|  
|  > When I have
|  >
|  > BUILD_SPHINX_HTML        = YES
|  >
|  > BUILD_SPHINX_PDF         = YES
|  > I get this error in my build.  Any ideas? I think Sphinx is up to
|  date.
|  > Thanks
|  > Simon
|  >
|  I suspect the cause here is the --no-clean, which doesn't run ./boot
|  and ./configure. The latter generates docs/users_guide/ghc_config.py,
|  which appears to be missing. Is the problem reproducible with a fresh
|  validate?
|  
|  Cheers,
|  
|  - Ben


More information about the ghc-devs mailing list