Using nginx 1.1 with the intel compiler
Ryan Brown
mp3geek at gmail.com
Wed Feb 22 14:02:12 UTC 2012
I'm guessing its similar to the openssl compile, which I used
http://software.intel.com/en-us/forums/showthread.php?t=101266
[root at 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 at 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 at 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 at 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 at 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 at 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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list