[uWSGI] Warning in compiling uwsgi-0.9.5.3 with '-O2'
leo.borisenko at gmail.com
Tue Jul 6 14:09:22 CEST 2010
On 06.07.2010 10:53, Roberto De Ioris wrote:
> Il giorno 30/giu/2010, alle ore 19.44, Leo Borisenko ha scritto:
>> Recent version of uwsgi introduces '-Werror' in CFLAGS. In combination with additional '-O2' flag it breaks building with warning 'dereferencing type-punned pointer will break strict-aliasing rules' in protocol.c. Building log is attached.
> I have investigated on this issue.
> This is a python 2.x problem (fixed in python 3.x).
> If you want to activate gcc optimization (-O3 -Os included) you have to add -fno-strict-aliasing.
> I will add a note on the wiki about this
Roberto, thanks for working on this. I'll follow your advice.
More information about the uWSGI