Skip to content

mbed_lib.json conflicts when compiling for a binary application #3209

Closed
@motgon01

Description

@motgon01

Description

  • Type: Bug
  • Priority: Major

mbed CLI tool copies *.json, *.a files and potentially some other stuff that is given in --source <path>


Bug

Target
K64F

Toolchain:
GCC_ARM|ARM

Toolchain version:
4.9.3

mbed-cli version:
0.9.5

meed-os sha:
56f60a0

Steps to reproduce

  1. Compile mbed-os as a static library (using --build libmbed-os)
  2. Compile mbed-client as a static library (using --build libmbed-client)
  3. Compile some foo application that has a single main.cpp (prints hello world or something) and uses --source libmbed-os and --source libmbed-client when compiling, e.g.:

mbed compile -j1 --build .build-foo -t GCC_ARM -m K64F --artifact-name foo -v --source .build-libmbed-os --source .build-libmbed-client -v

Expected behavior
foo application should cleanly compile

Actual behavior
ConfigException: Library name 'mbed-os' is not unique (defined in '.build-libmbed-os/mbed_lib.json' and '.build-libmbed-client/mbed_lib.json')

@jenia81
@screamerbg
@bridadan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions