I have only a Tip, because I work on Windows 10 and I haven’t this issue. If not help, sorry for spam
If you already have an another application (Keil or something) where is also installed/used same tool, then is a chance there is a collision between versions.
I had an old Git app already installed and after an update of the MbedStudio, where was probably instaled new version of the Git app, I was unable to import from github, until I uninstaled the old git version.
The Git was probably called from ProgramFiles via a system path, instead of from folders for MbedStudio. That issue (about Git) was fixed in Version 0.8.0 of MbedStudio.
We have occasionally seen this issue, which as the error suggests seems to be due to the compiler licensing. The Arm Compiler team are aware of it, but it is challenging to reproduce, so if you have any additional information that might help, please email studio@mbed.com and we’ll pass it on.
I’ve run into this error too and plan to send a bug report email to the address listed above (thank you, @JoeA).
For reference sake, here’s the error I’m seeing:
Building project ep-mbed-os-example-pelion (EP_AGORA, ARMC6)
Scan: ep-mbed-os-example-pelion
Using ROM regions bootloader, header, application in this build.
Region bootloader: size 0x8000, offset 0x0
Region header: size 0x70, offset 0x10000
Region application: size 0xefc00, offset 0x10400
Compile [ 5.7%]: mbed_stats_helper.c
Compile [ 5.8%]: pal_rtos.c
[ERROR] armclang: error: System clock tampering detected. License checkout will fail.
armclang: error: Failed to check out a license.
armclang: note:
Information about this error is available at: http://ds.arm.com/support/lic56/m1004
General licensing information is available at: http://ds.arm.com/support/licensing/
If you need further help, provide this complete error report to your supplier or license.support@arm.com.
- ARMLMD_LICENSE_FILE: '/tmp/.mount_mbed-splW2eh/tools-config/ac6-license.dat'
- LM_LICENSE_FILE: unset
- ARM_PRODUCT_DEF: unset
- ARM_PRODUCT_PATH: unset
- ARM_TOOL_VARIANT: unset
- Product location: /home/trowbridgec/.config/Mbed Studio/mbed-studio-tools/ac6/sw/mappings
- Toolchain location: /home/trowbridgec/.config/Mbed Studio/mbed-studio-tools/ac6/bin
- Selected tool variant: product
armclang: note:
- Checkout feature: mbed_armcompiler
- Feature version: 5.0202002
- Flex error code: -1004
Product: ARM Compiler 6.14 for Mbed Studio
Component: ARM Compiler 6.14
Tool: armclang [5db06c00]
armclang: error: ARM Compiler does not support '-mcpu=cortex-m4'
This same problem recently resurfaced. The last time it happened was 6 months ago, then I rebooted several times, the problem went away (I could do ‘clean build’ with no errors.) Now this error has returned. I switched to GCC Embedded Compiler by adding a external-tools.json file and installing GNU Arm Embedded Toolchain\10 2020-q4-major, but ARMC6 compiler always invoked. Any solution so far ? I maybe lockout from using mbed studio like others.
Rgds,
Glennon
[ERROR] armclang: error: System clock tampering detected. License checkout will fail. armclang: error: Failed to check out a license.
armclang: note:
Checkout feature: mbed_armcompiler
Feature version: 5.0202010
Flex error code: -1004
Product: ARM Compiler 6.15 for Mbed Studio
Component: ARM Compiler 6.15
Tool: armclang [5dd79400]
armclang: error: ARM Compiler does not support ‘-mcpu=cortex-m3’
Yes, searching for files with an older mdate and removing them. One of the files was the ARM cache file which indicates tampering. I don’t recall which file it was. Sorry no more details available.
Regards Helmut