-
Notifications
You must be signed in to change notification settings - Fork 35
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
-Wincompatible-pointer-types error in init.c, if gcc version >= 14 #59
Comments
cluosh
added a commit
to cluosh/lib-lwip
that referenced
this issue
Dec 8, 2024
The invalid pointer warning becomes an error in gcc14, and it turns out it's actually an invalid pointer, because it expects a pointer to a struct with a type tag and not just the IPv4 address.
cluosh
added a commit
to cluosh/lib-lwip
that referenced
this issue
Dec 8, 2024
The invalid pointer warning becomes an error in gcc14, and it turns out it's actually an invalid pointer, because it expects a pointer to a struct with a type tag and not just the IPv4 address, if we have IPv4 and IPv6 enabled (otherwise it typedefs to the IPv4 address and everything is fine).
cluosh
added a commit
to cluosh/lib-lwip
that referenced
this issue
Dec 17, 2024
The invalid pointer warning becomes an error in gcc14, and it turns out it's actually an invalid pointer, because it expects a pointer to a struct with a type tag and not just the IPv4 address, if we have IPv4 and IPv6 enabled (otherwise it typedefs to the IPv4 address and everything is fine). Github-fixes: unikraft#59 Signed-off-by: Michael Pucher <[email protected]>
razvand
pushed a commit
that referenced
this issue
Dec 19, 2024
The invalid pointer warning becomes an error in gcc14, and it turns out it's actually an invalid pointer, because it expects a pointer to a struct with a type tag and not just the IPv4 address, if we have IPv4 and IPv6 enabled (otherwise it typedefs to the IPv4 address and everything is fine). Github-fixes: #59 Signed-off-by: Michael Pucher <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When remaking my lwip-using unikernel on a new computer the build terminated on this error:
It appears that gcc version >= 14 will make
-Wincompatible-pointer-types
an error instead of warning by default: https://gcc.gnu.org/gcc-14/porting_to.htmlMy workaround for now is simply to add
-Wno-incompatible-pointer-types
(or-Wno-error=incompatible-pointer-types
?) to the LIBLWIP_CFLAGS line in lwip'sMakefile.uk
.The text was updated successfully, but these errors were encountered: