<div dir="ltr">But I am running it on the host, as a kind of intermediate step in the cross-compilation, just to check if everything still works after the frontend step. Shouldn't it work then? I don't know much about how everything works yet, sorry if it's a silly question.<div><br></div><div>What I thought was also weird is that the exact same example works if I use the OpenMP/Clang fork (<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__clang-2Domp.github.io_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=yP6uVzMHdZhDYYZC_bN7T_oK5SR_DWX-HRZ2_HAOVqM&s=kzyRkhiP7GkdzRasQwVhscVcvJcRwf_vifNMMLo0UEI&e=">https://clang-omp.github.io/</a>), which I assumed would support, if anything, <i>less</i> targets, since it's a little behind (LLVM 3.5).</div><div><br></div><div>--</div><div>Débora.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 5:40 PM, Jim Grosbach <span dir="ltr"><<a href="mailto:grosbach@apple.com" target="_blank">grosbach@apple.com</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">s/pretty much/definitely/<div><br></div><div>Even then, “works” is too strong a word. Caveat emptor and all that.</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Jul 23, 2015, at 1:20 PM, Eric Christopher <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>> wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 23, 2015 at 10:31 AM Débora Setton Sanches <<a href="mailto:setton.debora@gmail.com" target="_blank">setton.debora@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">Is it normal/expected for `llc` to support a different set of targets</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">than `lli`?</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">I have a hello.ll on which this works:</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">$ llc -mtriple=armv7a-linux-</span><span style="font-size:12.8000001907349px">gnueabihf hello.ll</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"># OK, generates hello.s</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">But this doesn't:</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">$ lli -mtriple=armv7a-linux-</span><span style="font-size:12.8000001907349px">gnueabihf hello.ll</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"># lli: error creating EE: No available targets are compatible with</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">this triple, see -version for the available targets.</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">I'm using LLVM from the git mirror:</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">$ lli -version</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">LLVM (</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=u4_u6UfvGk27P9ktRFVrbnN5w6x_4XFkjdv-R90mfkM&s=S3BhSstRK0rNlNL1DaFmvkVutrhLzsIGTwv4Mkc2OvA&e=" rel="noreferrer" style="font-size:12.8000001907349px" target="_blank">http://llvm.org/</a><span style="font-size:12.8000001907349px">):</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> LLVM version 3.7.0svn</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> Optimized build.</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> Built Jun 19 2015 (17:35:44).</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> Default target: x86_64-unknown-linux-gnu</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px"> Host CPU: broadwell</span><br style="font-size:12.8000001907349px"><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">I thought they would both support the same targets...  Why isn't that the case?</span><br style="font-size:12.8000001907349px"><br></div></blockquote><div><br></div><div>It's not a simulator, it pretty much only works on the host.</div><div><br></div><div>-eric </div></div></div></div></div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div></div>