[cfe-dev] How to compile Clang for ARM Linux on x86_64 Linux?

Anton Smirnov dev at antonsmirnov.name
Sat Sep 28 13:41:20 PDT 2013


clang and clang++ are on path and i checked it running "clang" and
"clang++".
btw "clang++" is already symlinked to "clang". Is there any cmake log that
i can send to let you know more details?


2013/9/29 Renato Golin <renato.golin at linaro.org>

> On 28 September 2013 20:55, Anton Smirnov <dev at antonsmirnov.name> wrote:
>
>> -- The CXX compiler identification is unknown
>> -- Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++
>> -- Check for working CXX compiler: /usr/bin/arm-linux-gnueabihf-g++ --
>> broken
>> CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54
>> (message):
>>   The C++ compiler "/usr/bin/arm-linux-gnueabihf-g++" is not able to
>> compile
>>   a simple test program.
>>
>
> It looks like it didn't find clang++, but it did find clang, so maybe you
> need the symlink from clang++ to clang there to make it work. It should be
> there, no idea why it's not.
>
> arm-linux-gnueabihf-g++ will not be able to compile a simple test program
> because CMake will try to execute it and it won't run (it's ARM).
>
> --renato
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130929/618077e6/attachment.html>


More information about the cfe-dev mailing list