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

Weird failure when building with GCC 15 in the default -std=gnu23 mode #195

Open
michel-slm opened this issue Jan 23, 2025 · 0 comments
Open

Comments

@michel-slm
Copy link

rlwrap fails to build in Fedora's mass rebuild for the upcoming Fedora 42: https://bugzilla.redhat.com/show_bug.cgi?id=2341282

The error is curious:

readline.c: In function ‘message_in_echo_area’:
readline.c:192:5: error: too many arguments to function ‘rl_message’; expected 0, have 1
  192 |     rl_message(message);
      |     ^~~~~~~~~~ ~~~~~~~
In file included from rlwrap.h:189,
                 from readline.c:23:
/usr/include/readline/readline.h:410:12: note: declared here
  410 | extern int rl_message ();
      |            ^~~~~~~~~~

But readline in Fedora has not been upgraded (the previous successful build is also against readline 8.2).

Compiling with an override to build with -std=gnu17 works around the issue (GCC now defaults to -std=gnu23 per https://gcc.gnu.org/gcc-15/porting_to.html)

I've not managed to figure out what's going on yet, I figured I'll work around it first but report it here, since this will eventually affect more distributions too as GCC 15 adoption spreads.

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