<div dir="ltr">Thanks Geoffrey.<div><br></div><div>It looks like the links that are created by lndir (i.e. in utils/haddock/resources/html/Ocean.std-theme) are fine, even when invoked with a relative fromdir.<div><br></div>
<div style>It seems that things go wrong when those files are copied over to inplace/lib/html/Ocean.std-theme. The links are still relative, but the depth of the files has changed, so now the original relative paths aren't correct. This may explain why it works alright when you use an absolute fromdir with lndir.</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 1, 2013 at 8:54 AM, Geoffrey Mainland <span dir="ltr"><<a href="mailto:mainland@apeiron.net" target="_blank">mainland@apeiron.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had this same problem. If you use a build tree, invoking lndir with an<br>
absolute rather than relative path fixes things (for me).<br>
<br>
Geoff<br>
<div class="im HOEnZb"><br>
On 04/29/2013 01:11 AM, Andreas Voellmy wrote:<br>
> This seems to be caused by running "sh validate" in a build tree setup<br>
> per the instructions<br>
> here <a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Using" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Building/Using</a> . I<br>
> re-ran "sh validate" in my source tree, and it went through OK.<br>
><br>
> Is this expected, or should validating in a build tree be supported?<br>
><br>
> -Andi<br>
><br>
><br>
> On Sun, Apr 28, 2013 at 1:44 PM, Andreas Voellmy<br>
</div><div class="HOEnZb"><div class="h5">> <<a href="mailto:andreas.voellmy@gmail.com">andreas.voellmy@gmail.com</a> <mailto:<a href="mailto:andreas.voellmy@gmail.com">andreas.voellmy@gmail.com</a>>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I'm trying to validate a bug fix for the IO manager on mac os x,<br>
> but when I run validate I am running into a problem due to<br>
> haddock. I see what the problem is, but I'm not sure where I<br>
> should go to fix it. Here is what happens:<br>
><br>
> Validate fails when it gets to the following command:<br>
><br>
> "/Users/andreas/repos/temp-ghc-3/ghc-build/inplace/bin/haddock"<br>
> --odir="libraries/ghc-prim/dist-install/doc/html/ghc-prim"<br>
> --no-tmp-comp-dir<br>
> --dump-interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock<br>
> --html --hoogle --title="ghc-prim-0.3.1.0: GHC primitives"<br>
> --prologue="libraries/ghc-prim/dist-install/haddock-prologue.txt"<br>
> --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o<br>
> --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic<br>
> --optghc=-H32m --optghc=-O --optghc=-Werror --optghc=-Wall<br>
> --optghc=-H64m --optghc=-O0 --optghc=-package-name<br>
> --optghc=ghc-prim-0.3.1.0 --optghc=-hide-all-packages --optghc=-i<br>
> --optghc=-ilibraries/ghc-prim/.<br>
> --optghc=-ilibraries/ghc-prim/dist-install/build<br>
> --optghc=-ilibraries/ghc-prim/dist-install/build/autogen<br>
> --optghc=-Ilibraries/ghc-prim/dist-install/build<br>
> --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen<br>
> --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include<br>
> --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h<br>
> --optghc=-package --optghc=rts-1.0 --optghc=-package-name<br>
> --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP<br>
> --optghc=-XMagicHash --optghc=-XForeignFunctionInterface<br>
> --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples<br>
> --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude<br>
> --optghc=-O2 --optghc=-O --optghc=-dcore-lint<br>
> --optghc=-fno-warn-deprecated-flags --optghc=-no-user-package-db<br>
> --optghc=-rtsopts --optghc=-odir<br>
> --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir<br>
> --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir<br>
> --optghc=libraries/ghc-prim/dist-install/build<br>
> libraries/ghc-prim/./GHC/Classes.hs<br>
> libraries/ghc-prim/./GHC/CString.hs<br>
> libraries/ghc-prim/./GHC/Debug.hs<br>
> libraries/ghc-prim/./GHC/Magic.hs<br>
> libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs<br>
> libraries/ghc-prim/./GHC/IntWord64.hs<br>
> libraries/ghc-prim/./GHC/Tuple.hs<br>
> libraries/ghc-prim/./GHC/Types.hs<br>
> libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS<br>
> -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t<br>
> --machine-readable<br>
> Haddock coverage:<br>
> 78% ( 7 / 9) in 'GHC.Types'<br>
> 17% ( 1 / 6) in 'GHC.CString'<br>
> Warning: Couldn't find .haddock for export GHC.Prim.Int64#<br>
> Warning: Couldn't find .haddock for export GHC.Prim.Word64#<br>
> 3% ( 1 / 38) in 'GHC.IntWord64'<br>
> 3% ( 2 / 63) in 'GHC.Tuple'<br>
> 0% ( 0 / 3) in 'GHC.Debug'<br>
> 0% ( 0 /342) in 'GHC.PrimopWrappers'<br>
> 31% (164 /537) in 'GHC.Prim'<br>
> 100% ( 3 / 3) in 'GHC.Magic'<br>
> 38% ( 6 / 16) in 'GHC.Classes'<br>
> haddock: internal error:<br>
> /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme/hslogo-16.png:<br>
> copyFile: does not exist (No such file or directory)<br>
><br>
><br>
> Apparently it can't<br>
> find /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme/hslogo-16.png.<br>
> That file is in fact there, but it is linked to another file:<br>
><br>
> ls -lh<br>
> /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme<br>
> total 40<br>
> lrwxr-xr-x 1 andreas staff 80B Apr 28 13:13 hslogo-16.png -><br>
> ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png<br>
> lrwxr-xr-x 1 andreas staff 76B Apr 28 13:13 minus.gif -><br>
> ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/minus.gif<br>
> lrwxr-xr-x 1 andreas staff 76B Apr 28 13:13 ocean.css -><br>
> ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/ocean.css<br>
> lrwxr-xr-x 1 andreas staff 75B Apr 28 13:13 plus.gif -><br>
> ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/plus.gif<br>
> lrwxr-xr-x 1 andreas staff 79B Apr 28 13:13 synopsis.png -><br>
> ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/synopsis.png<br>
> piz-sardona:ghc-build andreas$ cd<br>
> /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme<br>
><br>
> It seems to be trying to link<br>
> to utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png in<br>
> my source tree. But the problem is that there is one too many<br>
> ".." in the links. If there were one fewer ".." in the path, then<br>
> it would work fine. Do you have any idea how to fix this or where<br>
> the bug might be?<br>
><br>
> Cheers,<br>
><br>
> -Andi<br>
><br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> ghc-devs mailing list<br>
> <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
<br>
</div></div></blockquote></div><br></div>