mbed-os-example-mesh-minimal fails to build against Mbed OS master when using command:
mbed compile -t GCC_ARM -m KW41Z --app-config ./configs/mesh_6lowpan.json
The build produces error:
Link: mbed-os-example-mesh-minimal
BUILD/KW41Z/GCC_ARM/mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/fsl_common.o: In function `InstallIRQHandler':
/home/arto/github/mbed-os-example-mesh-minimal/./mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/fsl_common.c:63: undefined reference to `__Vectors'
collect2: error: ld returned 1 exit status
[ERROR] BUILD/KW41Z/GCC_ARM/mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/fsl_common.o: In function `InstallIRQHandler':
/home/arto/github/mbed-os-example-mesh-minimal/./mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/fsl_common.c:63: undefined reference to `__Vectors'
collect2: error: ld returned 1 exit status
The application builds successfully with ARM toolchain.
KW41Z
GCC_ARM
165be79392ae7b1bee4388d2bc8ed8281978f07c
@artokin thank you for raising this issue.Please take a look at the following comments:
We cannot automatically identify a release based on the version of Mbed OS that you have provided.
Please provide either a single valid sha of the form #abcde12 or #3b8265d70af32261311a06e423ca33434d8d80de
or a single valid release tag of the form mbed-os-x.y.z .
E.g. '165be79392ae7b1bee4388d2bc8ed8281978f07c' has not been matched as a valid tag or sha.It would help if you could also specify the versions of any tools you are using?
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered.
Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.
Note this seems a regression introduced in Mbed 6.
Mbed OS 5.15.3 compiles fine with GCC_ARM.
This PR broke it https://github.com/ARMmbed/mbed-os/pull/12949, updating CMSIS files. I fixed some breakages we found but this one was not caught. The simple example/tests passed for this target. 馃敟
This comes from CMSIS files, there is:
#ifndef __VECTOR_TABLE
#define __VECTOR_TABLE __Vectors
#endif
Using __name in CMSIS common header and not expecting a clash with other already supported CMSIS MCUs 馃檮 As this symbol is only for GCC ARM, it passes with ARMCC or IAR.
I'll look at this today how to fix it. Thanks for the report.
Fix proposed in #13064
I was able to reproduce and the fix should resolve this.