Welcome! Log In Create A New Profile

Advanced

Re: Using nginx 1.1 with the intel compiler

February 24, 2012 08:24PM
Though it actually compiles to a point then errors... (ignoring the
-Wunused-value warnings)

[root@bob:~/trunk]# export | grep cc
CC='icc -I/usr/include/i386-linux-gnu/'
LD_LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/ipp/../compiler/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/ipp/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/tbb/lib/ia32//cc4.1.0_libc2.4_kernel2.6.16..21:/opt/intel/composer_xe_2011_sp1.9.293/debugger/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/mpirt/lib/ia32
LIBRARY_PATH=/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/ipp/../compiler/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/ipp/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/compiler/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/mkl/lib/ia32:/opt/intel/composer_xe_2011_sp1.9.293/tbb/lib/ia32//cc4.1.0_libc2.4_kernel2.6.16.21
cc=icc
[root@bob:~/trunk]# icc --version
icc (ICC) 12.1.3 20120212
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.


cc: command line warning #10006: ignoring unknown option '-Wunused-value'
icc -I/usr/include/i386-linux-gnu/ -c -pipe -O -W -Wall
-Wpointer-arith -Wno-unused-parameter -Wunused-function
-Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event
-I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/ngx_hash.o \
src/core/ngx_hash.c
icc: command line warning #10006: ignoring unknown option '-Wunused-value'
icc -I/usr/include/i386-linux-gnu/ -c -pipe -O -W -Wall
-Wpointer-arith -Wno-unused-parameter -Wunused-function
-Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event
-I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/ngx_buf.o \
src/core/ngx_buf.c
icc: command line warning #10006: ignoring unknown option '-Wunused-value'
icc -I/usr/include/i386-linux-gnu/ -c -pipe -O -W -Wall
-Wpointer-arith -Wno-unused-parameter -Wunused-function
-Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event
-I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/ngx_queue.o \
src/core/ngx_queue.c
icc: command line warning #10006: ignoring unknown option '-Wunused-value'
icc -I/usr/include/i386-linux-gnu/ -c -pipe -O -W -Wall
-Wpointer-arith -Wno-unused-parameter -Wunused-function
-Wunused-variable -Wunused-value -Werror -g -I src/core -I src/event
-I src/event/modules -I src/os/unix -I objs \
-o objs/src/core/ngx_output_chain.o \
src/core/ngx_output_chain.c
icc: command line warning #10006: ignoring unknown option '-Wunused-value'
icc -I/usr/include/i386-linux-gnu/ -c -pipe -O -W -Wall
-Wpointer-arith -Wno-unused-parameter -Wunused-function
-Wunused-variable -Wunused-value -Werror -g -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
icc: command line warning #10006: ignoring unknown option '-Wunused-value'
src/core/ngx_string.c(1519): error: identifier "bool" is undefined
(bool) state = 0;
^

src/core/ngx_string.c(1519): error: expected a ";"
(bool) state = 0;
^

compilation aborted for src/core/ngx_string.c (code 2)
make[1]: *** [objs/src/core/ngx_string.o] Error 2
make[1]: Leaving directory `/root/trunk'
make: *** [build] Error 2

from a ./configure

[root@bob:~/trunk]# ./configure
checking for OS
+ Linux 3.2.5-ck1 i686
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.6.0 compatibility)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found

But when it comes to compiling it uses icc (as above), the machine
does have gcc-4.6 installed also

I didn't see any error messages in auto/cc/icc, I did noticed it
reference icc up to 11.x but not 12?


2012/2/25 Maxim Dounin <mdounin@mdounin.ru>:
> Hello!
>
> On Sat, Feb 25, 2012 at 12:48:34PM +1300, Ryan Brown wrote:
>
>> Any clues on this?
>
> It looks like you somehow persuaded nginx that your compiler is
> gcc, and it uses command line arguments appropiate for gcc instead
> of ones for icc.  See auto/cc/icc for a long list of warnings which
> should be ignored with icc.
>
> Maxim Dounin
>
>>
>> On Thu, Feb 23, 2012 at 10:36 AM, Ryan Brown <mp3geek@gmail.com> wrote:
>> > Okay, manage to get it to compile,
>> >
>> > make[1]: Entering directory `/root/trunk'
>> > /opt/intel/bin/icc -c -pipe  -O -W -Wall -Wpointer-arith
>> > -Wno-unused-parameter -Wunused-function -Wunused-variable
>> > -Wunused-value -Werror -g  -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
>> > icc: command line warning #10006: ignoring unknown option '-Wunused-value'
>> > src/core/ngx_string.c(1519): error #188: enumerated type mixed with another type
>> >      state = 0;
>> >            ^
>> >
>> > compilation aborted for src/core/ngx_string.c (code 2)
>> > make[1]: *** [objs/src/core/ngx_string.o] Error 2
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

Using nginx 1.1 with the intel compiler

fanboy February 22, 2012 08:32AM

Re: Using nginx 1.1 with the intel compiler

Maxim Dounin February 22, 2012 08:48AM

Re: Using nginx 1.1 with the intel compiler

fanboy February 22, 2012 09:04AM

Re: Using nginx 1.1 with the intel compiler

fanboy February 22, 2012 04:38PM

Re: Using nginx 1.1 with the intel compiler

fanboy February 24, 2012 06:50PM

Re: Using nginx 1.1 with the intel compiler

Maxim Dounin February 24, 2012 08:10PM

Re: Using nginx 1.1 with the intel compiler

fanboy February 24, 2012 08:24PM

Re: Using nginx 1.1 with the intel compiler

Maxim Dounin February 24, 2012 09:08PM

Re: Using nginx 1.1 with the intel compiler

fanboy February 24, 2012 10:18PM

Re: Using nginx 1.1 with the intel compiler

fanboy February 24, 2012 11:30PM

icc access (was Re: Using nginx 1.1 with the intel compiler)

Maxim Konovalov February 25, 2012 08:02AM

Re: icc access (was Re: Using nginx 1.1 with the intel compiler)

fanboy February 25, 2012 08:58AM

Re: icc access (was Re: Using nginx 1.1 with the intel compiler)

DenisTRUFFAUT February 28, 2012 05:39PM

Re: icc access (was Re: Using nginx 1.1 with the intel compiler)

Maxim Dounin February 29, 2012 09:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
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