Skip to content

[storage] kvstore_global_api.h: No such file or directory, when ble-security-database-kvstore is true #14660

@16L-YT

Description

@16L-YT

Description of defect

When I enable ble-security-database-kvstore from mbed_app.json like this:

    "target_overrides": {
        "*": {
            "ble.ble-security-database-kvstore" : true
        }

The compilation get fail because of missing kvstore_global_api.h

Compile [ 68.8%]: KVStoreSecurityDb.cpp
[Fatal Error] KVStoreSecurityDb.h@24,10: kvstore_global_api.h: No such file or directory
[ERROR] In file included from .\mbed-os\connectivity\FEATURE_BLE\source\generic\KVStoreSecurityDb.cpp:21:
.\mbed-os\connectivity\FEATURE_BLE\source\generic\KVStoreSecurityDb.h:24:10: fatal error: kvstore_global_api.h: No such file or directory
24 | #include "kvstore_global_api.h"

Although, from the CMakeLists.txt in storage directory it seems the kvstore_global_api included correctly.

The only other change I did is that I added "storage_type": "TDB_INTERNAL" from mbed-os\storage\kvstore\kv_config\global\mbed_lib.json and set storage_tdb_internal.internal_size and storage_tdb_internal.internal_base_address from storage\kvstore\kv_config\tdb_internal\mbed_lib.json

Target(s) affected by this defect ?

Issue does not seem to be target specific. I tried with Ambiq and Nordic targets.

Toolchain(s) (name and version) displaying this defect ?

gcc version 10.2.1 20201103 (release) (xPack GNU Arm Embedded GCC, 64-bit)

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 Studio 1.4.1

How is this defect reproduced ?

Compiling BLE_SecurityAndPrivacy with "ble.ble-security-database-kvstore" : true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions