[FFmpeg-devel] I compile the latest ffmpeg version on git and errors when compile in atomic.c

Michael Niedermayer michaelni at gmx.at
Thu Mar 28 17:53:26 CET 2013


On Thu, Mar 28, 2013 at 12:14:45PM -0400, compn wrote:
> On Thu, 28 Mar 2013 16:29:20 +0100, Michael Niedermayer wrote:
> >On Thu, Mar 28, 2013 at 04:25:06AM -0300, James Almer wrote:
> >> On 20/03/13 8:55 AM, Michael Niedermayer wrote:
> >> > On Wed, Mar 20, 2013 at 01:23:33AM -0300, James Almer wrote:
> >> >> On 20/03/13 12:43 AM, Wei Gao wrote:
> >> >>> Hi
> >> >>> libavutil/atomic.c:101:2: error: #error "Threading is enabled, but there is
> >> >>> no implementation of atomic operations available"
> >> >>>
> >> >>> my environment is mingw gcc version 4.6.2 (GCC)
> >> >>>
> >> >>> Thanks
> >> >>> Best regards
> >> >>
> >> >> Run configure using --cpu=i686 or your computer's CPU.
> >> >> That will fix it.
> >> > 
> >> > If noone fixes mingw + threads + <i686 then please add a warning to
> >> > configure so the user knows what happened and how he can workaround it
> >> 
> >> Adding something like
> >> 
> >> enabled_any w32threads os2threads && disabled_all sync_val_compare_and_swap machine_rw_barrier MemoryBarrier &&
> >>                                      die "Something here"
> >> 
> >> to configure should be enough.
> >> I'm however not sure what message to use for the die() call. Maybe something like "Atomic operations are not 
> >> available with the selected thread type and CPU target combination"?
> >
> >the message should point to the i686 or i486 workaround if it works
> 
> can we set the host to i686 if compiled with mingw32 ?
> i dont think there are many windows arm systems, and if so ,the winrt
> guys are using ming-w64 already?

i486 should be enough, and yes, patch welcome!
i cant implement it as i cant test ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130328/e1b4e452/attachment.asc>


More information about the ffmpeg-devel mailing list