Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Misalf on June 12, 2014, 01:56:24 PM

Title: [solved] Compiler __atomic or __sync built-ins
Post by: Misalf on June 12, 2014, 01:56:24 PM
I'm trying to compile mpv (http://mpv.io/) on Core 5.3 using supplied helper build scripts (https://github.com/mpv-player/mpv-build).
It seems all necessary deps are available in the Core 5.x repo.

After quite some time of compiling I get this error:

Code: [Select]
Checking for compiler support for __atomic built-ins              : no
Checking for compiler support for __sync built-ins                : no
Checking for compiler support for usable thread synchronization built-ins : not found any of sync-builtins, atomic-builtins
your compiler must support either __atomic or __sync built-ins


Thanks.
Title: Re: Compiler __atomic or __sync built-ins
Post by: curaga on June 12, 2014, 06:10:20 PM
You need to look into config.log for why they failed, as both are supported.
Title: Re: Compiler __atomic or __sync built-ins
Post by: Misalf on June 12, 2014, 07:19:28 PM
Uhm, I'm not experienced enough.
If anyone would take a look at the attachements...
Title: Re: Compiler __atomic or __sync built-ins
Post by: curaga on June 13, 2014, 04:23:37 AM
Oh, it requires 64-bit atomics, which are not supported on 486. You need to raise the minimum CPU requirement (-march=) to at least pentium.
Title: Re: [solved] Compiler __atomic or __sync built-ins
Post by: Misalf on June 13, 2014, 01:40:07 PM
Thanks for looking at that log gibberish, curaga!

I used  -march=pentium  and compilation fails at a much later point... q:
Will have to figure out why but my question was answered.