<br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 8:02 PM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">>> > It is done. Then, I should copy this version on my image and then boot<br>
>> > the image with gem5. The<br>
>> > problem is when I try to run llvm-commands in gem5, they don't work and<br>
>> > said : "cannot execute binary file".<br>
>> What does "file" says on the binary?<br>
> when I use commands like : "#arm-linux-gnueabi-clang test.c -o test" or any<br>
> other commands like lli, clang++, ... the error occurs.<br>
</div>Sorry,  I won't be able to help you if you won't show the output as I requested.<br></blockquote><div><br>Alright, the attached file is a photo of two terminals. the left hand side is the error after I tried to cross-compile llvm with the mentioned command. And, the right one is the error when I just used --host and --target without considering the sys-root:<br>
../llvm/configure --host=arm-none-linux-gnueabi --target=arm-none-linux-<div id=":29">gnueabi --prefix=/path/to/install </div> <br> I hope it will help.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
> Could you tell me how did you cross-compiled LLVM to mingw32? I mean the<br>
> command which you used for. So, I can compare it with mine and maybe find<br>
> something useful!<br>
</div>Just straight --host / --target configure </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
PS: There is "Reply All" button, please reply to the list as well<br></blockquote><div>You're right, thank you. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
--<br>
With best regards, Anton Korobeynikov<br>
Faculty of Mathematics and Mechanics, Saint Petersburg State University<br>
</div></div></blockquote></div><br>Cheers<br>Negar<br>