<div dir="ltr">On Sun, Aug 18, 2013 at 7:48 AM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Tinti,<br>
<div class="im"><br>
> Instructions: <a href="http://llvm.linuxfoundation.org/index.php/Quick_Start_Guide" target="_blank">http://llvm.linuxfoundation.org/index.php/Quick_Start_Guide</a><br>
><br>
> Fell free to ask any question concerning it. I can provide help on dealing<br>
> with any problem.<br>
<br>
</div>I gave it a quick try, and discovered multiple build problems,<br>
starting with it not passing "-target arm-none-linux-gnueabi" to the<br>
compiler invocation, passing through the differences between gnu89 and<br>
c99 on "inline", and finishing at it not applying its own patches to<br>
the kernel.<br>
<br>
I gave up at that point.<br>
<div class="im"><br></div></blockquote><div><br></div><div>I will double check it with Behan. But did you succeed in building a vexpress image?</div><div>Can you please run "make build-dep"? If there is any output you should install the packages.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
> We have compared it too. But it is HUGE, almost 80 MB of dissasm for each vmlinux file.<br>
<br>
</div>It's possible this is a real barrier, but I'd expect the actual<br>
differences to be small. Is there any chance you could upload the two<br>
vmlinux files somewhere? No need to disassemble or even decompress<br>
them.<br></blockquote><div><br></div><div>I have great news about this. Yesterday I found out that there are only two files that are</div><div>causing the trouble. They are these two:</div><div><br></div><div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
<div>kernel/time/timekeeping.o </div><div>kernel/time.o</div></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"></div></div><div><br></div><div>The kernel works if I mix those two .o files from clang without Weiming's patch with all</div>
<div>other files from clang with Weiming's patch.</div><div><br></div><div>Please find attached the zip file containing the assembly from both. "working" means</div><div>without the patch. "notworking" means with the patch (from the clang HEAD).</div>
<div><br></div><div>Another good resources about what could the the problem are those:</div><div><br></div><div>* <a href="http://lxr.free-electrons.com/source/arch/arm/include/asm/div64.h?a=arm#L59">http://lxr.free-electrons.com/source/arch/arm/include/asm/div64.h?a=arm#L59</a><br>
</div><div>* <a href="http://lxr.free-electrons.com/source/arch/arm/include/asm/compiler.h?a=arm#L12">http://lxr.free-electrons.com/source/arch/arm/include/asm/compiler.h?a=arm#L12</a><br></div><div>* <a href="http://lxr.free-electrons.com/source/arch/arm/lib/div64.S">http://lxr.free-electrons.com/source/arch/arm/lib/div64.S</a></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Basically, I'm certainly willing to take a look, but don't want to<br>
wrestle foreign build systems into submission to do so.<br></blockquote><div><br></div><div>Sure. Maybe there is something missing in our documentation but for us it works</div><div>quite well. I will check.</div><div><br>
</div><div>Do you still need the 80 MB files? I think compressed they will be much smaller but</div><div>I don't think they are worth anymore.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Cheers.<br>
<span class=""><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br>Tinti<br clear="all"><div><br></div>-- <br><div dir="ltr">Simplicity is the ultimate sophistication<br></div>
</div></div>