Hello, i am trying to create a LLVM stack to cross compile c code targeting the xilinx microblaze. I built LLVM configured with target=microblaze however cland doesn't like it. When i try to emit llvm code i get the following error: unknown target triple 'microblaze-unknown-none', please use -triple or -arch How should i configure my LLVM stack and then how should i run the tools to produce microblaze-elf? Thank you Foivos
Eli Friedman
2012-Jun-26 22:27 UTC
[LLVMdev] How to make a cross compiler for xilinx microblaze
On Tue, Jun 26, 2012 at 8:42 AM, Fivos <fivosz at gmail.com> wrote:> Hello, > > i am trying to create a LLVM stack to cross compile c code targeting the > xilinx microblaze. > > I built LLVM configured with target=microblaze however cland doesn't > like it. When i try to emit llvm code i get the following > error: unknown target triple 'microblaze-unknown-none', please use > -triple or -arch > > How should i configure my LLVM stack and then how should i run the tools > to produce microblaze-elf?Try "mblaze-elf". -Eli
Jim Grosbach
2012-Jun-26 22:27 UTC
[LLVMdev] How to make a cross compiler for xilinx microblaze
Hi Fivos, LLVM refers to the target as "mblaze" for -target. -Jim On Jun 26, 2012, at 8:42 AM, Fivos <fivosz at gmail.com> wrote:> Hello, > > i am trying to create a LLVM stack to cross compile c code targeting the > xilinx microblaze. > > I built LLVM configured with target=microblaze however cland doesn't > like it. When i try to emit llvm code i get the following > error: unknown target triple 'microblaze-unknown-none', please use > -triple or -arch > > How should i configure my LLVM stack and then how should i run the tools > to produce microblaze-elf? > > Thank you > Foivos > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Foivos Zakkak
2012-Jun-27 12:25 UTC
[LLVMdev] How to make a cross compiler for xilinx microblaze
conmfigure does not accept mblaze nor mblaze-elf as target. checking target system type... Invalid configuration `mblaze': machine `mblaze' not recognized configure: error: /bin/bash ../../spare/llvm/autoconf/config.sub mblaze failed However with microblaze it proceeds fine. But when i try to use clang i get: clang: error: 'microblaze-unknown-none': unable to pass LLVM bit-code files to linker if i give mblaze as the target it still fails with: clang: error: 'mblaze': unable to pass LLVM bit-code files to linker I also built LLVM without giving a target to the configuration and it still gives clang: error: 'mblaze': unable to pass LLVM bit-code files to linker Foivos On 06/27/2012 01:27 AM, Jim Grosbach wrote:> Hi Fivos, > > LLVM refers to the target as "mblaze" for -target. > > -Jim > > > On Jun 26, 2012, at 8:42 AM, Fivos <fivosz at gmail.com> wrote: > >> Hello, >> >> i am trying to create a LLVM stack to cross compile c code targeting the >> xilinx microblaze. >> >> I built LLVM configured with target=microblaze however cland doesn't >> like it. When i try to emit llvm code i get the following >> error: unknown target triple 'microblaze-unknown-none', please use >> -triple or -arch >> >> How should i configure my LLVM stack and then how should i run the tools >> to produce microblaze-elf? >> >> Thank you >> Foivos >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >