-
Notifications
You must be signed in to change notification settings - Fork 874
[Bug]: 5.8.0 fails to build with -Werror
: benchmark.c:8633: warning: declaration of ‘index’ shadows a global declaration
#8731
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
Comments
Hi @barracuda156 , Sorry for my delayed response. This is an interesting problem you've found!! My system seems to be a bit different than yours. Can you please verify my proposed solution #8759 fixes your issue? Warm regards, Anthony |
@anhu This gave a rather surprising result, now gcc-4.2 just chokes on that source file:
This does not necessarily mean there is something wrong though. Maybe it just cannot handle it, and we should require a modern gcc for building WolfSSL (this is not a problem, we have gcc14 on macOS 10.4+ including powerpc systems). |
Hi @barracuda156 , Did you figure out those errors? To me it seems related to Position Independent Code (PIC). Can you try adding Thanks, |
@dgarske |
@dgarske With gcc14 it builds normally without disabling |
Contact Details
No response
Version
5.8.0
Description
5.8.0 errors out when being built with
-Werror
.Reproduction steps
Fetch 5.8.0 from release commit, run the build.
Relevant log output
The text was updated successfully, but these errors were encountered: