Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

fail to build ffmpeg with icc 14

$
0
0

Hi,

I use the following command to build the latest ffmpeg from master branch:

./configure --cc=/opt/intel/bin/icc --enable-version3 --enable-asm --enable-avfilter --disable-static --enable-shared --enable-gpl --enable-nonfree --prefix=/usr/local/ --extra-cflags='-I/usr/local/include --extra-ldflags='-L/usr/local/lib --enable-stripping
make

But I fail to compile ffmpeg, and error message is shown as below:

icc: command line warning #10121: overriding '-std=gnu99' with '-std=c99'
libavutil/cpu.c(48): error: identifier "ATOMIC_VAR_INIT" is undefined
static atomic_int cpu_flags = ATOMIC_VAR_INIT(-1);
^

libavutil/cpu.c(48): error: function call is not allowed in a constant expression
static atomic_int cpu_flags = ATOMIC_VAR_INIT(-1);
^

compilation aborted for libavutil/cpu.c (code 2)
make: *** [libavutil/cpu.o] Error 2
make: *** Waiting for unfinished jobs....
In file included from /opt/intel/include/xmmintrin.h(24),
from /opt/intel/include/emmintrin.h(39),
from /opt/intel/include/pmmintrin.h(21),
from /opt/intel/include/tmmintrin.h(14),
from /opt/intel/include/smmintrin.h(23),
from /opt/intel/include/nmmintrin.h(24),
from /opt/intel/include/wmmintrin.h(23),
from /opt/intel/include/immintrin.h(14),
from libavutil/x86/intmath.h(30),
from libavutil/intmath.h(33),
from libavutil/common.h(106),
from libavutil/display.h(25),
from libavutil/display.c(25):
/opt/intel/include/mmintrin.h(162): warning #2959: function prototype is missing the argument types
extern __m64 __ICL_INTRINCC _mm_setzero_si64();
^
Why?

icc version is shown as below:

icc (ICC) 14.0.2 20140120
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.

[root@push work]# icc --version
icc (ICC) 14.0.2 20140120
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.

Thanks

Regards

Andrew


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>