we tried it exactly as you describe below (twice).&nbsp; after it failed the first time, we deleted everything, redownloaded, and tried again.&nbsp; but i know the process works - i&#39;ve done it successfully on two other machines (though this is the only red hat machine i&#39;ve ever attempted this on). <br>
<br>are there any flags i need to pass to enable verbose logging, or does the build process always log everything?&nbsp; also - where do these log files go, and where should i post them? <br><br>thanks for you help. <br>-james <br>
<br><br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 12:13 PM, Don Stewart <span dir="ltr">&lt;<a href="mailto:dons@galois.com">dons@galois.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It sounds like your tree is mucked up somehow.<br>
<br>
The process should be quite simple:<br>
<br>
 &nbsp; &nbsp;* download the ghc binary release for your platform (e.g. x86_64/linux)<br>
 &nbsp; &nbsp;* set LD_LIBRARY_PATH to include the directory of any non-standard dynamic libraries.<br>
<br>
And you are done.<br>
<br>
Can you try this?<br>
<br>
Since this is working for all the other x86_64 users, I suspect you may<br>
have just missed a step in the process (perhaps setting the wrong<br>
environment variable?).<br>
<br>
As Simon Marlow said, if your source build is failing, you should post<br>
the full logs online of the build process, so we can see which libraries<br>
or tools are missing from your development environment, such that the<br>
build fails.<br>
<br>
-- Don<br>
<br>
james.swaine:<br>
<div><div></div><div class="Wj3C7c">&gt; &nbsp; &nbsp;we tried that, but then we got this error:<br>
&gt;<br>
&gt; &nbsp; &nbsp;grep: packages: No such file or directory<br>
&gt; &nbsp; &nbsp;make -C libraries boot<br>
&gt; &nbsp; &nbsp;make[1]: Entering directory `/home/jswaine/ghc/ghc-6.10.1/<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;libraries&#39;<br>
&gt; &nbsp; &nbsp; &nbsp;mkdir bootstrapping<br>
&gt; &nbsp; &nbsp; &nbsp;mkdir: cannot create directory `bootstrapping&#39;: File exists<br>
&gt; &nbsp; &nbsp; &nbsp;make[1]: [cabal-bin] Error 1 (ignored)<br>
&gt; &nbsp; &nbsp; &nbsp;/home/jswaine/ghc/ghc-6.10.1/ghc/ghc -Wall -DCABAL_VERSION=1,6,0,1 -odir<br>
&gt; &nbsp; &nbsp; &nbsp;/home/jswaine/ghc/ghc-6.10.1/libraries/bootstrapping -hidir<br>
&gt; &nbsp; &nbsp; &nbsp;/home/jswaine/ghc/ghc-6.10.1/libraries/bootstrapping<br>
&gt; &nbsp; &nbsp; &nbsp;-i/home/jswaine/ghc/ghc-6.10.1/libraries/Cabal<br>
&gt; &nbsp; &nbsp; &nbsp;-i/home/jswaine/ghc/ghc-6.10.1/libraries/filepath<br>
&gt; &nbsp; &nbsp; &nbsp;-i/home/jswaine/ghc/ghc-6.10.1/libraries/hpc --make cabal-bin -o<br>
&gt; &nbsp; &nbsp; &nbsp;cabal-bin<br>
&gt; &nbsp; &nbsp; &nbsp;ghc: missing -B&lt;dir&gt; option<br>
&gt; &nbsp; &nbsp; &nbsp;make[1]: *** [cabal-bin] Error 1<br>
&gt; &nbsp; &nbsp; &nbsp;make[1]: Leaving directory `/home/jswaine/ghc/ghc-6.10.1/libraries&#39;<br>
&gt; &nbsp; &nbsp; &nbsp;make: *** [stage1] Error 2<br>
&gt;<br>
&gt; &nbsp; &nbsp; which still looks to me like it&#39;s somewhat related to linking (the<br>
&gt; &nbsp; &nbsp;assumption was that -B is used for this sort of thing - linking to<br>
&gt; &nbsp; &nbsp;libraries in unusual directories). &nbsp;but this option isn&#39;t listed in the<br>
&gt; &nbsp; &nbsp;ghc flag reference. &nbsp;that was when we decided to just install the editline<br>
&gt; &nbsp; &nbsp;package so it would be where it normally is (/usr/local/lib), but that got<br>
&gt; &nbsp; &nbsp;us back to the original error message. &nbsp;ugh.<br>
&gt;<br>
&gt; &nbsp; &nbsp;-james<br>
&gt;<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; &nbsp; &nbsp;On Fri, Nov 14, 2008 at 12:02 PM, Don Stewart &lt;[1]<a href="mailto:dons@galois.com">dons@galois.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;Is your LD_LIBRARY_PATH environment variable exported, and set to<br>
&gt; &nbsp; &nbsp; &nbsp;include the path to the lib dir that libedit lives in?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;e.g.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $ echo $LD_LIBRARY_PATH<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; /home/dons/lib<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;Allows the system linker to find things in my home dir.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;james.swaine:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;it says:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;libedit.so.0 =&gt; not found<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libncurses.so.5 =&gt; /usr/lib64/libncurses.so.5<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00000039e2200000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libutil.so.1 =&gt; /lib64/libutil.so.1 (0x00000039dba00000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libdl.so.2 =&gt; /lib64/libdl.so.2 (0x00000039cfc00000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libm.so.6 =&gt; /lib64/libm.so.6 (0x00000039cf800000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libgmp.so.3 =&gt; /usr/lib64/libgmp.so.3 (0x00000039d5800000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;librt.so.1 =&gt; /lib64/librt.so.1 (0x00000039d3800000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x00000039d0000000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;libc.so.6 =&gt; /lib64/libc.so.6 (0x00000039cf400000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp;/lib64/ld-linux-x86-64.so.2 (0x00000039cec00000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;i noticed that my PATH variable doesn&#39;t include /usr/local/lib, do<br>
&gt; &nbsp; &nbsp; &nbsp;you<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;think this might be the problem?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;-james<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;On Fri, Nov 14, 2008 at 1:00 AM, Don Stewart<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; &nbsp; &nbsp; &nbsp;&lt;[1][2]<a href="mailto:dons@galois.com">dons@galois.com</a>&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;james.swaine:<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;We&#39;ve had unbelievable problems getting past this ridiculous<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&#39;unable to<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;load object file or shared library libedit.so.0&#39; error when<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;attempting to<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;build the 6.10.1 source tree. &nbsp;We initially just built<br>
&gt; &nbsp; &nbsp; &nbsp;editline in<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;a user<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;directory and attempted to manipulate environment variables<br>
&gt; &nbsp; &nbsp; &nbsp;to help<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;the<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;linker (e.g. setting LIBRARY_PATH, LD_LIBRARY_PATH, and<br>
&gt; &nbsp; &nbsp; &nbsp;CPATH) -<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;but this<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;did no good.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;We then just installed the editline package so it&#39;s<br>
&gt; &nbsp; &nbsp; &nbsp;available<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;globally and<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;the libraries (specifically libedit.so.0) live in<br>
&gt; &nbsp; &nbsp; &nbsp;/usr/local/lib,<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;so it<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;should be found with no problem. &nbsp;Not so for ghc - same<br>
&gt; &nbsp; &nbsp; &nbsp;error.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; We&#39;re<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;running this on Red Hat.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;What does ldd say?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;It should say something like this (on Arch Linux):<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; $ ldd /usr/lib/ghc-6.10.0/ghc<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linux-vdso.so.1 &nbsp; &nbsp; =&gt; &nbsp;(0x00007fffb09fe000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libedit.so.0 &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /usr/lib/libedit.so.0<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa8479000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libncursesw.so.5 &nbsp; &nbsp;=&gt; /lib/libncursesw.so.5<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa820f000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libutil.so.1 &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /lib/libutil.so.1<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa800c000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libdl.so.2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /lib/libdl.so.2<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa7e08000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libm.so.6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; /lib/libm.so.6 (0x00007f6aa7b85000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libgmp.so.3 &nbsp; &nbsp; &nbsp; &nbsp; =&gt; /usr/lib/libgmp.so.3<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa7943000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; librt.so.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=&gt; /lib/librt.so.1<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa773b000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libpthread.so.0 &nbsp; &nbsp; =&gt; /lib/libpthread.so.0<br>
&gt; &nbsp; &nbsp; &nbsp;(0x00007f6aa7520000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; libc.so.6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =&gt; /lib/libc.so.6 (0x00007f6aa71cc000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /lib/ld-linux-x86-64.so.2 (0x00007f6aa86a7000)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;For example, let&#39;s you know if the system linker can see libedit<br>
&gt; &nbsp; &nbsp; &nbsp;(and<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;the other<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;C libraries GHC uses)<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;I&#39;m part of a research group at Northwestern University that<br>
&gt; &nbsp; &nbsp; &nbsp;is<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;exploring<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;the use of ghc and associated libraries for some upcoming<br>
&gt; &nbsp; &nbsp; &nbsp;projects.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp; It&#39;s<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;a shame that this is so difficult to even compile/install,<br>
&gt; &nbsp; &nbsp; &nbsp;and<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;nobody<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;seems to be able to figure out what&#39;s wrong.<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;Do you have the option of using a distro package? Has GHC 6.10.x<br>
&gt; &nbsp; &nbsp; &nbsp;been<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;packaged for<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;your distro yet? Do you have the option of using GHC 6.8.x for<br>
&gt; &nbsp; &nbsp; &nbsp;now, or<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;is there some<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;feature in 6.10.x you expect to depend on?<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp; &nbsp;-- Don<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; References<br>
&gt; &nbsp; &nbsp; &nbsp;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;Visible links<br>
</div></div>&gt; &nbsp; &nbsp; &nbsp;&gt; &nbsp; &nbsp;1. mailto:[3]<a href="mailto:dons@galois.com">dons@galois.com</a><br>
<div class="Ih2E3d">&gt;<br>
&gt; References<br>
&gt;<br>
&gt; &nbsp; &nbsp;Visible links<br>
&gt; &nbsp; &nbsp;1. mailto:<a href="mailto:dons@galois.com">dons@galois.com</a><br>
</div>&gt; &nbsp; &nbsp;2. mailto:<a href="mailto:dons@galois.com">dons@galois.com</a><br>
&gt; &nbsp; &nbsp;3. mailto:<a href="mailto:dons@galois.com">dons@galois.com</a><br>
</blockquote></div><br>