[llvm-dev] Compiling compiler-rt for baremetal CortexM on Ubuntu Linux

Xia Zhou via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 7 06:39:29 PDT 2019


Hello,
I want to build LLVM/Compiler-rt for baremetal targets like Cortex-M3. By
adopting CMake options from
http://llvm.1065342.n5.nabble.com/llvm-dev-Compiling-for-baremetal-ARMv4-on-Ubuntu-Linux-tp124226p124500.html,
I can only build "libclang_rt.builtins-x86_64.a" in lib/linux, but what I
want to build is "libclang_rt.builtins.arm.a".

My CMake options are:
cmake -G Ninja  DBAREMETAL_ARMV6M_SYSROOT=${ARMEABI5GCC}
-DBAREMETAL_ARMV7M_SYSROOT=${ARMEABI5GCC}
-DBAREMETAL_ARMV7EM_SYSROOT=${ARMEABI5GCC} -DCMAKE_BUILD_TYPE=Release
-C/home/llvm-project/clang/cmake/caches/BaremetalARM.cmake
/home/llvm-project/llvm/runtimes/compiler-rt

with
echo $ARMEABI5GCC
/home/gcc-arm-none-eabi-5_4-2016q3/arm-none-eabi

Does anyone know how to fix this problem?
Thanks in advance!
Xia Zhou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190807/b3184e78/attachment.html>


More information about the llvm-dev mailing list