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

tools/syz-declextract: don't analyze host files #5398

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

dvyukov
Copy link
Collaborator

@dvyukov dvyukov commented Oct 15, 2024

I've got this error when trying to run the tool:

arch/x86/tools/relocs_64.c: In file included from arch/x86/tools/relocs_64.c:2:
In file included from arch/x86/tools/relocs.h:5:
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found

The arch/x86/tools/relocs_64.c is part of some host tool
that was compiled with gcc. And probably my clang installation
is somehow broken and can't compile normal user-space C programs.

Skip files that were not compiled with clang.
We don't need to analyze them (host tools),
and it also solves my clang problem.

I've got this error when trying to run the tool:

arch/x86/tools/relocs_64.c: In file included from arch/x86/tools/relocs_64.c:2:
In file included from arch/x86/tools/relocs.h:5:
/usr/include/stdio.h:33:10: fatal error: 'stddef.h' file not found

The arch/x86/tools/relocs_64.c is part of some host tool
that was compiled with gcc. And probably my clang installation
is somehow broken and can't compile normal user-space C programs.

Skip files that were not compiled with clang.
We don't need to analyze them (host tools),
and it also solves my clang problem.
@dvyukov
Copy link
Collaborator Author

dvyukov commented Oct 15, 2024

@pimyn-girgis please review

@pimyn-girgis
Copy link
Collaborator

LGTM.

@dvyukov
Copy link
Collaborator Author

dvyukov commented Oct 15, 2024

@a-nogikh need approval from somebody with write access to merge

@dvyukov dvyukov added this pull request to the merge queue Oct 15, 2024
Merged via the queue into google:master with commit bde2d81 Oct 15, 2024
17 checks passed
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

Successfully merging this pull request may close these issues.

3 participants