Welcome! Log In Create A New Profile

Advanced

Re: Using nginx 1.1 with the intel compiler

February 22, 2012 04:38PM
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



On Thu, Feb 23, 2012 at 3:02 AM, Ryan Brown <mp3geek@gmail.com> wrote:
> I'm guessing its similar to the openssl compile, which I used
> http://software.intel.com/en-us/forums/showthread.php?t=101266
>
> [root@bob:trunk/objs]# locate sys/types.h
> /usr/include/i386-linux-gnu/sys/types.h
>
> Not sure how to pass to nginx to use, (this fails)
>
> ./configure --with-cc=/opt/intel/bin/icc
> --with-cc-opt=-I/usr/include/i386-linux-gnu/
>
>
> ----------------------------------------
> checking for C compiler
>
> objs/autotest.c(2): catastrophic error: cannot open source file "sys/types.h"
>  #include <sys/types.h>
>                        ^
>
> compilation aborted for objs/autotest.c (code 4)
> ----------
>
> #include <sys/types.h>
>
>
>
> int main() {
>    ;
>    return 0;
> }
>
> ----------
> icc -o objs/autotest objs/autotest.c
> ----------
>
>
>
> On Thu, Feb 23, 2012 at 2:45 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>> Hello!
>>
>> On Thu, Feb 23, 2012 at 02:31:31AM +1300, Ryan Brown wrote:
>>
>>> Not sure what I'm doing wrong here..
>>>
>>> [root@bob:~/trunk]# export | grep cc
>>> CC=icc
>>> 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
>>>
>>> [root@bob:~/trunk]# ./configure
>>> checking for OS
>>>  + Linux 3.2.5 i686
>>> checking for C compiler ... not found
>>>
>>> ./configure: error: C compiler icc is not found
>>>
>>> Even if I specify it,
>>>
>>> [root@bob:~/trunk]# ./configure --with-cc=/opt/intel/bin/icc
>>> checking for OS
>>>  + Linux 3.2.5 i686
>>> checking for C compiler ... not found
>>>
>>> ./configure: error: C compiler /opt/intel/bin/icc is not found
>>>
>>> And just specifying "icc" instead"
>>>
>>> [root@bob:~/trunk]# ./configure --with-cc=icc
>>> checking for OS
>>>  + Linux 3.2.5 i686
>>> checking for C compiler ... not found
>>>
>>> ./configure: error: C compiler icc is not found
>>>
>>> hmm still not found, its in the path:
>>>
>>> [root@bob:~/trunk]# icc --version
>>> icc (ICC) 12.1.3 20120212
>>> Copyright (C) 1985-2012 Intel Corporation.  All rights reserved.
>>
>> Try looking into objs/autoconf.err, it will have exact reason for
>> the "not found" verdict.  Most likely it fails to compile code for
>> some reason, the autoconf.err file should have details.
>>
>> Maxim Dounin
>>
>> _______________________________________________
>> 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: 187
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