[FFmpeg-devel] [PATCH]Allow to compile with --disable-optimizations with icc

Måns Rullgård mans
Mon May 3 15:59:58 CEST 2010


Carl Eugen Hoyos <cehoyos at ag.or.at> writes:

> M?ns Rullg?rd <mans <at> mansr.com> writes:
>
>> > Currently, icc compilation fails with --disable-optimizations, because
>> > icc does not optimize symbols away with -O0:
>> > ...
>> > libavdevice/alldevices.c:43: undefined reference to `audio_beos_muxer'
>> > ...
>> > libavcodec/allcodecs.c:58: undefined reference to `h264_dxva2_hwaccel'
>> > ...
>> 
>> Unable to reproduce with icc 11.1.
>
> Which version exactly did you test?

Latest svn of course.

> $ svn co svn://ffmpeg.org/ffmpeg/trunk disable-opt
> $ cd disable-opt
> $ ./configure --cc=/opt/intel/Compiler/11.1/069/bin/intel64/icc
> --disable-optimizations --disable-asm
> $ make
> ...
> ... undefined reference to `avfilter_version'
> (and many more)

$ ./configure --cpu=core2 --enable-gpl --cc=icc --disable-optimizations

> Only using --disable-optimizations (without --disable-mmx or
> disable-asm) fails earlier with a different error that is also fixed

Works for both with and without --disable-asm.

> by the patch: Since compiling ffmpeg with -O0 fails in any case (and
> is not supposed to be fixed), I don't think it is worth fixing this
> problem differently.

I don't see a problem.

> Please ok the patch, Carl Eugen

Not until I'm convinced there is a problem, and when I am, I'll fix it
differently.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list