[llvm-dev] ARM5 build fails
ATTILI, SRINIVASA [AUTOSOL/SYSS/IN] via llvm-dev
llvm-dev at lists.llvm.org
Fri Jan 31 04:05:59 PST 2020
Hi,
I am porting FreeRTOS application from gcc toolchain to clang.
I get the files compiled, but the linker gives below error.
Building target: r5_app.elf
Invoking: ARM R5 clang linker
clang -v -Wl,-T -Wl,./src/lscript.ld -mcpu=cortex-r5 -mfpu=vfpv3-d16 --target=arm-none-eabi -L../R5_FreeRTOS_clang/psu_cortexr5/lib -L./lib -o "r5_app.elf" ./obj/echo.o ./obj/iic_phyreset.o ./obj/main.o -lfreertos -llwip4 -lmetal -lopenamp -lxil -lc -lm -lgcc -lgcov
clang version 8.0.0.1 (ssh://diabuild@stash.wrs.com:7999/llvm/clang.git 0a578b9ee67aa40c1e710f3ac9b5a740e2ef1bcd) (llvm/llvm.git 520c9a00874f1ffaf61274c3b7e86dd68697b9ec)
Target: arm-none-unknown-eabi
Thread model: posix
InstalledDir: C:\WindRiver_SR0620\compilers\llvm-8.0.0.1\WIN64\bin
"C:\\WindRiver_SR0620\\compilers\\llvm-8.0.0.1\\WIN64\\bin\\ld.lld" -T ./src/lscript.ld ./obj/echo.o ./obj/iic_phyreset.o ./obj/main.o -lfreertos -llwip4 -lmetal -lopenamp -lxil -lc -lm -lgcc -lgcov -Bstatic "-LC:\\WindRiver_SR0620\\compilers\\llvm-8.0.0.1\\WIN64\\lib\\clang\\8.0.0.1\\lib\\baremetal" -L../R5_FreeRTOS_clang/psu_cortexr5/lib -L./lib -lc -lm -lclang_rt.builtins-arm.a -o r5_app.elf
ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
clang: error: ld.lld command failed with exit code 1 (use -v to see invocation)
make: *** [r5_app.elf] Error 1
Makefile:86: recipe for target 'r5_app.elf' failed
Build Failed with JOBS=8 in Project 'R5_App_clang' (Process Exit Value was 2): 2020-01-31 17:31:53 (Elapsed Time: 00:08)
If this doesn't look like an obvious error, consider re-building with parallel builds turned OFF in the build console.
I request you please help me to fix this error.
Thank you,
Srinivasa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200131/1a036927/attachment.html>
More information about the llvm-dev
mailing list