Welcome! Log In Create A New Profile

Advanced

Re: Trunk can't be compiled atm.

March 21, 2012 02:40AM
On Wed, Mar 21, 2012 at 07:16:27PM +1300, Ryan Brown wrote:
> Unable to compile nginx trunk..
>
> gcc-4.6.1-9 (Ubuntu)
> ./configure --with-openssl=/root/openssl/openssl-dev/openssl
> --with-cpu-opt=pentium4 --with-http_gzip_static_module
> --with-http_ssl_module --with-ipv6 --without-mail_pop3_module
> --without-mail_imap_module --without-mail_smtp_module
> --without-http_charset_module --without-http_ssi_module
> --without-http_userid_module --without-http_autoindex_module
> --without-http_rewrite_module --with-pcre --with-cc-opt='-O2 -g
> -march=i386 -mtune=i686'

> objs/src/core/ngx_resolver.o: In function `ngx_udp_connect':
> /root/trunk/src/core/ngx_resolver.c:2214: undefined reference to
> `__sync_fetch_and_add_4'
> objs/src/core/ngx_file.o: In function `ngx_next_temp_number':
> /root/trunk/src/core/ngx_file.c:232: undefined reference to
> `__sync_fetch_and_add_4'
> objs/src/core/ngx_times.o: In function `ngx_time_sigsafe_update':
> /root/trunk/src/core/ngx_times.c:193: undefined reference to
> `__sync_bool_compare_and_swap_4'

i386 CPU does not support atomic operations.
The minimum level is i486. Do you really need "-march=i386" ?


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Trunk can't be compiled atm.

fanboy March 21, 2012 02:18AM

Re: Trunk can't be compiled atm.

Igor Sysoev March 21, 2012 02:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 227
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready