CMake build fails with `error: inline assembly requires more registers than available`
Closed this issue · 3 comments
LDong-Arm commented
Description of defect
The build command
mbed-tools compile -t ARM -m DISCO_L072CZ_LRWAN1
fails with
../../../../mbed-os/connectivity/mbedtls/source/bignum.c:1563:9: error: inline assembly requires more registers than available
MULADDC_INIT
^
Note: This failure happens when compiling Mbed TLS for any STM32L0 targets, with the Arm Compiler and mbed-tools.
Target(s) affected by this defect ?
DISCO_L072CZ_LRWAN1
Toolchain(s) (name and version) displaying this defect ?
Arm Compiler 6.14
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.9.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-tools: 7.8.0
How is this defect reproduced ?
Run the command in the description above.
ciarmcom commented
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3810
LDong-Arm commented
Same issue as Mbed-TLS/mbedtls#1077
The workaround in Mbed CLI 1 is define -DMULADDC_CANNOT_USE_R7
.
LDong-Arm commented