Re:Nginx Patch: SPDY/3.1 protocol implementation
by newman314 on Monday January 27, 2014 @09:23PM
(#7134903)
I've been having issues compiling the last 2 versions of nginx. Anyone else seeing this?
Configure flags used:
./configure --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-cc-opt='-march=native -Ofast -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=2'
[ Parent
| on HN ]
Re:Nginx Patch: SPDY/3.1 protocol implementation
by mappu on Tuesday January 28, 2014 @12:55AM
(#7135607)
I cloned from http://hg.nginx.org/nginx to try and reproduce with your configure arguments, but i actually error out elsewhere;
src/http/ngx_http_request.c: In function ‘ngx_http_set_virtual_server’:
src/http/ngx_http_request.c:1955:32: error: ‘cscf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1: all warnings being treated as errors
which i'm not interested in following up. My `ngx_string.o` did build successfully though. Using gcc 4.7.2 on Debian 7Are you using a new CPU with an old(er) gcc version? Try specifying -march explicitly instead of native.
Re:Nginx Patch: SPDY/3.1 protocol implementation
by newman314 on Tuesday January 28, 2014 @03:52AM
(#7136097)
Doh. I recently moved this VM from a C2D to an i5 machine. And this is on Ubuntu 12.04 which is old enough not to know about this newer CPU. Still, it should not crap out like that...
Re:Nginx Patch: SPDY/3.1 protocol implementation
by newman314 on Tuesday January 28, 2014 @07:39PM
(#7140946)
Just as a follow up, I tried this with no -march flag and it compiled just fine.
This is with gcc 4.6.3.