No clue.  I'll find out once I get on my computer.   I think Mebe because stage 1 has no ghci? Pure ignorant speculation mind you.  Please  be sure to test the fix once I put it on trac (I'll test too of course. <span></span>)<br>
<br>On Tuesday, November 26, 2013, Amos Robinson  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks so much, Carter.<br>
<br>
What I'm still confused about is this: I was able to build stage 1 and<br>
then build stage 2 using stage 1. However, if I try building anything<br>
with either stage, it won't link. How was it able to link stage 2?<br>
<br>
On Tue, Nov 26, 2013 at 4:27 PM, Carter Schonwald<br>
<<a href="javascript:;" onclick="_e(event, 'cvml', 'carter.schonwald@gmail.com')">carter.schonwald@gmail.com</a>> wrote:<br>
> I'll cook up a patch and post it to trac in the next hour.<br>
><br>
><br>
> On Tuesday, November 26, 2013, Carter Schonwald wrote:<br>
>><br>
>> It's because you're using GCC 4.2 on your Mac.  It's not in GCC till 4.3.<br>
>><br>
>> But should be cppd so that it's not used on x86 architectures so that this<br>
>> use doesn't happen<br>
>><br>
>> On Monday, November 25, 2013, Amos Robinson wrote:<br>
>>><br>
>>> Sorry for the noise, it turns out there's already a trac ticket:<br>
>>> <a href="https://ghc.haskell.org/trac/ghc/ticket/8561" target="_blank">https://ghc.haskell.org/trac/ghc/ticket/8561</a><br>
>>> (I didn't find it because I was searching for ___builtin… instead of<br>
>>> __builtin!)<br>
>>><br>
>>> On Tue, Nov 26, 2013 at 3:39 PM, Amos Robinson <<a href="javascript:;" onclick="_e(event, 'cvml', 'amos.robinson@gmail.com')">amos.robinson@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hi,<br>
>>> > I'm having trouble linking with head:<br>
>>> ><br>
>>> >> [1 of 1] Compiling Main             ( bindisttest/HelloWorld.lhs,<br>
>>> >> bindisttest/HelloWorld.o )<br>
>>> >> Linking bindisttest/HelloWorld ...<br>
>>> >> Undefined symbols for architecture x86_64:<br>
>>> >>   "___builtin___clear_cache", referenced from:<br>
>>> >>      _flushExec in libHSrts.a(Storage.o)<br>
>>> >> ld: symbol(s) not found for architecture x86_64<br>
>>> >> collect2: ld returned 1 exit status<br>
>>> ><br>
>>> > This is on OSX 10.8.5, where gcc --version gives me<br>
>>> >> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.<br>
>>> >> build 5658) (LLVM build 2336.11.00)<br>
>>> ><br>
>>> > I get the impression that this commit is related. Is it the case that<br>
>>> > Apple switched from gcc to clang recently? Could that be why<br>
>>> > ___builtin__clear_cache is missing?<br>
>>> ><br>
>>> > I'm sorry, I don't really know anything about the runtime system, so<br>
>>> > am kind of stuck.<br>
>>> ><br>
>>> ><br>
>>> --SNIP--<br>
>>> _______________________________________________<br>
>>> ghc-devs mailing list<br>
>>> <a href="javascript:;" onclick="_e(event, 'cvml', '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>