Hoping to try out some recent patches, I had my first experience with
the new build system today (cygwin, building with ghc-6.8.3; did make
maintainer-clean long ago with the old system, then pull and get, etc;
my mk/build.mk has
BuildFlavour = perf
SplitObjs = NO
BIN_DIST=1
XMLDocWays = html
HADDOCK_DOCS = YES
), and took some notes:
- the configure summary is nice. it doesn't mention documentation tools,
though..
- I got a segmentation fault on the first make, somewhere around here:
c:/ghc/ghc-6.8.3/bin/ghc.exe -O -H64m -package-conf
libraries/bootstrapping.conf
-package-name
hpc-0.5.0.2 -hide-all-packages -i -ilibraries/hpc/. -ilibraries/hpc/dist-boot/build
-ilibraries/hpc/dist-boot/build/autogen -Ilibraries/hpc/dist-boot/build
-Ilibraries/hpc/dist-boot/build/autogen
-Ilibraries/hpc/. -optP-include
-optPlibraries/hpc/dist-boot/build/autogen/cabal_macros.h
-package base-3.0.2.0 -package containers-0.1.0.2 -package directory-1.0.0.1
-package
old-time-1.0.0.0 -Wall -XCPP -odir libraries/hpc/dist-boot/build -hidir
libraries/hpc/dist-boot/build
-stubdir libraries/hpc/dist-boot/build -hisuf hi -osuf o -hcsuf hc -c
libraries/hpc/./Trace/Hpc/Util.hs
-o libraries/hpc/dist-boot/build/Trace/Hpc/Util.o
Segmentation fault/access violation in generated code
I don't recall that ever happening before, so I simply tried again,
and it didn't repeat. Still, worrying.
- the build fell over after a long time, when trying to run (note the
unprotected spaces)
/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin/dblatex
if configure had mentioned documentation tools/paths, I might have noticed
that
tool change and wrong path myself; (btw, didn't the tool of choice use to be
fop?)
in any case, there was some agreement that configure should check for paths
the build couldn't handle (in this case, wrapping in "" should do the job,
though)
- since I didn't want to move miktex, and don't know what else might be
used from there in the build, I wrapped the command in "", in mk/config.mk,
and typed make again..
you guessed it: everything was rebuilt! even though only one piece
depended on the change - could the dependencies be made more
precise, perhaps by splitting up config.mk?
- a quirk of modern miktex is that it tries to download and install missing
pieces on demand.. I happened to be online when the build reached
that line again, so I was able to confirm the dialog box that popped up,
and miktex could do its thing.
dblatex doesn't seem to respond to --help or --version or other niceties,
so I don't know whether configure could have moved this step from make
to configure, or at least temporarily disabled the dialog boxes.
- the build didn't continue through miktex's install interlude, though:
"/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin/dblatex"
docs/users_guide/users_guide.xml
--ps -o docs/users_guide/users_guide.ps
======================================================================
starting package maintenance...
installation directory: "C:\Program Files\MiKTeX 2.7"
package repository:
http://www.tex.ac.uk/tex-archive/systems/win32/miktex/tm/packages/
DBlight digest: c2eb649dac82dcda0c722b1ac13c7b05
going to download 821947 bytes
going to install 3723 file(s) (1 package(s))
downloading
http://www.tex.ac.uk/tex-archive/systems/win32/miktex/tm/packages/tex4ht.tar.lzma...
821947 bytes, 3.19 KB/Sec
extracting files from tex4ht.tar.lzma...
======================================================================
dblatex.exe: Windows API error 2: The system cannot find the file specified.
make[1]: *** [docs/users_guide/users_guide.ps] Error 1
make: *** [all] Error 2
- make again, ok, we get started into latex this time, but..
$ make 2>&1 | tee -a mystuff/make.log
===--- updating makefiles phase 0
make -r --no-print-directory -f ghc.mk phase=0 just-makefiles
===--- updating makefiles phase 1
make -r --no-print-directory -f ghc.mk phase=1 just-makefiles
===--- updating makefiles phase 2
make -r --no-print-directory -f ghc.mk phase=2 just-makefiles
===--- updating makefiles phase 3
make -r --no-print-directory -f ghc.mk phase=3 just-makefiles
===--- finished updating makefiles
make -r --no-print-directory -f ghc.mk all
"/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin/dblatex"
docs/users_guide/users_guide.xml --ps -o
docs/users_guide/users_guide.ps
d:\fptools\ghc>latex
\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCod
e"##1"{\link##1}\expandafter\hcode\else\expandafter\link\fi}\def\link#1.a.b.c....@addto@mac...@docum
entclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\l
et\documentstyle\HCode\expandafter\def\csname
tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\doc
umentstyle[tex4ht,}...@ifnextchar[{\hcode}{\documentstyle[tex4ht]}}}\makeatother\hcode
--ps.a.b.c.\inp
ut docs/users_guide/users_guide.xml
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7)
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
(docs/users_guide/users_guide.xml
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 <
?xml version="1.0" encoding="iso-8859-1"?>
?
Claus
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc