Ticket #3597 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

trying to build ghc 6.10.4 from src tarball: haddock: Can't find package.conf

Reported by: zooko Owned by:
Priority: normal Milestone:
Component: Build System Version: 6.10.4
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Folks:

Trying to build from the ghc-6.10.4 source tarball on Ubuntu Hardy i686, the "make" step ends with:

Preprocessing library terminfo-0.3.1...
Running Haddock for terminfo-0.3.1...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: rts-1.0
Documentation created: dist/doc/html/terminfo/index.html
if ifBuildable/ifBuildable /home/zooko/playground/ghc/ghc-6.10.4/packages haskeline; then \
          cd haskeline && /home/zooko/playground/ghc/ghc-6.10.4/libraries/cabal-bin /usr/bin/ghc /home/zooko/playground/ghc/ghc-6.10.4/libraries/bootstrapping.conf 1.6.0.3 haddock --html-location='../$pkg' \
                                    --with-haddock=/home/zooko/playground/ghc/ghc-6.10.4/utils/haddock/install-inplace/bin/haddock; \
        fi
./Setup haddock --html-location=../$pkg --with-haddock=/home/zooko/playground/ghc/ghc-6.10.4/utils/haddock/install-inplace/bin/haddock
Preprocessing library haskeline-0.6.1.5...
Running Haddock for haskeline-0.6.1.5...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: rts-1.0
Warning: System.Console.Haskeline.History: could not find link destinations for:
    System.Console.Haskeline.Monads.MonadState
Warning: System.Console.Haskeline.MonadException: could not find link destinations for:
    System.Console.Haskeline.Backend.Terminfo.Draw System.Console.Haskeline.Backend.DumbTerm.DumbTerm GHC.IOBase.IOError GHC.IOBase.ioe_handle GHC.IOBase.ioe_type GHC.IOBase.ioe_location GHC.IOBase.ioe_description GHC.IOBase.ioe_filename
Warning: System.Console.Haskeline: could not find link destinations for:
    System.Console.Haskeline.Monads.MonadState System.Console.Haskeline.Monads.MonadReader System.Console.Haskeline.Term.RunTerm
Documentation created: dist/doc/html/haskeline/index.html
sh gen_contents_index --inplace
haddock: Can't find package.conf as /home/zooko/playground/ghc/ghc-6.10.4/utils/haddock/install-inplace/share/./inplace-datadir/package.conf
make[2]: *** [doc] Error 1
make[2]: Leaving directory `/home/zooko/playground/ghc/ghc-6.10.4/libraries'
make[1]: *** [stage2] Error 2
make[1]: Leaving directory `/home/zooko/playground/ghc/ghc-6.10.4'
make: *** [bootstrap2] Error 2

real    43m43.936s
user    36m2.463s
sys     7m22.284s

Googling for this error message shows me:  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538157

Change History

Changed 4 years ago by zooko

int-e asked, and I answer:

zooko@hanford:~$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.2
zooko@hanford:~$ cabal --version
bash: cabal: command not found

Changed 4 years ago by zooko

creating an mk/build.mk with HADDOCK_DOCS = NO worked-around the problem and I was able to build.

Changed 4 years ago by zooko

zooko@hanford:~$ ghc-pkg list Cabal
/usr/lib/ghc-6.8.2/package.conf:
    Cabal-1.2.3.0

Changed 4 years ago by igloo

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to fixed

The build system has completely changed in 6.12, and it sounds like you have worked around the problem, so I'm closing this ticket.

Note: See TracTickets for help on using tickets.