<div dir="ltr"><div class="gmail_extra">I never determined how to fix this. Here's the notes I developed:</div><div class="gmail_extra"><br></div><div class="gmail_extra">tl;dr For some reason, it seems gmp.h is not recognized as a dependency of mkGmpDerivedConstants.o</div>
<div><br></div><div class="gmail_extra">HTH</div><div class="gmail_extra"><br></div><div class="gmail_extra">-----</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>If I run</div><div><br></div><div>$ perl boot; ./configure; make -j4</div>
<div><br></div><div>I tend to see a build failure. Immediately running make -j4 again succeeds.</div><div><br></div><div>In the following snippet from the log, FILE=libraries/integer-gmp/mkGmpDerivedConstants/mkGmpDerivedConstants.c</div>
<div><br></div><div>{{{</div><div><div>"/usr/bin/gcc" -m64 -fno-stack-protector</div><div> -Ilibraries/integer-gmp/gmp -Ilibraries/integer-gmp/mkGmpDerivedConstants/dist</div><div> -c FILE -o libraries/integer-gmp/mkGmpDerivedConstants/dist/build/mkGmpDerivedConstants.o</div>
<div><br></div><div>FILE:15:17: error: gmp.h: No such file or directory</div><div>FILE: In function ‘main’:</div><div>FILE:68: error: ‘MP_INT’ undeclared (first use in this function)</div><div>FILE:68: error: (Each undeclared identifier is reported only once</div>
<div>FILE:68: error: for each function it appears in.)</div><div>FILE:69: error: expected expression before ‘)’ token</div><div>FILE:69: error: expected expression before ‘)’ token</div><div>FILE:70: error: expected expression before ‘)’ token</div>
<div>FILE:70: error: expected expression before ‘)’ token</div><div>FILE:71: error: expected expression before ‘)’ token</div><div>FILE:71: error: expected expression before ‘)’ token</div><div>make[1]: *** [libraries/integer-gmp/mkGmpDerivedConstants/dist/build/mkGmpDerivedConstants.o] Error 1</div>
<div>make[1]: *** Waiting for unfinished jobs....</div></div><div>}}}</div><div><br></div><div>Some 1677 lines later, I see the line</div><div><br></div><div>> cp libraries/integer-gmp/gmp/gmpbuild/gmp.h libraries/integer-gmp/gmp/<br>
</div><div><br></div><div>Which is I suppose why make -j4 succeeds the second time around.</div><div><br></div><div>I also see</div><div><br></div><div>> libraries/integer-gmp/mkGmpDerivedConstants/<a href="http://ghc.mk:20/" target="_blank">ghc.mk:20</a>: libraries/integer-gmp/mkGmpDerivedConstants/dist/build/.depend.c_asm: No such file or directory</div>
<div><br></div><div>many lines above.</div><div><br></div><div>On Mon, Aug 5, 2013 at 9:26 PM, Kazu Yamamoto <span dir="ltr"><<a href="mailto:kazu@iij.ad.jp" target="_blank">kazu@iij.ad.jp</a>></span> wrote:<br></div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I'm using GHC head (32bit) on Mac. Recently, building GHC head<br>
stops:<br>
<br>
----<br>
% make maintainer-clean; perl boot; ./configure --prefix=/ghc-head; make -j3<br>
ranlib: file: .libs/libgmp.a(mp_clz_tab.o) has no symbols<br>
ranlib: file: .libs/libgmp.a(obprintf.o) has no symbols<br>
ranlib: file: .libs/libgmp.a(obvprintf.o) has no symbols<br>
ranlib: file: .libs/libgmp.a(obprntffuns.o) has no symbols<br>
ranlib: file: .libs/libgmp.a(repl-vsnprintf.o) has no symbols<br>
libtool: link: rm -fr .libs/libgmp.lax<br>
libtool: link: ( cd ".libs" && rm -f "<a href="http://libgmp.la" target="_blank">libgmp.la</a>" && cp -p "../<a href="http://libgmp.la" target="_blank">libgmp.la</a>" "<a href="http://libgmp.la" target="_blank">libgmp.la</a>" )<br>
cp libraries/integer-gmp/gmp/gmpbuild/gmp.h libraries/integer-gmp/gmp/<br>
cp libraries/integer-gmp/gmp/gmpbuild/.libs/libgmp.a libraries/integer-gmp/gmp/<br>
inplace/bin/mkdirhier libraries/integer-gmp/gmp/objs<br>
cd libraries/integer-gmp/gmp/objs && /usr/bin/ar x ../libgmp.a<br>
ranlib libraries/integer-gmp/gmp/libgmp.a<br>
ranlib: file: libraries/integer-gmp/gmp/libgmp.a(mp_clz_tab.o) has no symbols<br>
ranlib: file: libraries/integer-gmp/gmp/libgmp.a(obprintf.o) has no symbols<br>
ranlib: file: libraries/integer-gmp/gmp/libgmp.a(obvprintf.o) has no symbols<br>
ranlib: file: libraries/integer-gmp/gmp/libgmp.a(obprntffuns.o) has no symbols<br>
ranlib: file: libraries/integer-gmp/gmp/libgmp.a(repl-vsnprintf.o) has no symbols<br>
make: *** [all] Error 2<br>
%<br>
----<br>
<br>
One more "make -j3" finishes the building. I'm sure that this does not<br>
happen before.<br>
<br>
Are there any guys who get this problem?<br>
<br>
--Kazu<br>
<br>
_______________________________________________<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>
</blockquote></div><br></div></div>