#1833: Haddock 2 can not process the base package with HscTarget = HscNothing
---------------------+------------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8.2
Component: GHC API | Version: 6.8.1
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: Linux |
---------------------+------------------------------------------------------
Comment (by simonmar):
I'm trying to reproduce the original error, and I need some help.
I compiled up Haddock 2 from `code.haskell.org`, and tried to run it on a
copy of the base library in a GHC build tree. I tried unsuccessfully to
use `setup/Setup haddock`: it still seemed to want to preprocess all the
source files:
{{{
$ ./setup/Setup haddock -v
Creating dist/build/tmp (and its parents)
Creating dist/doc/html/base (and its parents)
Preprocessing library base-3.0...
Running Haddock for base-3.0...
../../utils/ghc-pkg/ghc-pkg-inplace field rts-1.0 haddock-interfaces
../../utils/ghc-pkg/ghc-pkg-inplace field rts-1.0 haddock-html
Warning: The documentation for package rts-1.0 is not installed. No links
to it will be generated.
/home/simonmar/darcs/haddock.ghc/dist/build/haddock/haddock --use-
contents=../index.html --use-index=../doc-index.html --ghc-version
../../compiler/stage1/ghc-inplace --print-libdir
Creating dist/build/tmp/./Data/ (and its parents)
../../compiler/stage1/ghc-inplace -E -cpp -x hs -o
dist/build/tmp/Data/Generics.hs Data/Generics.hs -Dlinux_BUILD_OS
-Dlinux_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH
-D__GLASGOW_HASKELL__=608 -Iinclude -D__HADDOCK__
<command line>:9:0: warning: "__GLASGOW_HASKELL__" redefined
<command line>:2:0:
warning: this is the location of the previous definition
}}}
it's definitely running the right Haddock (verison 2.0).
Anyway, I tried running Haddock directly:
{{{
$ haddock -B/home/simonmar/fp/lib/x86_64-unknown-linux/ghc-6.8.1 -optghc
=-fglasgow-exts -optghc=-cpp Prelude.hs
Prelude.hs:38:1: lexical error at character 'i'
}}}
The `-optghc` flags don't seem to be getting through to GHC. What's
happening here?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1833#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs