<div><div dir="auto">If you build ghc on your Mac, unless you enable intree gmp in the <a href="http://build.mk">build.mk</a> file, it will select a system install of gmp. One way to avoid this is to build your ghc with intree enabled. Also makes it easier to share binaries across Mac users :)</div><br><div class="gmail_quote"><div>On Thu, Jun 15, 2017 at 9:32 AM Richard Eisenberg <<a href="mailto:rae@cs.brynmawr.edu">rae@cs.brynmawr.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>With deep gratitude to Ben and Moritz, who helped me on IRC, I’ve figured this out. Somehow my gmp install was broken -- a `brew install gmp` fixes it. What’s very bizarre is that the brokenness happened on two different computers, so it’s not terribly hard to do. Of course, both computers are maintained by me, so I may have done the same strange step twice.</div><div><br></div><div>Posting a ticket seems unlikely to be helpful, so I’ll park this issue for now, having solved it. But if anyone ever sees this again, the answer is `brew install gmp`.</div><div><br></div><div>Thanks,</div><div>Richard</div></div><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Jun 15, 2017, at 4:47 AM, Simon Marlow <<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a>> wrote:</div><br class="m_8844788398515711743Apple-interchange-newline"><div><div>No idea what this is, but just to point out that the continuous build succeeded on OS X at the same revision that you have: <a href="https://phabricator.haskell.org/B16186" target="_blank">https://phabricator.haskell.org/B16186</a>, so this is at least not a universal failure. Something specific to the version of GMP, or some other external tool/library?</div><div class="gmail_extra"><br><div class="gmail_quote">On 14 June 2017 at 14:55, Richard Eisenberg <span><<a href="mailto:rae@cs.brynmawr.edu" target="_blank">rae@cs.brynmawr.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi devs,<div><br></div><div>It seems every test run through the external interpreter is failing for me on a Mac:</div><div><br></div><div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">=====> TH_mkName(ext-interp) 1 of 1 [0, 0, 0]</span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">cd "./TH_mkName.run" && "/Users/rae/ghc/ghc/inplace/test spaces/ghc-stage2" -c TH_mkName.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output -XTemplateHaskell -package template-haskell -fexternal-interpreter -v0</span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Compile failed (exit code 1) errors were:</span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ghc-iserv.bin: </span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">lookupSymbol failed in relocateSection (RELOC_GOT)</span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">/Users/rae/ghc/ghc/libraries/integer-gmp/dist-install/build/HSinteger-gmp-1.0.0.1.o: unknown symbol `___gmp_rands'</span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">ghc-stage2: unable to load package `integer-gmp-1.0.0.1'</span></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0);min-height:11px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-size:10px;line-height:normal;font-family:Menlo;color:rgb(245,245,245);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">*** unexpected failure for TH_mkName(ext-interp)</span></div></div><div><br></div><div>Any advice? My most recent commit from master is ef07010cf4f480d9f595a71cf5b009884522a75e from Wed Jun 7.</div><div><br></div><div>I'm on IRC today if you want to iterate that way.</div><div><br></div><div>Thanks!</div><span class="m_8844788398515711743HOEnZb"><font color="#888888"><div>Richard</div></font></span></div><br>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>
</div></blockquote></div><br></div>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div>