Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meson build including more targets than configured. #1768

Open
sidprice opened this issue Feb 20, 2024 · 2 comments
Open

Meson build including more targets than configured. #1768

sidprice opened this issue Feb 20, 2024 · 2 comments
Labels
Bug Confirmed bug Build system Build system
Milestone

Comments

@sidprice
Copy link
Contributor

It appears the Meson build system is not following the configured target set. On a Windows PC I tried to build the Native platform in order to make use of RTT. The initial build failed due to the flash being over-filled.

To work around this the following Meson configure command was used:

meson configure "-Dtargets=cortexm,stm"

However, when the build was run it was noted the flash was still 97% used.

Investigation showed more targets than this configured had been built. For example, the SAMD range was included.

@dragonmux dragonmux added Bug Confirmed bug Build system Build system labels Feb 20, 2024
@dragonmux dragonmux added this to the v2.0 release milestone Feb 20, 2024
@perigoso
Copy link
Contributor

I believe this might be what I hit while working on the initial PR, see this review comment.

It's likely a meson bug, but I have have not tracked it down yet. @sidprice could you provide some details about your system so we can maybe pin this down?

  • What os/distribution are you using?
  • What meson version did you use (meson --version)?
  • How did you install it?

In the meantime, using the setup command with the --reconfigure flag should work as a workaround:
meson setup --reconfigure "-Dtargets=cortexm,stm"

@sidprice
Copy link
Contributor Author

What os/distribution are you using? <-- Windows 11
What meson version did you use <-- 1.0.0
How did you install it? <-- Using MSYS2

And thank you for the reconfigure tip, that worked for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bug Build system Build system
Projects
None yet
Development

No branches or pull requests

3 participants