[MPlayer-dev-eng] Failed to compile current SVN (36775)
Hans-Dieter Kosch
hdkosch at kabelbw.de
Sun Feb 2 21:14:20 CET 2014
Reimar Döffinger wrote:
> On 02.02.2014, at 03:02, Hans-Dieter Kosch <hdkosch at kabelbw.de> wrote:
>> Hi all,
>>
>> just updated my SVN copy to r36775, did a './configure; make all;' and got following error:
>>
>> CC libavfilter/avfilter.o
>> In file included from ./libavutil/atomic.h:29,
>> from libavfilter/avfilter.c:22:
>> ./libavutil/atomic_gcc.h: In function 'atomic_int_get_gcc':
>> ./libavutil/atomic_gcc.h:31: error: implicit declaration of function '__sync_synchronize'
>> ./libavutil/atomic_gcc.h: In function 'atomic_int_add_and_fetch_gcc':
>> ./libavutil/atomic_gcc.h:45: error: implicit declaration of function '__sync_add_and_fetch'
>> ./libavutil/atomic_gcc.h: In function 'atomic_ptr_cas_gcc':
>> ./libavutil/atomic_gcc.h:57: error: implicit declaration of function '__sync_val_compare_and_swap'
>>
>>
>> PS:
>> config args:
>> --enable-gui --extra-cflags=-I/usr/local/fontconfig/include --extra-ldflags=-L/usr/local/fontconfig/lib --enable-rpath
>> gcc:
>> 4.0.2
>
> That is too old to get useful multithreading performance with current FFmpeg (which is the main reason I did not bother implementing auto-detection of atomics).
> I think (but have not tried) that you should be able to build with it if you disable threads.
This didn't help. I worked around by
#define HAVE_ATOMICS_NATIVE 0
in Mplayer's 'configure'.
But anyway, thanks for pointing the direction.
Then I stuck compiling with:
make[1]: *** No rule to make target `libavcodec/dct32.c', needed by
`libavcodec/dct32_fixed.o'. Stop.
and more of such.
Fixed by deleting ffmpeg/ and doing a fresh checkout. No idea why the files were
missing.
Updating FFmpeg is thrilling, but now all is running again.
More information about the MPlayer-dev-eng
mailing list