Awesome Renato! Thanks a bunch! I'll try it out and let you know! Best, ~Sumit.
On 26 April 2013 01:17, Renato Golin <renato.go...@linaro.org> wrote: > Hi Sumit, > > I think I've found it! > > You compiled to IR (.bc) by specifying hard-float, but when you convert it > to assembly (where the AAPCS will be lowered), you don't: > > [pocl] executing [/usr/lib/llvm-3.2/bin/llc -relocation-model=pic -o > /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.s > /tmp/pthread/test_as_type/1-1-1.0-0-0/parallel.bc] > > Later on you pass the hard-float argument to the assembler (clang, which > passes to as), but that's too late. > > If you want to compile in separate steps, you'll have to provide consistent > flags on each step, to make sure nothing is left behind. All tools, clang, > as, llc etc will have to have the same set of flags (or similar flags, if > they accept slightly different syntax). > > Hope that helps! > > --renato > > > On 25 April 2013 15:36, Sumit Semwal <sumit.sem...@linaro.org> wrote: >> >> Hi Renato! >> >> Apologies again for troubling you; attached is a log file from one of >> the builds I am doing (trying to get pocl working on chromebook) - I >> 'think' I have provided the right values for target etc, but maybe you >> could have a quick look to spot any quickly visible mismatches? >> >> Thanks a bunch! >> Best regards, >> ~Sumit. >> >> On 25 April 2013 16:37, Sumit Semwal <sumit.sem...@linaro.org> wrote: >> > On 25 April 2013 16:19, Renato Golin <renato.go...@linaro.org> wrote: >> >> On 23 April 2013 10:03, Sumit Semwal <sumit.sem...@linaro.org> wrote: >> >>> >> >>> Would you please have a look at it, and let me know if you spot >> >>> something >> >>> absolutely basic and idiotic? (sorry, and a n00b to llvm / clang world >> >>> !) >> >> >> >> >> >> I can't see anything wrong with it. >> >> >> >> What I suggest is to start investigating the IR files for clues >> >> (especially >> >> the target triple and the aapcs_vfp function attributes), the assembly >> >> files >> >> (for build attributes and function prologue) and the objects (for >> >> correctly >> >> linked libraries). >> >> >> >> If you use -v on all command lines (clang, gcc, g++, ld) you might spot >> >> what >> >> assumptions are being taken and what to do instead. >> >> >> >> cheers, >> >> --renato >> > Sure, Thanks Renato! >> > >> > >> > -- >> > Thanks and regards, >> > Sumit Semwal >> >> >> >> -- >> Thanks and regards, >> >> Sumit Semwal >> >> Linaro Kernel Engineer - Graphics working group >> >> Linaro.org │ Open source software for ARM SoCs >> >> Follow Linaro: Facebook | Twitter | Blog > > -- Thanks and regards, Sumit Semwal Linaro Kernel Engineer - Graphics working group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain