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

Change the warnings to errors and stop build process #1814

Open
ReinhardKeil opened this issue Oct 17, 2024 · 0 comments
Open

Change the warnings to errors and stop build process #1814

ReinhardKeil opened this issue Oct 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ReinhardKeil
Copy link
Collaborator

ReinhardKeil commented Oct 17, 2024

Describe the bug

These messages are currently classified as warning:

> cbuild CubeMX_Basic_solution\CubeMX.csolution.yml --context-set
warning csolution: unknown access sequence: 'LinkerRegionsHeader'
CubeMX_Basic_solution/$LinkerRegionsHeader$ - warning csolution: specified regions header was not found
CubeMX_Basic_solution/$LinkerRegionsHeader$ - warning csolution: specified regions header was not found
CubeMX_Basic_solution/$LinkerRegionsHeader$ - warning csolution: specified regions header was not found

The build process does therefore not stop and it finally fails in the linker step (with a cryptic error) as the regions header was not found. As a user you are focusing on the error (not the warning) and it is very hard to spot the underlying problem.

To Reproduce

Use example from #1813

Change the variable "LinkerRegionsHeader" in csolution.yml (mimic a typo).

Expected behavior

Change this messages to type error:

warning csolution: unknown access sequence: 'LinkerRegionsHeader'
CubeMX_Basic_solution/$LinkerRegionsHeader$ - warning csolution: specified regions header was not found

The build process should stop (no CMake call).

Side note: why is warning csolution: specified regions header was not found shown 3 times?

Environment:

  • CMSIS-Toolbox 2.6.1
  • OS: Windows
@ReinhardKeil ReinhardKeil added the bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant