salvatore benedetto
2012-Jul-30 08:14 UTC
[LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
On Mon, Jul 30, 2012 at 3:51 AM, Gordon Keiser <gkeiser at arxan.com> wrote:> Making a symlink to clang in the same directory as the GCC / binutils (I'll call it $ARM_BIN) called > > arm-none-linux-gnueabi-clang (and one with clang++ too) > > and another link in the $ARM_BIN/../lib directory to clang directory located under clang's lib (for includes) > should be enough.I'm sorry, I should have been more clear. I don't just want to get right of the option itself, I want not to have the need to a have a GCC cross-toolchain around. I did download and cross compile binutils myself. I'd like llvm to use that by default. Is that possible? Thanks, Salvatore
Renato Golin
2012-Jul-30 08:27 UTC
[LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
On 30 July 2012 09:14, salvatore benedetto <salvatore.benedetto at gmail.com> wrote:> I'm sorry, I should have been more clear. I don't just want to get > right of the option itself, I want not to > have the need to a have a GCC cross-toolchain around.That requires a bit more than just compiling binutils. You'll need a working linker and a perfect interaction between run-time libraries and compiler generated code (read exception handling, RTTI, etc), which LLVM hasn't. The compiler-rt project is aiming to fix the latter, but not too close to achieving it yet, I'm afraid. I'm not sure there is a project (or the desire) to implement a full linker for multiple platforms. -- cheers, --renato http://systemcall.org/
salvatore benedetto
2012-Jul-30 10:45 UTC
[LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
On Mon, Jul 30, 2012 at 10:27 AM, Renato Golin <rengolin at systemcall.org> wrote:> On 30 July 2012 09:14, salvatore benedetto > <salvatore.benedetto at gmail.com> wrote: >> I'm sorry, I should have been more clear. I don't just want to get >> right of the option itself, I want not to >> have the need to a have a GCC cross-toolchain around. > > That requires a bit more than just compiling binutils. You'll need a > working linker and a perfect interaction between run-time libraries > and compiler generated code (read exception handling, RTTI, etc), > which LLVM hasn't.I'm not sure what you mean by a working linker, as that comes with the binutils. As for the run-time libraries, I know that you mean, I just forgot to also add that for my current project I don't need any of them. :-) I don't plan to link either libc or libcxx. So I expect that to be achievable. Thanks, S.
Maybe Matching Threads
- [LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
- [LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
- [LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
- [LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
- [LLVMdev] Setting up a cross-compiler for cortex-m3