[FFmpeg-trac] #2363(avutil:new): Default mingw32 compilation is broken by atomic

FFmpeg trac at avcodec.org
Thu Mar 14 20:35:11 CET 2013


#2363: Default mingw32 compilation is broken by atomic
-------------------------------------+-------------------------------------
               Reporter:  cehoyos    |                  Owner:
                   Type:  defect     |                 Status:  new
               Priority:  important  |              Component:  avutil
                Version:  git-       |               Keywords:  win
  master                             |  regression
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 By default, FFmpeg uses w32threads if available.
 The addition of "atomic" broke the default compilation on mingw32 because
 it does not provide MemoryBarrier, work-around is to use --disable-
 w32threads or --enable-pthreads.
 {{{
 $ ./configure

 ...

 $ grep W32THREADS config.h
 #define HAVE_W32THREADS 1
 $ make libavutil/atomic.o
 CC      libavutil/atomic.o
 libavutil/atomic.c:101:2: Fehler: #error "Threading is enabled, but there
 is no implementation of atomic operations available"
 common.mak:48: recipe for target 'libavutil/atomic.o' failed
 make: *** [libavutil/atomic.o] Error 1
 }}}
 configure should at least abort if compilation cannot succeed.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2363>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list