Hi,
I'm trying to build my project using ARMCC and CMake but I'm having difficulties with the linking step.
The project is building fine with ARM-GCC but when I tried to build it with ARMCC the linker complained about the following error:
Fatal error: L3900U: Unrecognized option '-L/(path to my library)/my_library'.
What I understand is that the "-L" option is not a valid option for armlink but I'm not sure how to fix it.
I created the separate toolchain file for ARMCC and I can build the project successfully but can't link it. Any help would be extremely appreciated.
I'm using Ubuntu with CMake version cmake version 3.21.3 and Component: Arm Compiler for Embedded FuSa 6.16.1.0 (dev drop 0).
Thanks in advance
Hi Aleksa,
Sorry, I'm not personally very familiar with constructing cmake projects, however there are many examples that do use cmake with the Arm Compiler (search for Arm Total Solutions or the Ethos-U Evaluation Kit) which may give you a usable example to work from.
I did write this article a while ago on general advise on moving from gcc to the Arm Compiler, but does not address the specific issue raised here.https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/migrate-to-arm-compiler-6-from-gcc
Just a quick update. I think that the problem was that in my case