[LLVMdev] Targeting ARM Cortex-a9 from x86_64 with clang

Renato Golin renato.golin at linaro.org
Wed Nov 27 06:34:31 PST 2013


On 27 November 2013 13:57, Rob Stewart <robstewart57 at gmail.com> wrote:
>> Hi Rod,
>
> I'm honoured. (But Rob is also OK) :-)

Haha! That was my best typo ever! ;)


> So on my Fedora box, I've installed packages gcc-arm-linux-gnu.x86_64
> and cross-binutils-common.noarch.

I'm not sure Clang understands "arm-linux-gnu" as a triple. The driver
is not the most sane code in Clang, so it might have holes in it that
won't make sense.

It is worth opening a new thread on cfe-dev@ discussing the possible
outcome of using arm-linux-gnu or arm-linux-androideabi as your triple
and get your toolchain to be detected correctly on Fedora.


> The -target that appears to be recognised by clang is `arm-none-eabi`.

That triple is normally used when targeting bare-metal ARM targets,
which I don't think is your case.

I can see from your output, all seem fine until...


> arm-none-eabi-gcc: fatal error: selected multilib '.' not installed

Normally, the problem with this is that you have libraries compiled
with hard-float and is trying to compile code with soft-float. But you
should focus on getting Clang to recognize your original triple first,
I think.

cheers,
--renato



More information about the llvm-dev mailing list