Juan Carlos Martinez Santos
2009-Jun-30 17:18 UTC
[LLVMdev] Generatin code for an ARM-LINUX machine
Thanks Misha, However, I could not find the crosstool. Could you please check the name of the script? Regards, Juan Carlos On Mon, Jun 29, 2009 at 5:23 PM, Misha Brukman <brukman at gmail.com> wrote:> I have not used llvmc to build ARM binaries, but llvm-gcc does work.There's > a script to build llvm-gcc x86 -> ARM cross-compiler in > llvm/utils/crosstool/ARM/ . > > 2009/6/29 Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com> > >> I am using the below configuration: >> >> ./configure --with-llvmgccdir=/home/jcmartin78/LLVM/llvm-gcc4.2 >> --prefix=/home/jcmartin78/local --enable-optimized=1 --enable-debug-runtime >> --enable-jit --enable-targets=arm --target=arm >> >> When I use LLVMC to compile a simple program I get this: >> >> $ llvmc hello.c >> llc: error auto-selecting target for module 'No available targets are >> compatible with this module'. Please use the -march option to explicitly >> pick a target. >> >> Using the -march options, I get this: >> >> $ llvmc -march=arm hello.c >> hello.c:1: error: bad value (arm) for -march= switch >> hello.c:1: error: bad value (arm) for -mtune= switch >> >> Somebody has an idea what is wrong in my procedure? I am using a x86-linux >> machine and I want to generate code for an arm-linux machine (also, I am >> using the binutils 2.19 to build my cross-compiler). >> >> -- >> Juan Carlos >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- Juan Carlos MartÃnez Santos 242 Foster Drive Apt H Colonial Townhouse Apartments Willimantic, CT 06226-1538 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090630/dab81a9b/attachment.html>
llvm/utils/crosstool/ARM/build-install-linux.sh On Tue, Jun 30, 2009 at 11:18 AM, Juan Carlos Martinez Santos < juanc.martinez.santos at gmail.com> wrote:> Thanks Misha, > > However, I could not find the crosstool. Could you please check the name of > the script? > > Regards, > > Juan Carlos > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090630/c190662f/attachment.html>
Juan Carlos Martinez Santos
2009-Jun-30 19:17 UTC
[LLVMdev] Generatin code for an ARM-LINUX machine
Thanks John, I just realized that I am not working on the same "branch" of LLVM. Looking the latest or the newest version I saw the folder with the script, but I did not see a README file. I ran the script, and I get: ********** chown: cannot access `/usr/local/codesourcery': No such file or directory ********** Therefore my question is if the script depends on others folders (or files) that maybe are not in the 2.5 version. Thanks in advance, Juan Carlos On Tue, Jun 30, 2009 at 1:32 PM, John Mosby <ojomojo at gmail.com> wrote:> llvm/utils/crosstool/ARM/build-install-linux.sh > > > On Tue, Jun 30, 2009 at 11:18 AM, Juan Carlos Martinez Santos < > juanc.martinez.santos at gmail.com> wrote: > >> Thanks Misha, >> >> However, I could not find the crosstool. Could you please check the name >> of the script? >> >> Regards, >> >> Juan Carlos >> >> > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- Juan Carlos MartÃnez Santos 242 Foster Drive Apt H Colonial Townhouse Apartments Willimantic, CT 06226-1538 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090630/eb240b64/attachment.html>