|
|||||||||||
|
Technical Support Support Resources
Product Information |
ARMCLANG: Issue using built-in ARMCLANG 6.9 in MDK 5.25preInformation in this knowledgebase article applies to:
SYMPTOMA project has the Project -> Options for Target -> Target tab - Use MicroLIB checked, but the linker does not link in all the microlib libraries. Symptoms include:
This happens when using the
The same project with the same settings doesn't have this issue using ARMCLANG v6.7. What has caused such an issue using ARMCLANG v6.9 and how can I resolve it? CAUSEIn the ARMCLANG v6.9 folder installed by MDK v5.25 preview, such as C:\Keil_525pre\ARM\ARMCLANG\lib\libcxx\ , there are 428 C library files, which shouldn't be in the libcxx C++ library folder. Due to the way that armlink searches for symbols in libraries to resolve them, the wrong C library files inside this libcxx folder might be linked into your program, instead of the right C library files located in C:\Keil_525pre\ARM\ARMCLANG\lib\armlib\ This can cause wrong libraries or unused libraries to be linked into your program. RESOLUTION
Alternatively you can go to this libcxx directory, such as C:\Keil_525pre\ARM\ARMCLANG\lib\libcxx\ , and then run the following windows batch commands from there to delete these 428 superfluous files. attrib +r lib* del /q * attrib -r lib* Afterwards, there should be a total of 1665 files remaining in this folder, whose filesnames all start with lib*. STATUSThis issue only happens when the built-in ARMCLANG v6.9 in MDK v5.25 preview is used. If you download ARMCLANG v6.9 from developer.arm.com and integrate it into MDK, you are not affected by this issue. MORE INFORMATION
Last Reviewed: Thursday, November 26, 2020 | ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.