-
Notifications
You must be signed in to change notification settings - Fork 779
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
Build does not work with GCC 15+ #1139
Comments
Some more errors similar after fixing the above one:
|
Hi @pinskia Could you please share these details?
|
The version of GCC I am using:
This was the trunk version as of last week. as I should have mention adding
The testing I needed to do was reduce a testcase for GCC where GCC had an internal compiler error due to -flto usage. |
Hi @pinskia Could you please share the command used to compile the library ? |
It doesn't matter: your code is wrong. You need to include the relevant header before using those types. That's how C++ works. Maybe you've got away with it until now with some compilers, but the code is still wrong. This is documented as a change that might be needed when using GCC 15: https://gcc.gnu.org/gcc-15/porting_to.html#header-dep-changes But the bottom line is you need to include the right header for anything in the C++ standard library that you rely on. |
Hi @jwakely Many thanks for raising this, we'll have a look at it and fix it |
Hi @pinskia Since GCC15 has not yet been released I'm struggling to reproduce the problem. I'm building ACL main branch with
It would help if you could either:
Hope this helps |
The relevant change was committed to GCC trunk on 2024-08-01 so this build won't have it. There are RPMs of a recent gcc 15 at https://copr.fedorainfracloud.org/coprs/jwakely/gcc-latest/ or you could use the scripts at https://github.com/jwakely/pkg-gcc-latest/ to build a |
With GCC 15, the build fails due to missing cstdint include. GCC 15 removed some extra includes in the standard headers and caused the issue. See https://gcc.gnu.org/gcc-15/porting_to.html for more information.
GCC 15 output:
The text was updated successfully, but these errors were encountered: