napperley
03/14/2023, 10:52 PM--gcc-toolchain
argument, which is essential for connecting the tool chain. Without it issues like the following occur:
> Task :kotlin-native:runtime:rp2040CommonGc FAILED
clang-11: error: argument unused during compilation: '--gcc-toolchain=/home/napperley/.konan/dependencies/arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi' [-Werror,-Wunused-command-line-argument]
Plan B is to use a LLVM based tool chain (the official ARM Embedded tool chain - https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm ), however unlike the GCC one it requires manual configuration on the tool chain side, and is missing some parts to make it a complete tool chain.
Is there an example in the Kotlin code base where a third party LLVM based tool chain is used for a K/N target?napperley
03/14/2023, 11:56 PM--target=armv6m-none-eabi -mfloat-abi=soft -march=armv6m
-fuse-ld=lld
-fno-exceptions
-fno-rtti
--sysroot <CFGDIR>/../lib/clang-runtimes/armv6m_soft_nofp
<CFGDIR>/../lib/clang-runtimes/armv6m_soft_nofp/lib/crt0.o
napperley
03/14/2023, 11:59 PMclang --config armv6m_soft_nofp_semihost.cfg -T picolibc.ld -o example example.c
napperley
03/15/2023, 12:04 AMAndrey
03/22/2023, 5:52 PMnapperley
03/22/2023, 10:38 PMAndrey
03/23/2023, 7:11 AMAndrey
04/25/2023, 9:25 AM