Hi, I want to use LLVM to compile a ARM-CortexM0 project on windows. But LLVM can't output ELF file on windows. An assert was thrown from LLVM. What can I do now? Thanks! Steven.Q -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140512/bbba49ea/attachment.html>
Hi Steven,> I want to use LLVM to compile a ARM-CortexM0 project on windows. But LLVM > can't output ELF file on windows. An assert was thrown from LLVM. What can > I do now? Thanks!It sounds like you're using the wrong triple. Even on Windows you should be able to output ELF if you compile with (say) "clang -target arm-none-eabi". Cheers. Tim.
On 12 May 2014 15:11, Tim Northover <t.p.northover at gmail.com> wrote:> It sounds like you're using the wrong triple. Even on Windows you > should be able to output ELF if you compile with (say) "clang -target > arm-none-eabi".Or not using a triple at all. Windows on ARM support is coming along, I bet it defaults to WoA and outputs COFF or whatever. cheers, --renato
Seemingly Similar Threads
- Compilation issue "unsupported relocation on symbol" with clang 3.7.1
- [LLVMdev] A question to LLVM for ARMv6
- [LLVMdev] Generate code for ARM Cortex m0, m3, and m4.
- [ARM] Should Use Load and Store with Register Offset
- Cross compiling for Baremetal ARM without using GCC