[cfe-dev] How to compile Clang for ARM Linux on x86_64 Linux?
Renato Golin
renato.golin at linaro.org
Sat Sep 28 13:30:54 PDT 2013
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/20130928/868e9736/attachment.html>
More information about the cfe-dev
mailing list