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

[Bug]: cbuild setup fails due to missing file not yet generated by executes #246

Open
4 of 13 tasks
brondani opened this issue Dec 18, 2024 · 0 comments
Open
4 of 13 tasks
Assignees
Labels
bug Something isn't working

Comments

@brondani
Copy link
Collaborator

brondani commented Dec 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Reported by @RobertRostohar

Take for example the HTTP_Server project in the Network solution, where the Web.c file is expected to be generated by the Run_FCARM execute node.

If cbuild setup is called before building the project, it fails when running the CMake database target:

CMake Error at groups.cmake:4 (add_library):
  Cannot find source file:

    D:/examples/MDK-Middleware/Examples/Network/HTTP_Server/Web.c

Expected Behavior

It's expected that cbuild setup runs successfully, indeed csolution convert runs successfully because it tolerates the missing file since it's expected to be generated by an execute as addressed in Open-CMSIS-Pack/devtools#1697, however the database target does not cope with this.

Proposed solution: set the GENERATED CMake property for this sort of file.

Steps To Reproduce

No response

Affected tools

  • cbuild
  • cbuild2cmake
  • cpackget
  • csolution
  • packchk
  • svdconv

Affected operating systems

  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

No response

@brondani brondani added the bug Something isn't working label Dec 18, 2024
@brondani brondani self-assigned this Dec 18, 2024
@brondani brondani moved this to Todo in CMSIS-Toolbox 2.8.0 Dec 18, 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
Development

No branches or pull requests

1 participant