News for hackers. Stuff that matters.
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?

  make -f objs/Makefile
  make[1]: Entering directory `/home/newman314/src/nginx-1.5.9'
  cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -march=native -Ofast -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=2 -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
		-o objs/src/core/ngx_string.o \
		src/core/ngx_string.c
  {standard input}: Assembler messages:
  {standard input}:1253: Error: no such instruction: `vfmadd312sd .LC5(%rip),%xmm1,%xmm0'
  make[1]: *** [objs/src/core/ngx_string.o] Error 1
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'
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 7

Are 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.

Re:Nginx Patch: SPDY/3.1 protocol implementation by plaes on Tuesday January 28, 2014 @06:24AM (#7136470)
This error seems to be caused -Werror compiler flag.
Re:Nginx Patch: SPDY/3.1 protocol implementation by vangale on Tuesday January 28, 2014 @02:12AM (#7135814)
I haven't had issues, but I'm only using -O2. I also have to do "-march=native -mno-avx -mno-aes" because I'm on a Xen instance that doesn't allow the avx/aes instructions.