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

1.4.5 build fails on fedora with "dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]" #181

Closed
ingvarha opened this issue Jun 1, 2017 · 4 comments

Comments

@ingvarha
Copy link

ingvarha commented Jun 1, 2017

1.4.5 build fails on fedora with

"dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]"

Environment: Fedora 25 on x86_64, gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)

Build log at https://paste.fedoraproject.org/paste/8zWK0hi8sMwc8xB1zbyzW15M1UNdIGYhyRLivL9gydE=

@ingvarha
Copy link
Author

ingvarha commented Jun 1, 2017

or here
build.log.txt

@daghf
Copy link
Member

daghf commented Jun 1, 2017

Thanks for spotting this. Could you try adding -Wno-error=strict-aliasing to your CFLAGS as a workaround until we fix the code?

@ingvarha
Copy link
Author

ingvarha commented Jun 1, 2017

adding -Wno-error=strict-aliasing hides the problem

@daghf daghf closed this as completed in ea44179 Jun 6, 2017
@daghf
Copy link
Member

daghf commented Jun 6, 2017

This was due to the libev library's use of casts in its header file that don't quite comply with gcc's understanding of strict aliasing.

I've reverted a previous change and it's back to using -fno-strict-aliasing in place of -Wno-strict-aliasing now, which fixes the build for epel6/7.

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

2 participants