-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[m4] Add compatibility for GCC15 and use version ranges for all recipes in CCI #29220
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
Open
uilianries
wants to merge
15
commits into
conan-io:master
Choose a base branch
from
uilianries:m4/gcc15-compat
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Signed-off-by: Uilian Ries <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Changes to recipe: m4/1.4.19
Motivation
fixes #29184
/cc @cuppajoeman
Details
When building M4 1.4.19 using GCC15, some errors can be found, like:
The full build log with several errors can be checked here: m4-1.4.19-linux-amd64-gcc15-release.log
Disabling warnings is not enough, as this error is related to the gnulib copied in m4, which does not support C23 (the default C and C++ standard for GCC15: https://gcc.gnu.org/gcc-15/changes.html#c). As a workaround, we keep C17 for GCC15 and it works just fine:
m4-1.4.19-linux-amd64-gcc15-cstd17-release.log
The case was officially reported before: https://savannah.gnu.org/support/?111150, and it was fixed in 1.4.20 as a new release gnulib was incorporated into the project: https://lists.gnu.org/archive/html/m4-announce/2025-05/msg00000.html. Bringing a new gnulib version as a backport is not viable, but the Buildroot project had a good insight by keeping C17 for compatibility: https://lists.buildroot.org/pipermail/buildroot/2025-May/777741.html
This bug is affecting only 1.4.19, the versions 1.4.18 and 1.4.20 can be built using GCC15 without errors:
To avoid future conflicts and to keep aligned with the latest version available, this PR also updates all recipes in ConanCenterIndex that are consuming the package for m4 to use version ranges.
A second error appeared during the CI when building using Apple Clang 17, related to incompatible function pointer types:
As a workaround, I just passed
-Wno-error=incompatible-pointer-typesto ignore it for now.Add a 👍 reaction to pull requests you find important to help the team prioritize, thanks!