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

Random-ish build failure around preprocessor_successor.h #35

Closed
chrysn opened this issue Nov 24, 2023 · 2 comments
Closed

Random-ish build failure around preprocessor_successor.h #35

chrysn opened this issue Nov 24, 2023 · 2 comments

Comments

@chrysn
Copy link
Member

chrysn commented Nov 24, 2023

There are build errors cropping up with:

   --- stderr
  /__w/rust-riot-wrappers/rust-riot-wrappers/RIOT/sys/include/auto_init_utils.h:35:10: fatal error: 'preprocessor_successor.h' file not found
  thread 'main' panicked at /github/home/.cargo/git/checkouts/rust-riot-sys-d12733b89271907c/c985a6b/build.rs:224:10:
  Unable to generate bindings: ClangDiagnostic("/__w/rust-riot-wrappers/rust-riot-wrappers/RIOT/sys/include/auto_init_utils.h:35:10: fatal error: 'preprocessor_successor.h' file not found\n")

I've now traced this down to being caused by compile-commands.json files where the -I.../bin/native/preprocessor entry is not in the first of the included files.

@chrysn
Copy link
Member Author

chrysn commented Nov 24, 2023

More precisely, this is due to the consensus cflags building process: Generally, -I flags are always kept (keep |= i[0].starts_with("-I")), but that makes the first entry special.

@chrysn
Copy link
Member Author

chrysn commented Nov 24, 2023

Closed through #36.

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

No branches or pull requests

1 participant