Skip to content

iwyu.yml: work around missing includes for Fedora [skip ci] #7625

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

In file included from /__w/cppcheck/cppcheck/externals/tinyxml2/tinyxml2.cpp:24:
In file included from /__w/cppcheck/cppcheck/externals/tinyxml2/tinyxml2.h:38:
In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/climits:47:
/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
  124 | # include_next <limits.h>
      | 

This issue will pop up when a distro updates its LLVM to a newer version than IWYU is built against.

@firewave firewave changed the title iwyu.yml: work around missing includes for Fedora iwyu.yml: work around missing includes for Fedora [skip ci] Jun 25, 2025
@firewave firewave force-pushed the iwyu-inc branch 2 times, most recently from 478f99b to d61fe2e Compare June 25, 2025 19:48
@firewave
Copy link
Collaborator Author

After the fix there is another issue when using libc++:

In file included from /__w/cppcheck/cppcheck/externals/tinyxml2/tinyxml2.cpp:31:
/usr/bin/../include/c++/v1/cstddef:45:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   45 | #   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
      |     ^

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.

1 participant