3 ms·
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
by newman314 13y ago
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'
- mappu 13y agoI cloned from http://hg.nginx.org/nginx 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.
- newman314 13y agoDoh. 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...
- newman314 13y agoJust as a follow up, I tried this with no -march flag and it compiled just fine. This is with gcc 4.6.3.
- plaes 13y agoThis error seems to be caused -Werror compiler flag.
- vangale 13y agoI 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.