<br><div class="gmail_quote">On Thu, May 28, 2009 at 1:57 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></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;">
<div class="im">On Thu, May 28, 2009 at 1:36 PM, Jay Bone<<a href="mailto:jbonedev@gmail.com">jbonedev@gmail.com</a>> wrote:<br>
><br>
><br>
> On Thu, May 28, 2009 at 1:18 PM, Eli Friedman <<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>><br>
> wrote:<br>
</div><div class="im">>> Probably clang is using the wrong target triple; try setting CLANG to<br>
>> "clang -ccc-host-triple arm-apple-darwin"<br>
>><br>
>> -Eli<br>
><br>
><br>
> Adding this to my Makefile<br>
> CLANG='clang -ccc-host-triple arm-apple-darwin'<br>
> (Tried with and without single quotes if that matters)<br>
><br>
> I get<br>
><br>
> cannot find 'clang-cc' in 'clang' command<br>
> make: *** [GridRow.o] Error 9<br>
<br>
</div>Ah, bleh, I didn't actually test this before I suggested it. Try r72538.<br>
<font color="#888888"><br></font></blockquote><div><br>So I've fixed my header problems (I think) by supplying scan-build with --use-cc to point to my cross compiler, and I've hacked clang/lib/Frontend/InitHeaderSearch.cpp to remove the system default paths and then AddPath() paths to my alternate headers used by my cross compiler which was built with --with-sysroot.<br>
<br>I'm still stuck on this <br> #error This fenv header and set of APIs is intended for the ARM (with VFP) architecture only. <br><br>Setting CLANG to<br>CLANG=clang -ccc-host-triple arm-apple-darwin<br>Gives me the above error:<br>
cannot find 'clang-cc' in 'clang' command<br><br>Trying the older revision r72538.did not help solve the problem.<br><br>Is there some way I could hack the source directly to force the host triple to arm-apple-darwin? Where would I do that?<br>
Can I hard code this directly in Driver.cpp<br>const HostInfo *Driver::GetHostInfo(const char *TripleStr)<br><br><br>Thanks<br><br>-J<br><br><br><br><br><br><br><br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888">
-Eli<br>
</font></blockquote></div><br>