Documentation build failure
make-ing 7.0.2 failed with: -- everything fine up to here, users guide html okay Build users_guide.ps This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE) entering extended mode latex failed users_guide_tmp.tex:1631: Undefined control sequence \Documents. users_guide_tmp.tex:1631: leading text: } users_guide_tmp.tex:1631: Undefined control sequence \user. users_guide_tmp.tex:1631: leading text: } users_guide_tmp.tex:3993: Undefined control sequence \Person. users_guide_tmp.tex:3993: leading text: or \nolinkurl{Data\Person.hs} users_guide_tmp.tex:6185: Undefined control sequence \Documents. users_guide_tmp.tex:6185: leading text: ...ts~And~Settings\user\ghc\package.conf.d} users_guide_tmp.tex:6185: Undefined control sequence \user. users_guide_tmp.tex:6185: leading text: ...ts~And~Settings\user\ghc\package.conf.d} users_guide_tmp.tex:6185: Undefined control sequence \ghc. users_guide_tmp.tex:6185: leading text: ...ts~And~Settings\user\ghc\package.conf.d} users_guide_tmp.tex:6185: Undefined control sequence \package. users_guide_tmp.tex:6185: leading text: ...ts~And~Settings\user\ghc\package.conf.d} users_guide_tmp.tex: File ended while scanning use of \hyper@n@rmalise. users_guide_tmp.tex: Emergency stop. Error: latex compilation failed make[1]: *** [docs/users_guide/users_guide.ps] Fehler 1 make: *** [all] Fehler 2 on openSUSE 11.3. I don't know which programme is at fault here, maybe someone can check whether ps/pdf documentation building works on other systems. Re ./configure-ing after setting BUILD_DOCBOOK_PS = NO BUILD_DOCBOOK_PDF = NO in mk/build.mk said it would build ps and pdf documentation nevertheless, I had to edit the configure script to convince it not to try. configure just checks for the existence of a dblatex command, so perhaps $ dblatex --version /usr/lib/python2.6/site-packages/dbtexmf/dblatex/grubber/util.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 dblatex version 0.2.7 is helpful information. Unrelated: The build produces several SpecConstr Function `$j_s8qC{v} [lid]' has four call patterns, but the limit is 3 Use -fspec-constr-count=n to set the bound Use -dppr-debug to see specialisations warnings(?) (this is also very common building libraries). a) What does that mean for code generation? Will the specialisations be generated nevertheless? b) Would it be reasonable to have a higher default than 3 for spec-constr- count? Cheers, Daniel ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Documentation build failure
On Sat, Mar 05, 2011 at 11:27:40AM +0100, Daniel Fischer wrote: make-ing 7.0.2 failed with: -- everything fine up to here, users guide html okay Build users_guide.ps This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/openSUSE) entering extended mode latex failed users_guide_tmp.tex:1631: Undefined control sequence \Documents. users_guide_tmp.tex:1631: leading text: } Building the ps/pdf documentation works only with a specific, outdated version of dblatex (Simon will probably tell you which one). Trying to build with a different dblatex installed exhibits the error you encountered above. The error occurs everywhere where Windows-style pathnames are used; the backslashes end up raw in the tex. I'm not sure either if a fix should go into dblatex, the user's guide, or the build system. ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: hoogling GHC
Ranjit, I'd like to build a hoogle database that indexes the GHC source. Can anyone point me to how I might do that? (Or better, to a preexisting database?) The author of Hoogle, Neil Mitchell, is currently on holiday, but I'm sure he will have some good advice for you when he returns. In the meantime, the relevant portion of the Hoogle manual is here: http://www.haskell.org/haskellwiki/Hoogle#Database_Creation and a blog post with instructions is here: http://neilmitchell.blogspot.com/2008/08/hoogle-database-generation.html (I've noticed that make haddock generates a bunch of .txt files. Is there some easy way to scour the directories and build a single Hoogle database from them?) I imagine some simple shell scripting would achieve that, starting with find haddockBaseDir -name *.txt -print | ... Regards, Malcolm ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: hoogling GHC
Hi Malcolm, thanks! I'd managed, thanks to the tutorials/blog managed to get to the point where make haddock generated ghc.txt which I converted to the database ghc.hoo After some more fiddling (namely copying the above into the relevant .cabal/share/hoogle/... directory), and renaming the above to default.hoo I'd even managed to induce the command line interface to search the database. The final stumbling block is getting the local webserver (hoogle server) to also search the above database. I'm sure there must be some simple way I can pass the name of the database as an argument when I boot up the server, but I can't seem to find it... Thanks again! Ranjit. On Mar 5, 2011, at 7:13 AM, Malcolm Wallace wrote: Ranjit, I'd like to build a hoogle database that indexes the GHC source. Can anyone point me to how I might do that? (Or better, to a preexisting database?) The author of Hoogle, Neil Mitchell, is currently on holiday, but I'm sure he will have some good advice for you when he returns. In the meantime, the relevant portion of the Hoogle manual is here: http://www.haskell.org/haskellwiki/Hoogle#Database_Creation and a blog post with instructions is here: http://neilmitchell.blogspot.com/2008/08/hoogle-database-generation.html (I've noticed that make haddock generates a bunch of .txt files. Is there some easy way to scour the directories and build a single Hoogle database from them?) I imagine some simple shell scripting would achieve that, starting with find haddockBaseDir -name *.txt -print | ... Regards, Malcolm ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: semaphore functions in the wrong place during cross-build
On Fri, Mar 04, 2011 at 10:46:13AM -0800, Tyler Pirtle wrote: I'm not sure where the right place is to configure this. While linking hsunix + some others, the compiler assumes that -lrt is the appropriate library to find semaphore-related functions, but for the particular toolchain i'm building against, those functions are actually in -lpthread. Is there an easy way i can configure this? What version are you using? This sounds like it might be: http://hackage.haskell.org/trac/ghc/ticket/4523 Fixed in 7.0.2 and HEAD. Thanks Ian ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Documentation build failure
On Sat, Mar 05, 2011 at 11:27:40AM +0100, Daniel Fischer wrote: $ dblatex --version /usr/lib/python2.6/site-packages/dbtexmf/dblatex/grubber/util.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 dblatex version 0.2.7 I don't know if this is the problem, but I have $ dblatex --version dblatex version 0.3-2 Debian's previous stable release had 0.2.9, so that's probably fine too. $ make docs/users_guide/users_guide.ps ===--- 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 docs/users_guide/users_guide.ps /usr/bin/dblatex docs/users_guide/users_guide.xml --ps -o docs/users_guide/users_guide.ps Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.3-2) === subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen Pixel unit not handled (replaced by pt) Pixel unit not handled (replaced by pt) subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen subscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen superscript: default template used in programlisting or screen Found eps for 'prof_scc' Build users_guide.ps This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) restricted \write18 enabled. entering extended mode processing index /tmp/tmp2gpTyl/users_guide.idx... This is makeindex, version 2.15 [TeX Live 2009] (kpathsea + Thai support). Scanning style file /usr/share/dblatex/latex/scripts/doc.istdone (4 attributes redefined, 0 ignored). Scanning input file /tmp/tmp2gpTyl/users_guide.idxdone (779 entries accepted, 0 rejected). Sorting entries.done (7976 comparisons). Generating output file /tmp/tmp2gpTyl/users_guide.inddone (902 lines written, 0 warnings). Output written in /tmp/tmp2gpTyl/users_guide.ind. Transcript written in /tmp/tmp2gpTyl/users_guide.ilg. This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) restricted \write18 enabled. entering extended mode This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) restricted \write18 enabled. entering extended mode running dvips on /tmp/tmp2gpTyl/users_guide.dvi... This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com) ' TeX output 2011.03.06:0100' - /tmp/tmp2gpTyl/users_guide.ps /usr/share/texmf-texlive/dvips/base/tex.pro /usr/share/texmf-texlive/fonts/enc/dvips/base/8r.enc /usr/share/texmf-texlive/dvips/base/texps.pro /usr/share/texmf-texlive/dvips/base/special.pro /usr/share/texmf-texlive/dvips/base/color.pro. /usr/share/texmf-texlive/fonts/type1/public/amsfonts/symbols/msam10.pfb /usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsy10.pfb /usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi10.pfb[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106]
Re: Documentation build failure
On Sat, Mar 05, 2011 at 01:20:03PM +0100, Malte Sommerkorn wrote: Building the ps/pdf documentation works only with a specific, outdated version of dblatex I don't think that's true, but IIRC miktex includes a completely different program, also called dblatex, which doesn't do what we want. Thanks Ian ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Documentation build failure
On Sunday 06 March 2011 02:03:12, Ian Lynagh wrote: On Sat, Mar 05, 2011 at 11:27:40AM +0100, Daniel Fischer wrote: $ dblatex --version /usr/lib/python2.6/site-packages/dbtexmf/dblatex/grubber/util.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 dblatex version 0.2.7 I don't know if this is the problem, but I have $ dblatex --version dblatex version 0.3-2 Debian's previous stable release had 0.2.9, so that's probably fine too. That seems to be the problem, after installing dblatex-0.3-1.2: $ make docs/users_guide/users_guide.ps ===--- updating makefiles phase 0 make -r --no-print-directory -f ghc.mk phase=0 just-makefiles snip [242] [243] [244] [245] [246] 'users_guide.ps' successfully built [ -f docs/users_guide/users_guide.ps ] Check for dblatex = 0.2.9 in configure? ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: hoogling GHC
The final stumbling block is getting the local webserver (hoogle server) to also search the above database. I'm sure there must be some simple way I can pass the name of the database as an argument when I boot up the server, but I can't seem to find it... Have you found the various versions of the web deployment procedure yet? deploy.txt: instructions to follow manually (seems to be up-to-date) deploy.sh: a shell script version to run locally (may be old) Deploy.hs: a haskell version to run remotely (may also be old) Obviously those scripts are tailored to the official installation, but there are some clues in there, for instance the steps cabal configure --datadir=/srv/web/haskell.org/hoogle/ -- datasubdir=datadir -O2 and Upload datadir/resources to /srv/web/haskell.org/hoogle/datadir/ resources Upload datadir/databases/* to /srv/web/haskell.org/hoogle/datadir/ databases Regards, Malcolm ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users