platformio / platformio/platformio-core

Build error when parameter is overridden in mbed_app.json (for mbed libraries into project/lib)

Open
#3,367 6 comments 0 reactions 1 assignee View on GitHub

@valeros is already working on this.

Since Feb 5, 2020.

build system known issue
Dominant language
Python
Stars
9.5k
Forks
905
Avg merge
2d 13h
Merged PRs (30d)
2

Description

Configuration

Operating system: Ubuntu 16.04.6 LTS

PlatformIO Version (platformio --version): version 4.1.1b9

Description of problem

Currently it is possible to build mbed libraries in project/lib directory as PlatformIO can parse mbed_lib.json for each library and add macroses into mbed_config.h. The issue appears when you try to override parameters of those libraries through mbed_app.json. Build fails with error "mbed build API internal error. Attempt to override undefined parameter". It looks like currently it is only possible to override parameters of libraries which come with mbed by default.

Steps to Reproduce
  1. clone https://github.com/edgrin/pio-mbed-lib-target-overrides/tree/a8b580c5deb6e36e74de38f5755cdb611166445f
  2. try to build
  3. see error Attempt to override undefined parameter 'newlib.param' in 'application[*]'
  4. delete line 4 with '"newlib.param": 2' in mbed_app.json
  5. try to build
  6. see successful build with newlib in Dependency Graph
Actual Results

mbed build API internal error

Expected Results

Successful build

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.