<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&#39;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">&lt;<a href="mailto:mainland@apeiron.net" target="_blank">mainland@apeiron.net</a>&gt;</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>
&gt; This seems to be caused by running &quot;sh validate&quot; in a build tree setup<br>
&gt; per the instructions<br>
&gt; 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>
&gt; re-ran &quot;sh validate&quot; in my source tree, and it went through OK.<br>
&gt;<br>
&gt; Is this expected, or should validating in a build tree be supported?<br>
&gt;<br>
&gt; -Andi<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 28, 2013 at 1:44 PM, Andreas Voellmy<br>
</div><div class="HOEnZb"><div class="h5">&gt; &lt;<a href="mailto:andreas.voellmy@gmail.com">andreas.voellmy@gmail.com</a> &lt;mailto:<a href="mailto:andreas.voellmy@gmail.com">andreas.voellmy@gmail.com</a>&gt;&gt; wrote:<br>

&gt;<br>
&gt;     Hi all,<br>
&gt;<br>
&gt;     I&#39;m trying to validate a bug fix for the IO manager on mac os x,<br>
&gt;     but when I run validate I am running into a problem due to<br>
&gt;     haddock.  I see what the problem is, but I&#39;m not sure where I<br>
&gt;     should go to fix it. Here is what happens:<br>
&gt;<br>
&gt;     Validate fails when it gets to the following command:<br>
&gt;<br>
&gt;     &quot;/Users/andreas/repos/temp-ghc-3/ghc-build/inplace/bin/haddock&quot;<br>
&gt;     --odir=&quot;libraries/ghc-prim/dist-install/doc/html/ghc-prim&quot;<br>
&gt;     --no-tmp-comp-dir<br>
&gt;     --dump-interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock<br>
&gt;     --html --hoogle --title=&quot;ghc-prim-0.3.1.0: GHC primitives&quot;<br>
&gt;     --prologue=&quot;libraries/ghc-prim/dist-install/haddock-prologue.txt&quot;<br>
&gt;       --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o<br>
&gt;     --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic<br>
&gt;     --optghc=-H32m --optghc=-O --optghc=-Werror --optghc=-Wall<br>
&gt;     --optghc=-H64m --optghc=-O0 --optghc=-package-name<br>
&gt;     --optghc=ghc-prim-0.3.1.0 --optghc=-hide-all-packages --optghc=-i<br>
&gt;     --optghc=-ilibraries/ghc-prim/.<br>
&gt;     --optghc=-ilibraries/ghc-prim/dist-install/build<br>
&gt;     --optghc=-ilibraries/ghc-prim/dist-install/build/autogen<br>
&gt;     --optghc=-Ilibraries/ghc-prim/dist-install/build<br>
&gt;     --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen<br>
&gt;     --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include<br>
&gt;     --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h<br>
&gt;     --optghc=-package --optghc=rts-1.0 --optghc=-package-name<br>
&gt;     --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP<br>
&gt;     --optghc=-XMagicHash --optghc=-XForeignFunctionInterface<br>
&gt;     --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples<br>
&gt;     --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude<br>
&gt;     --optghc=-O2 --optghc=-O --optghc=-dcore-lint<br>
&gt;     --optghc=-fno-warn-deprecated-flags --optghc=-no-user-package-db<br>
&gt;     --optghc=-rtsopts --optghc=-odir<br>
&gt;     --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir<br>
&gt;     --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir<br>
&gt;     --optghc=libraries/ghc-prim/dist-install/build<br>
&gt;      libraries/ghc-prim/./GHC/Classes.hs<br>
&gt;      libraries/ghc-prim/./GHC/CString.hs<br>
&gt;      libraries/ghc-prim/./GHC/Debug.hs<br>
&gt;      libraries/ghc-prim/./GHC/Magic.hs<br>
&gt;      libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs<br>
&gt;      libraries/ghc-prim/./GHC/IntWord64.hs<br>
&gt;      libraries/ghc-prim/./GHC/Tuple.hs<br>
&gt;      libraries/ghc-prim/./GHC/Types.hs<br>
&gt;     libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS<br>
&gt;     -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t<br>
&gt;     --machine-readable<br>
&gt;     Haddock coverage:<br>
&gt;       78% (  7 /  9) in &#39;GHC.Types&#39;<br>
&gt;       17% (  1 /  6) in &#39;GHC.CString&#39;<br>
&gt;     Warning: Couldn&#39;t find .haddock for export GHC.Prim.Int64#<br>
&gt;     Warning: Couldn&#39;t find .haddock for export GHC.Prim.Word64#<br>
&gt;        3% (  1 / 38) in &#39;GHC.IntWord64&#39;<br>
&gt;        3% (  2 / 63) in &#39;GHC.Tuple&#39;<br>
&gt;        0% (  0 /  3) in &#39;GHC.Debug&#39;<br>
&gt;        0% (  0 /342) in &#39;GHC.PrimopWrappers&#39;<br>
&gt;       31% (164 /537) in &#39;GHC.Prim&#39;<br>
&gt;      100% (  3 /  3) in &#39;GHC.Magic&#39;<br>
&gt;       38% (  6 / 16) in &#39;GHC.Classes&#39;<br>
&gt;     haddock: internal error:<br>
&gt;     /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme/hslogo-16.png:<br>
&gt;     copyFile: does not exist (No such file or directory)<br>
&gt;<br>
&gt;<br>
&gt;     Apparently it can&#39;t<br>
&gt;     find /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme/hslogo-16.png.<br>
&gt;     That file is in fact there, but it is linked to another file:<br>
&gt;<br>
&gt;     ls -lh<br>
&gt;     /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme<br>
&gt;     total 40<br>
&gt;     lrwxr-xr-x  1 andreas  staff    80B Apr 28 13:13 hslogo-16.png -&gt;<br>
&gt;     ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png<br>
&gt;     lrwxr-xr-x  1 andreas  staff    76B Apr 28 13:13 minus.gif -&gt;<br>
&gt;     ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/minus.gif<br>
&gt;     lrwxr-xr-x  1 andreas  staff    76B Apr 28 13:13 ocean.css -&gt;<br>
&gt;     ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/ocean.css<br>
&gt;     lrwxr-xr-x  1 andreas  staff    75B Apr 28 13:13 plus.gif -&gt;<br>
&gt;     ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/plus.gif<br>
&gt;     lrwxr-xr-x  1 andreas  staff    79B Apr 28 13:13 synopsis.png -&gt;<br>
&gt;     ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/synopsis.png<br>
&gt;     piz-sardona:ghc-build andreas$ cd<br>
&gt;     /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme<br>
&gt;<br>
&gt;     It seems to be trying to link<br>
&gt;     to utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png in<br>
&gt;     my source tree.  But the problem is that there is one too many<br>
&gt;     &quot;..&quot; in the links.  If there were one fewer &quot;..&quot; in the path, then<br>
&gt;     it would work fine. Do you have any idea how to fix this or where<br>
&gt;     the bug might be?<br>
&gt;<br>
&gt;     Cheers,<br>
&gt;<br>
&gt;     -Andi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; ghc-devs mailing list<br>
&gt; <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
&gt; <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>