[llvm-dev] build issue in llvm-clang cross tool chain for arm target
Renato Golin via llvm-dev
llvm-dev at lists.llvm.org
Sun May 8 07:22:12 PDT 2016
On 6 May 2016 at 18:28, Balasaheb Dabhade via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> -DLLVM_TARGETS_TO_BUILD=ARM -DCMAKE_CXX_FLAGS='-target
> armv7a-linux-gnueabihf -mcpu=cortex-a9
> -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/
> -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name
> arm-linux-gnueabihf-gcc'
I can think of two things:
1. You're using a triple that is different from your gcc name:
'-target armv7a-linux-gnueabihf'
vs
'-ccc-gcc-name arm-linux-gnueabihf-gcc'
You should use the target as "arm-linux-gnueabihf".
2. You're not including the GCC headers or libraries.
You need to find where GCC keeps its libraries (normally
/usr/lib/gcc/arm-linux-gnueabihf) and headers (if necessary).
In your case, just adding -L"where your gcc libs are" should be enough.
cheers,
--renato
More information about the llvm-dev
mailing list