FlexNet licensing error -5: The provided license does not enable these tools
Summary
An Arm tool reports an error containing one or more of the following:
Flex error code: -5
FlexNet licensing error -5
The provided license does not enable these tools.
What causes this error, and how do I solve it?
Answer
The following table lists possible causes and resolutions for the issue:
Cause | Resolution |
A corrupted license file. For example, you have edited part of a license file that should not be edited. |
Download a fresh copy of your license file from your account on the Arm Licensing Portal. Then follow the instructions in the KBA for the installation of a node-locked license. |
Using a product feature that is an optional add-on, for which you do not have a license. For example, you may have unintentionally downloaded the wrong license. |
Review your license to confirm you have downloaded the correct one. If you review and do require a new license you can contact Arm directly or obtain a quote through one of our trusted distributors. |
Having a license that is for a different product than the one you want to use. |
Contact Arm directly or obtain a quote through one of our trusted distributors. |
Installing a different product to the one you have licensed. For example, you have purchased a license to 'Arm Compiler 6.6 for Functional Safety' and installed the original 'Arm Compiler 6.6' release from https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6. When you invoke the compiler, it reports: armclang.exe: error: Failed to check out a license. The provided license does not enable these tools. Information about this error is available at: http://ds.arm.com/support/lic56/m5 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: '<path-to-your-license>' - LM_LICENSE_FILE: unset - ARM_TOOL_VARIANT: unset - ARM_PRODUCT_PATH: unset - Product location: C:\Program Files\ARMCompiler6.6\sw\mappings - Toolchain location: C:\Program Files\ARMCompiler6.6\lib\tt_default\bin - Selected tool variant: product - Checkout feature: compiler5 - Feature version: 5.0201611 - Flex error code: -5 Product: ARM Compiler 6.6 Professional Component: ARM Compiler 6.6 Tool: armclang [5c77f600] Your license provides the 'compiler_em66' feature, but this version of Arm Compiler 6.6 is trying to checkout the 'compiler5' feature. The 'compiler_em66' feature is specific to the qualified 'Arm Compiler 6.6 for Functional Safety' branch, meaning releases from 'Arm Compiler 6.6.1' onwards. |
Uninstall the incorrect product, and then install the correct product. For example, the qualified 'Arm Compiler 6.6.x' releases are available from https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/arm-compiler-for-functional-safety
|
The software on your license server (lmgrd and/or armlmd) is too old for your tool. |
Install the latest version of the FlexNet license server software by visiting the Download FlexNet Publisher page. |