compile failed when use tiarmclang 5.1.1 #312
Copy link
Copy link
Description
CMSIS_6
| #include "cmsis_clang.h" |
| #define __PROGRAM_START _start |
CMSIS_5
#define __PROGRAM_START _c_int00
compile failed when use CMSIS_6 but works fine with CMSIS_5
CMSIS_6 tell tiarmclang to use cmsis_clang.h, where __PROGRAM_START is defined as _start. However, tiarmclang actually uses _c_int00
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
mikisama commentedon Sep 1, 2026
I resolved this by modifying
startup_DEVICE.cahead of the#include "DEVICE.h"statement.JonatanAntoni commentedon Sep 1, 2026
@mikisama, for now I added the TI Clang specifics into the generic clang header file. Please double check if the minimal fix in #315 is sufficient for you on the short run. Longer term, we might need to think about addressing such c library details as an independent degree of freedom. I.e., we've already seen similar challenges when building with newlib, picolib, or others.
mikisama commentedon Sep 2, 2026
Hi, @JonatanAntoni
It’s fixed
I think CI can help solve this type of compile failed errors
Fix __PROGRAM_START definition for TI Arm Clang (tiarmclang) (#315)