<div dir="ltr">This seems to be caused by running &quot;sh validate&quot; in a build tree setup per the instructions here <a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Using">http://hackage.haskell.org/trac/ghc/wiki/Building/Using</a>  .  I re-ran &quot;sh validate&quot; in my source tree, and it went through OK.  <div>
<br></div><div style>Is this expected, or should validating in a build tree be supported?</div><div style><br></div><div style>-Andi </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 1:44 PM, Andreas Voellmy <span dir="ltr">&lt;<a href="mailto:andreas.voellmy@gmail.com" target="_blank">andreas.voellmy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi all, </div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;m trying to validate a bug fix for the IO manager on mac os x, but when I run validate I am running into a problem due to haddock.  I see what the problem is, but I&#39;m not sure where I should go to fix it. Here is what happens: </div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Validate fails when it gets to the following command: </div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>&quot;/Users/andreas/repos/temp-ghc-3/ghc-build/inplace/bin/haddock&quot; --odir=&quot;libraries/ghc-prim/dist-install/doc/html/ghc-prim&quot; --no-tmp-comp-dir --dump-interface=libraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock --html --hoogle --title=&quot;ghc-prim-0.3.1.0: GHC primitives&quot; --prologue=&quot;libraries/ghc-prim/dist-install/haddock-prologue.txt&quot;   --optghc=-hisuf --optghc=dyn_hi --optghc=-osuf --optghc=dyn_o --optghc=-hcsuf --optghc=dyn_hc --optghc=-fPIC --optghc=-dynamic --optghc=-H32m --optghc=-O --optghc=-Werror --optghc=-Wall --optghc=-H64m --optghc=-O0 --optghc=-package-name --optghc=ghc-prim-0.3.1.0 --optghc=-hide-all-packages --optghc=-i --optghc=-ilibraries/ghc-prim/. --optghc=-ilibraries/ghc-prim/dist-install/build --optghc=-ilibraries/ghc-prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/dist-install/build --optghc=-Ilibraries/ghc-prim/dist-install/build/autogen --optghc=-Ilibraries/ghc-prim/. --optghc=-optP-include --optghc=-optPlibraries/ghc-prim/dist-install/build/autogen/cabal_macros.h --optghc=-package --optghc=rts-1.0 --optghc=-package-name --optghc=ghc-prim --optghc=-XHaskell98 --optghc=-XCPP --optghc=-XMagicHash --optghc=-XForeignFunctionInterface --optghc=-XUnliftedFFITypes --optghc=-XUnboxedTuples --optghc=-XEmptyDataDecls --optghc=-XNoImplicitPrelude --optghc=-O2 --optghc=-O --optghc=-dcore-lint --optghc=-fno-warn-deprecated-flags --optghc=-no-user-package-db --optghc=-rtsopts --optghc=-odir --optghc=libraries/ghc-prim/dist-install/build --optghc=-hidir --optghc=libraries/ghc-prim/dist-install/build --optghc=-stubdir --optghc=libraries/ghc-prim/dist-install/build    libraries/ghc-prim/./GHC/Classes.hs  libraries/ghc-prim/./GHC/CString.hs  libraries/ghc-prim/./GHC/Debug.hs  libraries/ghc-prim/./GHC/Magic.hs  libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.hs  libraries/ghc-prim/./GHC/IntWord64.hs  libraries/ghc-prim/./GHC/Tuple.hs  libraries/ghc-prim/./GHC/Types.hs libraries/ghc-prim/dist-install/build/autogen/GHC/Prim.hs +RTS -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t --machine-readable</div>

<div>Haddock coverage:</div><div>  78% (  7 /  9) in &#39;GHC.Types&#39;</div><div>  17% (  1 /  6) in &#39;GHC.CString&#39;</div><div>Warning: Couldn&#39;t find .haddock for export GHC.Prim.Int64#</div><div>Warning: Couldn&#39;t find .haddock for export GHC.Prim.Word64#</div>

<div>   3% (  1 / 38) in &#39;GHC.IntWord64&#39;</div><div>   3% (  2 / 63) in &#39;GHC.Tuple&#39;</div><div>   0% (  0 /  3) in &#39;GHC.Debug&#39;</div><div>   0% (  0 /342) in &#39;GHC.PrimopWrappers&#39;</div><div>  31% (164 /537) in &#39;GHC.Prim&#39;</div>

<div> 100% (  3 /  3) in &#39;GHC.Magic&#39;</div><div>  38% (  6 / 16) in &#39;GHC.Classes&#39;</div><div>haddock: internal error: /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme/hslogo-16.png: copyFile: does not exist (No such file or directory)</div>

<div><br></div><div><br></div><div>Apparently it can&#39;t find /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme/hslogo-16.png. That file is in fact there, but it is linked to another file: </div>

<div><br></div><div><div>ls -lh /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme</div><div>total 40</div><div>lrwxr-xr-x  1 andreas  staff    80B Apr 28 13:13 hslogo-16.png -&gt; ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png</div>

<div>lrwxr-xr-x  1 andreas  staff    76B Apr 28 13:13 minus.gif -&gt; ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/minus.gif</div><div>lrwxr-xr-x  1 andreas  staff    76B Apr 28 13:13 ocean.css -&gt; ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/ocean.css</div>

<div>lrwxr-xr-x  1 andreas  staff    75B Apr 28 13:13 plus.gif -&gt; ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/plus.gif</div><div>lrwxr-xr-x  1 andreas  staff    79B Apr 28 13:13 synopsis.png -&gt; ../../../../../../ghc/utils/haddock/resources/html/Ocean.std-theme/synopsis.png</div>

<div>piz-sardona:ghc-build andreas$ cd /Users/andreas/repos/temp-ghc-3/ghc-build/inplace/lib/html/Ocean.std-theme</div><div><br></div><div>It seems to be trying to link to utils/haddock/resources/html/Ocean.std-theme/hslogo-16.png in my source tree.  But the problem is that there is one too many &quot;..&quot; in the links.  If there were one fewer &quot;..&quot; in the path, then it would work fine. Do you have any idea how to fix this or where the bug might be? </div>

<div><br></div><div>Cheers, </div><div><br></div><div>-Andi</div></div></div></div>
</blockquote></div><br></div>