-
Notifications
You must be signed in to change notification settings - Fork 3k
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
erts/configure
does not detect poll()
correctly when gcc
14 is used
#9211
Comments
lukebakken
added a commit
to lukebakken/otp
that referenced
this issue
Dec 17, 2024
Part of the fix to erlang#9211
Ouch, I wonder what other configure tests will be effected by this... I would be very surprised if poll was the only one. |
It may not be that bad. Using #9212, it seems like only the following conftest errors remain:
The one concerning |
lukebakken
added a commit
to lukebakken/otp
that referenced
this issue
Dec 17, 2024
Fixes erlang#9211 * Add headers (`stdlib.h`, `fcntl.h`) for `poll` * Add `unistd.h` for `sbrk`
lukebakken
added a commit
to docker-library/rabbitmq
that referenced
this issue
Dec 18, 2024
Works around this issue: erlang/otp#9211
lukebakken
added a commit
to docker-library/rabbitmq
that referenced
this issue
Dec 18, 2024
Works around this issue: erlang/otp#9211 * Add patch file for Erlang 27.2 * Add patch file for Erlang 26.2.5.6
lukebakken
added a commit
to lukebakken/otp
that referenced
this issue
Dec 18, 2024
Fixes erlang#9211 * Add headers (`stdlib.h`, `fcntl.h`) for `poll` * Add `unistd.h` for `sbrk`
lukebakken
added a commit
to lukebakken/otp
that referenced
this issue
Dec 18, 2024
Fixes erlang#9211 * Add headers (`stdlib.h`, `fcntl.h`) for `poll` * Add `unistd.h` for `sbrk` (cherry picked from commit c0a4870)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using
gcc
version 14, several classes of warning are now considered errors, by default. Theerts/configure
script fails to detectpoll
because of missing include statements and return type formain
:https://github.com/erlang/otp/blob/master/erts/configure.ac#L3127-L3166
On Alpine Linux 3.21, which uses gcc 14.2.0, that check mistakenly fails due to these new compiler errors. Here is the complete
erts/config.log
from my Alpine 3.21 environment: https://github.com/lukebakken/docker-library-rabbitmq-749/blob/main/config.logerts/config.log output
To Reproduce
Expected behavior
The check for a working
poll()
, and other checks that could possibly fail, work correctly using gcc 14.Affected versions
Tested using OTP 27.2 source code.
Additional context
Originally reported here: docker-library/rabbitmq#749
The text was updated successfully, but these errors were encountered: