Skip to content

Build failure in exported mbed-os-example-mesh-minimal in KEIL uvision5 #10227

@artokin

Description

@artokin

Description

Exported example application https://github.com/ARMmbed/mbed-os-example-mesh-minimal fails to build using Keil uvision5.

Steps to reproduce:

  1. Install Keil uvision5 that supports ARMC6 compiler >= 6.11
  2. Clone https://github.com/ARMmbed/mbed-os-example-mesh-minimal
  3. Run mbed deploy
  4. Change mbed-os revision to master or mbed-os-5.12.0-rc4
  5. Export project mbed export -i uvision6 -m k64f
  6. In Keil uvision5 Project menu run Build Target command
  7. Observe results

Expected result:

  • Application can be build successfully

Actual result:
Build fails with lot of errors:
".\BUILD\mbed-os-example-mesh-minimal.axf" - 1117 Error(s), 89 Warning(s).

There seems to be clashing file mbed-os/features/storage/FEATURE_STORAGE/cfstore\version that is accidentally build in:
mbed-os/drivers/AnalogIn.cpp(18): warning: In file included from... mbed-os\drivers/AnalogIn.h(25): warning: In file included from... mbed-os\platform/SingletonPtr.h(29): warning: In file included from... C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\libcxx\new(84): warning: In file included from... C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\libcxx\exception(82): warning: In file included from... C:\Keil_v5\ARM\ARMCLANG\Bin\..\include\libcxx\type_traits(406): warning: In file included from... mbed-os/features/storage/FEATURE_STORAGE/cfstore\version(1): error: expected unqualified-id { ^
If file mbed-os/features/storage/FEATURE_STORAGE/cfstore\version is cleared then build succeeds.

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions