WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [solved] Compiler __atomic or __sync built-ins  (Read 2714 times)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
[solved] Compiler __atomic or __sync built-ins
« 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.
« Last Edit: June 13, 2014, 01:36:43 PM by Misalf »
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Compiler __atomic or __sync built-ins
« Reply #1 on: June 12, 2014, 06:10:20 PM »
You need to look into config.log for why they failed, as both are supported.
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Compiler __atomic or __sync built-ins
« Reply #2 on: June 12, 2014, 07:19:28 PM »
Uhm, I'm not experienced enough.
If anyone would take a look at the attachements...
Download a copy and keep it handy: Core book ;)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Compiler __atomic or __sync built-ins
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: [solved] Compiler __atomic or __sync built-ins
« Reply #4 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.
Download a copy and keep it handy: Core book ;)