Opened 13 months ago

Last modified 3 months ago

#67166 reopened defect

mpv @0.35.1, mpv-legacy: C11 atomics are required; you may need a newer compiler

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: mavericks mountainlion Cc: i0ntempest, mrkapqa, barracuda156
Port: mpv, mpv-legacy

Change History (12)

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

The Portfile already says:

# C11 atomics is mandatory from version 0.33.0
compiler.c_standard 2011

but C11 atomics are not guaranteed by compiler.c_standard 2011. You'll need to add code like 08560e52b1246a5f303ebf5ceb5c5bfdc508c6f1/macports-ports.

comment:2 Changed 13 months ago by i0ntempest

Resolution: fixed
Status: assignedclosed

In 08e684cf1d3384dfb8b8feaf4b3d0bf31176f6a7/macports-ports (master):

mpv: blacklist clang < 700 for stdatomic

Closes: #67166

comment:4 Changed 13 months ago by i0ntempest

Resolution: fixed
Status: closedreopened

comment:5 Changed 13 months ago by jmroot (Joshua Root)

There was already a blacklist in place for *gcc* cc macports-*, so that leaves no possible compilers on the affected systems.

Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option

comment:6 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: mrkapqa added

Has duplicate #67218.

comment:7 Changed 11 months ago by kencu (Ken)

If you delete this blacklisting out of the Portfile:

        # Force clang compiler as installed by Xcode's CLT's... hopefully.
        compiler.blacklist-append   *gcc* cc macports-*

the port builds through on 10.9 without any hassles:

$ port -v installed mpv
The following ports are currently installed:
  mpv @0.35.1_3+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python311+rubberband+x11 (active) requested_variants='' platform='darwin 13' archs='x86_64' date='2023-06-05T13:23:16-0700'

and runs without crashing.

comment:8 Changed 11 months ago by kencu (Ken)

all the fancy stuff about libarclite mentioned in the Portfile for 10.7 support and forcing Xcode needs to be re-thought and probably all removed.

comment:9 Changed 11 months ago by kencu (Ken)

I just built mpv on 10.7 as well, deleting the above block.

It builds with no issues, using clang-15.

I recall working though some of this arc stuff on 10.7 with Josh a year ago or so here #66188

comment:10 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: barracuda156 added
Port: mpv-legacy added
Summary: mpv @0.35.1: C11 atomics are required; you may need a newer compilermpv @0.35.1, mpv-legacy: C11 atomics are required; you may need a newer compiler

Has duplicate #69260 for mpv-legacy.

comment:11 in reply to:  8 Changed 3 months ago by barracuda156

Replying to kencu:

all the fancy stuff about libarclite mentioned in the Portfile for 10.7 support and forcing Xcode needs to be re-thought and probably all removed.

I think I just restored portfile as it was before. I did not test it on 10.7 and have no set-up. Should I remove that chunk? For Intel I can just follow your advice here. For PPC it is likely still broken, I will deal with that once my Leopard set-up is back to life, since it must be tested there as well.

comment:12 Changed 3 months ago by mrkapqa

this trick

# Force clang compiler as installed by Xcode's CLT's... hopefully.
        compiler.blacklist-append   *gcc* cc macports-*

as provided by kencu would function with mpv-legacy for mavericks, but not mountain lion< not needed for yosemite as mpv-legacy would build through, like on sierra.

however, there would be no audio playback on the computer from the mpv-legacy via terminal, from mavericks through sierra, it state like

Could not open/initialize audio device -> no sound.

so probably there is some error.

Note: See TracTickets for help on using tickets.