mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.74k stars 2.93k forks source link

How I can get mpv app bundle for M1 chip (arm native) ? #9232

Closed ilqvya closed 3 years ago

ilqvya commented 3 years ago

Hello. I've seen github issues where support of a native arm mac was added

But in Installation section on your website I can't find the native arm

Brew loads it from https://laboratory.stolendata.net/~djinn/mpv_osx/

And it is intel only binary

Akemi commented 3 years ago

we don't provide binaries. try asking the ones building them. otherwise build it yourself.

ilqvya commented 3 years ago

Stupid useless product without builds! Build such big thing will take a few nights

But your girl on picture is cute <З

jeeb commented 3 years ago

There have been thoughts about adding automated builds, and it would require various amounts of effort be put into the Github Actions stuff. But definitely now possible as you can see with https://github.com/BtbN/FFmpeg-Builds/ as an example.

The two main bits (simplified) would be:

  1. Building base sysroots with all the deps (this would probably be a separate repo with tarball and/or Docker container release artifacts).
  2. Utilizing them in conjunction with the CI actions.

This is so that no single person would have to run stuff manually.

People are free to contribute towards such things and poke us on IRC or so. One thing with macOS is due to how the Github actions images already contain a lot of stuff installed through Homebrew. You'd have to clean a lot of that up, to only have python3, meson, ninja, autotools... so that the rest could be built outside.

ilqvya commented 3 years ago

Would be nice to see bundles attached in releases page to each release. Probably I'll take a look of configuring the GitHub actions later, ty

deus0ww commented 3 years ago

My Homebrew tap can build the app bundle for M1 and Intel. Tap: https://github.com/deus0ww/homebrew-tap

Note that the tap contains customized formulas for ffmpeg, luajit, and libass. If you want to use the normal formulas these (from homebrew-core), you'll need to clone the tap and modify it yourself.

ilqvya commented 3 years ago

@deus0ww, cool thanks! What i should enter in terminal to build this ?

deus0ww commented 3 years ago
  1. Install Homebrew. See: https://brew.sh/
  2. Install Xcode from the Mac App Store
  3. In Terminal: brew tap deus0ww/tap
  4. In Terminal: brew install --HEAD deus0ww/tap/mpv
  5. Wait 5-10 mins for everything to build

The bundle will be at:

Copy/alias/symlink that to the /Applications folder.

ilqvya commented 3 years ago

Something went wrong ;( image

deus0ww commented 3 years ago

Try with with verbose logging: brew install --HEAD -v deus0ww/tap/mpv

When it fails again, I'll take a look.

ilqvya commented 3 years ago

Here is all verbose logs:

Last login: Wed Sep 22 12:54:12 on ttys001
effolkronium@air ~ % brew install --HEAD -v deus0ww/tap/mpv
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and deus0ww/tap).
==> Updated Formulae
Updated 11 formulae.
==> Updated Casks
Updated 5 casks.

==> Cloning https://github.com/mpv-player/mpv.git
Updating /Users/effolkronium/Library/Caches/Homebrew/mpv--git
git config remote.origin.url https://github.com/mpv-player/mpv.git
git config remote.origin.fetch \+refs/heads/master:refs/remotes/origin/master
git config remote.origin.tagOpt --no-tags
git fetch origin
==> Checking out branch master
git checkout -f master --
Already on 'master'
Your branch is up to date with 'origin/master'.
git reset --hard origin/master --
HEAD is now at 5bf92b628d stream/dvbin: remove "full-featured" API includes
==> Installing mpv from deus0ww/tap
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/wscript_build.py /private/tmp/d20210924-38494-136jr8u/wscript_build.py
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/bootstrap.py /private/tmp/d20210924-38494-136jr8u/bootstrap.py
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/misc/. /private/tmp/d20210924-38494-136jr8u/misc
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/filters/. /private/tmp/d20210924-38494-136jr8u/filters
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/LICENSE.LGPL /private/tmp/d20210924-38494-136jr8u/LICENSE.LGPL
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/options/. /private/tmp/d20210924-38494-136jr8u/options
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/video/. /private/tmp/d20210924-38494-136jr8u/video
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/TOOLS/. /private/tmp/d20210924-38494-136jr8u/TOOLS
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/RELEASE_NOTES /private/tmp/d20210924-38494-136jr8u/RELEASE_NOTES
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/test/. /private/tmp/d20210924-38494-136jr8u/test
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/input/. /private/tmp/d20210924-38494-136jr8u/input
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/mpv_talloc.h /private/tmp/d20210924-38494-136jr8u/mpv_talloc.h
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/ci/. /private/tmp/d20210924-38494-136jr8u/ci
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/LICENSE.GPL /private/tmp/d20210924-38494-136jr8u/LICENSE.GPL
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/stream/. /private/tmp/d20210924-38494-136jr8u/stream
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/etc/. /private/tmp/d20210924-38494-136jr8u/etc
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/wscript /private/tmp/d20210924-38494-136jr8u/wscript
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/DOCS/. /private/tmp/d20210924-38494-136jr8u/DOCS
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/README.md /private/tmp/d20210924-38494-136jr8u/README.md
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/sub/. /private/tmp/d20210924-38494-136jr8u/sub
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/common/. /private/tmp/d20210924-38494-136jr8u/common
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/appveyor.yml /private/tmp/d20210924-38494-136jr8u/appveyor.yml
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/audio/. /private/tmp/d20210924-38494-136jr8u/audio
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/.gitignore /private/tmp/d20210924-38494-136jr8u/.gitignore
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/VERSION /private/tmp/d20210924-38494-136jr8u/VERSION
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/osdep/. /private/tmp/d20210924-38494-136jr8u/osdep
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/demux/. /private/tmp/d20210924-38494-136jr8u/demux
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/.github/. /private/tmp/d20210924-38494-136jr8u/.github
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/version.sh /private/tmp/d20210924-38494-136jr8u/version.sh
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/waftools/. /private/tmp/d20210924-38494-136jr8u/waftools
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/Copyright /private/tmp/d20210924-38494-136jr8u/Copyright
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/.git/. /private/tmp/d20210924-38494-136jr8u/.git
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/ta/. /private/tmp/d20210924-38494-136jr8u/ta
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/libmpv/. /private/tmp/d20210924-38494-136jr8u/libmpv
cp -pR /Users/effolkronium/Library/Caches/Homebrew/mpv--git/player/. /private/tmp/d20210924-38494-136jr8u/player
cp -pR /private/tmp/d20210924-38494-136jr8u/wscript_build.py /private/tmp/mpv-20210924-38494-uu703g/wscript_build.py
cp -pR /private/tmp/d20210924-38494-136jr8u/bootstrap.py /private/tmp/mpv-20210924-38494-uu703g/bootstrap.py
cp -pR /private/tmp/d20210924-38494-136jr8u/misc/. /private/tmp/mpv-20210924-38494-uu703g/misc
cp -pR /private/tmp/d20210924-38494-136jr8u/filters/. /private/tmp/mpv-20210924-38494-uu703g/filters
cp -pR /private/tmp/d20210924-38494-136jr8u/LICENSE.LGPL /private/tmp/mpv-20210924-38494-uu703g/LICENSE.LGPL
cp -pR /private/tmp/d20210924-38494-136jr8u/options/. /private/tmp/mpv-20210924-38494-uu703g/options
cp -pR /private/tmp/d20210924-38494-136jr8u/video/. /private/tmp/mpv-20210924-38494-uu703g/video
cp -pR /private/tmp/d20210924-38494-136jr8u/TOOLS/. /private/tmp/mpv-20210924-38494-uu703g/TOOLS
cp -pR /private/tmp/d20210924-38494-136jr8u/RELEASE_NOTES /private/tmp/mpv-20210924-38494-uu703g/RELEASE_NOTES
cp -pR /private/tmp/d20210924-38494-136jr8u/test/. /private/tmp/mpv-20210924-38494-uu703g/test
cp -pR /private/tmp/d20210924-38494-136jr8u/input/. /private/tmp/mpv-20210924-38494-uu703g/input
cp -pR /private/tmp/d20210924-38494-136jr8u/mpv_talloc.h /private/tmp/mpv-20210924-38494-uu703g/mpv_talloc.h
cp -pR /private/tmp/d20210924-38494-136jr8u/ci/. /private/tmp/mpv-20210924-38494-uu703g/ci
cp -pR /private/tmp/d20210924-38494-136jr8u/LICENSE.GPL /private/tmp/mpv-20210924-38494-uu703g/LICENSE.GPL
cp -pR /private/tmp/d20210924-38494-136jr8u/stream/. /private/tmp/mpv-20210924-38494-uu703g/stream
cp -pR /private/tmp/d20210924-38494-136jr8u/etc/. /private/tmp/mpv-20210924-38494-uu703g/etc
cp -pR /private/tmp/d20210924-38494-136jr8u/wscript /private/tmp/mpv-20210924-38494-uu703g/wscript
cp -pR /private/tmp/d20210924-38494-136jr8u/DOCS/. /private/tmp/mpv-20210924-38494-uu703g/DOCS
cp -pR /private/tmp/d20210924-38494-136jr8u/README.md /private/tmp/mpv-20210924-38494-uu703g/README.md
cp -pR /private/tmp/d20210924-38494-136jr8u/sub/. /private/tmp/mpv-20210924-38494-uu703g/sub
cp -pR /private/tmp/d20210924-38494-136jr8u/common/. /private/tmp/mpv-20210924-38494-uu703g/common
cp -pR /private/tmp/d20210924-38494-136jr8u/appveyor.yml /private/tmp/mpv-20210924-38494-uu703g/appveyor.yml
cp -pR /private/tmp/d20210924-38494-136jr8u/audio/. /private/tmp/mpv-20210924-38494-uu703g/audio
cp -pR /private/tmp/d20210924-38494-136jr8u/.gitignore /private/tmp/mpv-20210924-38494-uu703g/.gitignore
cp -pR /private/tmp/d20210924-38494-136jr8u/VERSION /private/tmp/mpv-20210924-38494-uu703g/VERSION
cp -pR /private/tmp/d20210924-38494-136jr8u/osdep/. /private/tmp/mpv-20210924-38494-uu703g/osdep
cp -pR /private/tmp/d20210924-38494-136jr8u/demux/. /private/tmp/mpv-20210924-38494-uu703g/demux
cp -pR /private/tmp/d20210924-38494-136jr8u/.github/. /private/tmp/mpv-20210924-38494-uu703g/.github
cp -pR /private/tmp/d20210924-38494-136jr8u/version.sh /private/tmp/mpv-20210924-38494-uu703g/version.sh
cp -pR /private/tmp/d20210924-38494-136jr8u/waftools/. /private/tmp/mpv-20210924-38494-uu703g/waftools
cp -pR /private/tmp/d20210924-38494-136jr8u/Copyright /private/tmp/mpv-20210924-38494-uu703g/Copyright
cp -pR /private/tmp/d20210924-38494-136jr8u/.git/. /private/tmp/mpv-20210924-38494-uu703g/.git
cp -pR /private/tmp/d20210924-38494-136jr8u/ta/. /private/tmp/mpv-20210924-38494-uu703g/ta
cp -pR /private/tmp/d20210924-38494-136jr8u/libmpv/. /private/tmp/mpv-20210924-38494-uu703g/libmpv
cp -pR /private/tmp/d20210924-38494-136jr8u/player/. /private/tmp/mpv-20210924-38494-uu703g/player
chmod -Rf +w /private/tmp/d20210924-38494-136jr8u
==> /opt/homebrew/opt/python@3.9/bin/python3 bootstrap.py
Downloading https://waf.io/waf-2.0.20...
Checksum verified.
==> /opt/homebrew/opt/python@3.9/bin/python3 waf configure --prefix=/opt/homebrew/Cellar/mpv/HEAD-5bf92b6 --confdir=/opt/homebrew/etc/mpv --datadir=/opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv --docdir=/opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/doc/mpv --mandir=/opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/man --zshdir=/opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/zsh/site-functions --disable-html-build --enable-libmpv-shared --swift-flags=-O -wmo
Setting top to                           : /private/tmp/mpv-20210924-38494-uu703g 
Setting out to                           : /private/tmp/mpv-20210924-38494-uu703g/build 
Checking for waf version in 1.8.4-2.1.0  : ok 
Checking for program 'cc'                : clang 
Checking for program 'pkg-config'        : /opt/homebrew/Library/Homebrew/shims/mac/super/pkg-config 
Checking for program 'ar'                : /usr/bin/ar 
Checking for program 'rst2html'          : /opt/homebrew/opt/docutils/bin/rst2html 
Checking for program 'rst2man'           : /opt/homebrew/opt/docutils/bin/rst2man 
Checking for program 'rst2pdf'           : not found 
Checking for program 'windres'           : not found 
Checking for program 'perl'              : /usr/bin/perl 
Checking for 'clang' (C compiler)        : clang 
Detected target OS:                      : os-darwin 
Checking for macOS SDK                   : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk (version found: 11.4) 
Checking for swift (Swift compiler)      : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift 
Checking for dynamic Swift Library       : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx 
Checking for static Swift Library        : not found 
Checking for compiler flags -std=c11     : yes 
Checking for compiler flags -Werror -Werror=implicit-function-declaration : yes 
Checking for compiler flags -Werror -Wno-error=deprecated-declarations    : yes 
Checking for compiler flags -Werror -Wno-error=unused-function            : yes 
Checking for compiler flags -Werror -Wempty-body                          : yes 
Checking for compiler flags -Werror -Wdisabled-optimization               : yes 
Checking for compiler flags -Werror -Wstrict-prototypes                   : yes 
Checking for compiler flags -Werror -Wno-format-zero-length               : yes 
Checking for compiler flags -Werror -Werror=format-security               : yes 
Checking for compiler flags -Werror -Wno-redundant-decls                  : yes 
Checking for compiler flags -Werror -Wvla                                 : yes 
Checking for compiler flags -Werror -Wno-format-truncation                : no 
Checking for compiler flags -Werror -Wimplicit-fallthrough                : yes 
Checking for compiler flags -Werror -fno-math-errno                       : yes 
Checking for LGPL (version 2.1 or later) build                            : disabled 
Checking for GPL (version 2 or later) build                               : yes 
Checking for mpv CLI player                                               : yes 
Checking for shared library                                               : yes 
Checking for static library                                               : disabled 
Checking for static build                                                 : disabled 
Checking for whether to include binary compile time                       : yes 
Checking for whether to optimize                                          : yes 
Checking for whether to compile-in debugging information                  : yes 
Checking for unit tests (development only)                                : disabled 
Checking for enable ta leak report by default (development only)          : disabled 
Checking for manpage generation                                           : yes 
Checking for html manual generation                                       : disabled 
Checking for pdf manual generation                                        : disabled 
Checking for dynamic loader                                               : yes 
Checking for C plugins                                                    : yes 
Checking for inline assembly (currently without effect)                   : yes 
Checking for GCC vector instructions                                      : yes 
Checking for generate a clang compilation database                        : disabled 
Checking for static Swift linking                                         : disabled 
Checking for compiler support for noexecstack                             : no 
Checking for linker support for --nxcompat --no-seh --dynamicbase         : no 
Checking for -lm                                                          : yes 
Checking for MinGW                                                        : os-win32 not found 
Checking for POSIX environment                                            : yes 
Checking for Android environment                                          : no 
Checking for tvOS environment                                             : no 
Checking for Android EGL support                                          : android not found 
Checking for development environment                                      : yes 
Checking for macOS Swift build tools                                      : yes (version found: 5.5) 
Checking for Universal Windows Platform                                   : disabled 
Checking for win32 desktop APIs                                           : os-win32 not found 
Checking for internal pthread wrapper for win32 (Vista+)                  : posix found 
Checking for POSIX threads                                                : yes 
Checking for pthread runtime debugging wrappers                           : disabled 
Checking for C11 stdatomic.h                                              : yes 
Checking for linking with -lrt                                            : no 
Checking for iconv                                                        : yes 
Checking for w32/dos paths                                                : os-win32 not found 
Checking for glob() POSIX support                                         : yes 
Checking for glob() win32 replacement                                     : posix found 
Checking for any glob() support                                           : yes 
Checking for vt.h                                                         : no 
Checking for consio.h                                                     : no 
Checking for gbm.h                                                        : no 
Checking for GLIBC API for setting thread name                            : no 
Checking for OSX API for setting thread name                              : yes 
Checking for BSD API for setting thread name                              : osx-thread-name found 
Checking for BSD's fstatfs()                                              : yes 
Checking for Linux's fstatfs()                                            : os-linux not found 
Checking for Linux's input-event-codes.h                                  : no 
Checking for Lua                                                          : yes (version found: luajit) 
Checking for Javascript (MuJS backend)                                    : yes 
Checking for SSA/ASS support                                              : yes 
Checking for zlib                                                         : yes 
Checking for Bluray support                                               : yes 
Checking for dvdnav support                                               : disabled 
Checking for cdda support (libcdio)                                       : disabled 
Checking for uchardet support                                             : yes 
Checking for librubberband support                                        : yes 
Checking for libzimg support (high quality software scaler)               : yes 
Checking for LCMS2 support                                                : yes 
Checking for VapourSynth filter bridge                                    : yes 
Checking for libarchive wrapper for reading zip files and more            : yes 
Checking for DVB input module                                             : disabled 
Checking for SDL2                                                         : disabled 
Checking for SDL2 gamepad input                                           : sdl2 not found 
Checking for FFmpeg library                                               : yes 
Checking for libavdevice                                                  : yes 
Checking for Disable all known FFmpeg ABI violations                      : yes 
Checking for SDL2 audio output                                            : sdl2 not found 
Checking for OSSv4 audio output                                           : no 
Checking for PulseAudio audio output                                      : no ('libpulse >= 1.0' not found) 
Checking for JACK audio output                                            : no ('jack' not found) 
Checking for OpenAL audio output                                          : disabled 
Checking for OpenSL ES audio output                                       : no 
Checking for ALSA audio output                                            : no ('alsa >= 1.0.18' not found) 
Checking for CoreAudio audio output                                       : yes 
Checking for AudioUnit output for iOS                                     : no 
Checking for WASAPI audio output                                          : os-win32 not found 
Checking for SDL2 video output                                            : sdl2 not found 
Checking for Cocoa                                                        : yes 
Checking for DRM                                                          : vt.h not found 
Checking for GBM                                                          : gbm.h not found 
Checking for wayland-scanner                                              : no 
Checking for wayland-protocols                                            : no ('wayland-protocols >= 1.15' not found) 
Checking for Wayland                                                      : wayland-protocols not found 
Checking for Linux's memfd_create()                                       : wayland not found 
Checking for X11                                                          : no ('x11 >= 1.0.0 xscrnsaver >= 1.0.0 xext >= 1.0.0 xinerama >= 1.0.0 xrandr >= 1.2.0' not found) 
Checking for Xv video output                                              : x11 not found 
Checking for OpenGL Cocoa Backend                                         : yes 
Checking for OpenGL X11/GLX (deprecated/legacy)                           : disabled 
Checking for Raspberry Pi support                                         : disabled 
Checking for EGL 1.4                                                      : no ('egl' not found) 
Checking for OpenGL X11 EGL Backend                                       : x11 not found 
Checking for OpenGL DRM EGL Backend                                       : drm not found 
Checking for OpenGL Wayland Backend                                       : wayland not found 
Checking for OpenGL Win32 Backend                                         : win32-desktop not found 
Checking for OpenGL/DirectX Interop Backend                               : gl-win32 not found 
Checking for OpenGL ANGLE headers                                         : os-win32 not found 
Checking for OpenGL Win32 ANGLE Library                                   : egl-angle not found 
Checking for OpenGL Win32 ANGLE Backend                                   : egl-angle not found 
Checking for VDPAU acceleration                                           : x11 not found 
Checking for VDPAU with OpenGL/X11                                        : vdpau not found 
Checking for VAAPI acceleration                                           : x11 not found 
Checking for VAAPI (X11 support)                                          : vaapi not found 
Checking for VAAPI (Wayland support)                                      : vaapi not found 
Checking for VAAPI (DRM/EGL support)                                      : vaapi not found 
Checking for VAAPI EGL on X11                                             : vaapi-x11 not found 
Checking for VAAPI EGL                                                    : vaapi-x-egl not found 
Checking for CACA                                                         : no ('caca >= 0.99.beta18' not found) 
Checking for JPEG support                                                 : yes 
Checking for Direct3D support                                             : win32-desktop not found 
Checking for libshaderc SPIR-V compiler (shared library)                  : no 
Checking for libshaderc SPIR-V compiler (static library)                  : no 
Checking for libshaderc SPIR-V compiler                                   : shaderc-shared not found 
Checking for SPIRV-Cross SPIR-V shader converter (shared library)         : no ('spirv-cross-c-shared' not found) 
Checking for SPIRV-Cross SPIR-V shader converter (static library)         : no ('spirv-cross' not found) 
Checking for SPIRV-Cross SPIR-V shader converter                          : spirv-cross-shared not found 
Checking for Direct3D 11 video output                                     : win32-desktop not found 
Checking for iOS OpenGL ES hardware decoding interop support              : no 
Checking for OpenGL without platform-specific code (e.g. for libmpv)      : yes 
Checking for OpenGL context support                                       : yes 
Checking for libplacebo support                                           : no ('libplacebo >= 2.72.0' not found) 
Checking for Vulkan context support                                       : libplacebo not found 
Checking for VAAPI Vulkan                                                 : vaapi not found 
Checking for EGL helper functions                                         : egl not found 
Checking for Sixel                                                        : no ('libsixel >= 1.5' not found) 
Checking for libavcodec videotoolbox hwaccel                              : yes 
Checking for Videotoolbox with OpenGL                                     : yes 
Checking for D3D11VA hwaccel                                              : os-win32 not found 
Checking for DXVA2 hwaccel                                                : d3d-hwaccel not found 
Checking for OpenGL/DirectX Interop Backend DXVA2 interop                 : gl-dxinterop not found 
Checking for CUDA Headers and dynamic loader                              : no ('ffnvcodec >= 8.2.15.7' not found) 
Checking for CUDA acceleration                                            : ffnvcodec not found 
Checking for CUDA with graphics interop                                   : cuda-hwaccel not found 
Checking for Raspberry Pi MMAL hwaccel                                    : rpi not found 
Checking for w32 executable                                               : os-win32 not found 
Checking for macOS Touch Bar support                                      : yes 
Checking for macOS 10.11 SDK Features                                     : yes 
Checking for macOS 10.12.2 SDK Features                                   : yes 
Checking for macOS 10.14 SDK Features                                     : yes 
Checking for macOS Media Player support                                   : yes 
Checking for macOS libmpv backend                                         : yes 
Adding conditional Swift flags:                                           : yes 
Writing configuration header:                                             : config.h 
'configure' finished successfully (6.146s)
==> /opt/homebrew/opt/python@3.9/bin/python3 waf install
Waf: Entering directory `/private/tmp/mpv-20210924-38494-uu703g/build'
[1/1] Compiling version.sh
[  2/469] Processing osdep/macOS_swift.o,osdep/macOS_swift.h,osdep/macOS_swift.swiftmodule: osdep/macos/log_helper.swift osdep/macos/libmpv_helper.swift osdep/macos/mpv_helper.swift osdep/macos/swift_extensions.swift osdep/macos/swift_compat.swift osdep/macos/remote_command_center.swift video/out/mac/common.swift video/out/mac/view.swift video/out/mac/window.swift video/out/mac/title_bar.swift video/out/cocoa_cb_common.swift video/out/mac/gl_layer.swift -> build/osdep/macOS_swift.o build/osdep/macOS_swift.h build/osdep/macOS_swift.swiftmodule
[  3/469] Compiling TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns
[  4/469] Compiling etc/mpv-icon-8bit-16x16.png
[  5/469] Compiling etc/mpv-icon-8bit-32x32.png
[  6/469] Compiling etc/mpv-icon-8bit-64x64.png
[  7/469] Compiling etc/mpv-icon-8bit-128x128.png
[  8/469] Compiling etc/input.conf
[  9/469] Compiling etc/builtin.conf
[ 10/469] Compiling sub/osd_font.otf
[ 11/469] Compiling player/lua/defaults.lua
[ 12/469] Compiling player/lua/assdraw.lua
[ 13/469] Compiling player/lua/options.lua
[ 14/469] Compiling player/lua/osc.lua
[ 15/469] Compiling player/lua/ytdl_hook.lua
[ 16/469] Compiling player/lua/stats.lua
[ 17/469] Compiling player/lua/console.lua
[ 18/469] Compiling player/lua/auto_profiles.lua
[ 19/469] Compiling player/javascript/defaults.js
[ 20/469] Creating build/generated/ebml_types.h
[ 21/469] Creating build/generated/ebml_defs.c
[ 22/469] Compiling libmpv/mpv.def
[ 23/469] Compiling libmpv/mpv.def
[ 24/469] Compiling libmpv/mpv.pc.in
[ 25/469] Compiling DOCS/man/mpv.rst
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/doc/mpv/input.conf (from etc/input.conf)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/doc/mpv/mplayer-input.conf (from etc/mplayer-input.conf)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/doc/mpv/mpv.conf (from etc/mpv.conf)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/doc/mpv/restore-old-bindings.conf (from etc/restore-old-bindings.conf)
+ symlink /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/lib/libmpv.dylib (to libmpv.1.109.0.dylib)
+ symlink /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/lib/libmpv.1.dylib (to libmpv.1.109.0.dylib)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/include/mpv/opengl_cb.h (from libmpv/opengl_cb.h)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/include/mpv/render.h (from libmpv/render.h)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/include/mpv/client.h (from libmpv/client.h)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/include/mpv/render_gl.h (from libmpv/render_gl.h)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/include/mpv/stream_cb.h (from libmpv/stream_cb.h)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/zsh/site-functions/_mpv (from etc/_mpv.zsh)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/applications/mpv.desktop (from etc/mpv.desktop)
- install /opt/homebrew/etc/mpv/encoding-profiles.conf (from etc/encoding-profiles.conf)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/bash-completion/completions/mpv (from etc/mpv.bash-completion)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/icons/hicolor/16x16/apps/mpv.png (from etc/mpv-icon-8bit-16x16.png)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/icons/hicolor/32x32/apps/mpv.png (from etc/mpv-icon-8bit-32x32.png)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/icons/hicolor/64x64/apps/mpv.png (from etc/mpv-icon-8bit-64x64.png)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/lib/pkgconfig/mpv.pc (from build/libmpv/mpv.pc)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/icons/hicolor/128x128/apps/mpv.png (from etc/mpv-icon-8bit-128x128.png)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/icons/hicolor/scalable/apps/mpv.svg (from etc/mpv-gradient.svg)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/mpv/icons/hicolor/symbolic/apps/mpv-symbolic.svg (from etc/mpv-symbolic.svg)
+ install /opt/homebrew/Cellar/mpv/HEAD-5bf92b6/share/man/man1/mpv.1 (from build/DOCS/man/mpv.1)
/private/tmp/mpv-20210924-38494-uu703g/osdep/macos/libmpv_helper.swift:153:20: warning: 'CGLFlushDrawable' was deprecated in macOS 10.14: OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)
        if !skip { CGLFlushDrawable(ctx) }
                   ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/view.swift:35:9: warning: 'wantsBestResolutionOpenGLSurface' was deprecated in macOS 10.14: Use NSOpenGLView instead.
        wantsBestResolutionOpenGLSurface = true
        ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:39:29: warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
            if material == .light || material == .dark {
                            ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:39:51: warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
            if material == .light || material == .dark {
                                                  ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:42:36: warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
                      material == .mediumLight || material == .ultraDark
                                   ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:42:64: warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
                      material == .mediumLight || material == .ultraDark
                                                               ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:219:41: warning: 'dark' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
        case "14", "dark":      return .dark
                                        ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:220:41: warning: 'light' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
        case "15", "light":     return .light
                                        ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:230:49: warning: 'mediumLight' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
            case "16", "mediumLight":   return .mediumLight
                                                ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift:231:49: warning: 'ultraDark' was deprecated in macOS 10.14: Use a semantic material instead.  To force the appearance of a view hierarchy, set the `appearance` property to an appropriate NSAppearance value.
            case "17", "ultraDark":     return .ultraDark
                                                ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:70:16: warning: 'CAOpenGLLayer' was deprecated in macOS 10.14: OpenGL is deprecated
class GLLayer: CAOpenGLLayer {
               ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:117:9: warning: 'CGLSetParameter' was deprecated in macOS 10.14: OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)
        CGLSetParameter(cglContext, kCGLCPSwapInterval, &i)
        ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:190:13: warning: 'NSDisableScreenUpdates()' was deprecated in macOS 10.11: As of 10.11 it is not generally necessary to take explicit action to achieve visual atomicity. +[NSAnimationContext runAnimationGroup:] and other similar methods can be used when a stronger than normal need for visual atomicity is required. The NSAnimationContext methods do not suffer from the same performance problems as NSDisableScreenUpdates.
            NSDisableScreenUpdates()
            ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:197:13: warning: 'NSEnableScreenUpdates()' was deprecated in macOS 10.11: As of 10.11 it is not generally necessary to take explicit action to achieve visual atomicity. +[NSAnimationContext runAnimationGroup:] and other similar methods can be used when a stronger than normal need for visual atomicity is required. The NSAnimationContext methods do not suffer from the same performance problems as NSEnableScreenUpdates.
            NSEnableScreenUpdates()
            ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:283:23: warning: 'CGLChoosePixelFormat' was deprecated in macOS 10.14: OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)
                err = CGLChoosePixelFormat(format, &pix, &npix)
                      ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:299:36: warning: 'CGLErrorString' was deprecated in macOS 10.14: OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)
        let errS = String(cString: CGLErrorString(err))
                                   ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:312:21: warning: 'CGLCreateContext' was deprecated in macOS 10.14: OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)
        let error = CGLCreateContext(pixelFormat, nil, &context)
                    ^
/private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift:315:40: warning: 'CGLErrorString' was deprecated in macOS 10.14: OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)
            let errS = String(cString: CGLErrorString(error))
                                       ^
<unknown>:0: error: fatal error encountered while reading from module 'Foundation'; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0.  Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -enable-objc-interop -emit-objc-header -parse-as-library -g -O -O -wmo -D HAVE_GPL -D HAVE_CPLAYER -D HAVE_LIBMPV_SHARED -D HAVE_BUILD_DATE -D HAVE_OPTIMIZE -D HAVE_DEBUG_BUILD -D HAVE_LIBDL -D HAVE_CPLUGINS -D HAVE_ASM -D HAVE_VECTOR -D HAVE_LIBM -D HAVE_POSIX -D HAVE_POSIX_OR_MINGW -D HAVE_SWIFT -D HAVE_PTHREADS -D HAVE_STDATOMIC -D HAVE_ICONV -D HAVE_GLOB_POSIX -D HAVE_GLOB -D HAVE_OSX_THREAD_NAME -D HAVE_BSD_FSTATFS -D HAVE_LUA -D HAVE_LUAJIT -D HAVE_JAVASCRIPT -D HAVE_LIBASS -D HAVE_ZLIB -D HAVE_LIBBLURAY -D HAVE_UCHARDET -D HAVE_RUBBERBAND -D HAVE_ZIMG -D HAVE_LCMS2 -D HAVE_VAPOURSYNTH -D HAVE_LIBARCHIVE -D HAVE_FFMPEG -D HAVE_LIBAVDEVICE -D HAVE_FFMPEG_STRICT_ABI -D HAVE_COREAUDIO -D HAVE_COCOA -D HAVE_GL_COCOA -D HAVE_JPEG -D HAVE_PLAIN_GL -D HAVE_GL -D HAVE_VIDEOTOOLBOX_HWACCEL -D HAVE_VIDEOTOOLBOX_GL -D HAVE_MACOS_TOUCHBAR -D HAVE_MACOS_10_11_FEATURES -D HAVE_MACOS_10_12_2_FEATURES -D HAVE_MACOS_10_14_FEATURES -D HAVE_MACOS_MEDIA_PLAYER -D HAVE_MACOS_COCOA_CB -module-name macOS_swift -emit-module-path /private/tmp/mpv-20210924-38494-uu703g/build/osdep/macOS_swift.swiftmodule -import-objc-header /private/tmp/mpv-20210924-38494-uu703g/osdep/macOS_swift_bridge.h -emit-objc-header-path /private/tmp/mpv-20210924-38494-uu703g/build/osdep/macOS_swift.h -o /private/tmp/mpv-20210924-38494-uu703g/build/osdep/macOS_swift.o /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/log_helper.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/libmpv_helper.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/mpv_helper.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/swift_extensions.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/swift_compat.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/remote_command_center.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/common.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/view.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/window.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/cocoa_cb_common.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift -I. -I/private/tmp/mpv-20210924-38494-uu703g
1.  Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
2.  
3.  While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for macOS_swift.macOS_swift)
4.  While running pass #13001 SILModuleTransform "MandatorySILLinker".
5.  While deserializing SIL function "free"
6.  *** DESERIALIZATION FAILURE ***
module 'Foundation' with full misc version '5.5(5.5)/Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)'
top-level value not found
Cross-reference to module 'Darwin'
... free
... with type (UnsafeMutableRawPointer) -> ()
Notes:
* 'free' in module 'SwiftShims' was filtered out.
* 'free' in module 'macOS_swift' was filtered out.
* 'free' in module 'IOKit' was filtered out.
* 'free' in module 'CoreFoundation' was filtered out.
* 'free' in module 'Darwin' was filtered out.
* 'free' in module 'SwiftOverlayShims' was filtered out.
* 'free' in module 'Dispatch' was filtered out.
* 'free' in module 'os_workgroup' was filtered out.
* 'free' in module 'os_object' was filtered out.
* 'free' in module 'ObjectiveC' was filtered out.
* 'free' in module 'MachO' was filtered out.
* 'free' in module 'libkern' was filtered out.
* 'free' in module 'Cocoa' was filtered out.
* 'free' in module 'CoreData' was filtered out.
* 'free' in module 'Foundation' was filtered out.
* 'free' in module 'CoreGraphics' was filtered out.
* 'free' in module 'ApplicationServices' was filtered out.
* 'free' in module 'ImageIO' was filtered out.
* 'free' in module 'CoreText' was filtered out.
* 'free' in module 'ColorSync' was filtered out.
* 'free' in module 'CoreServices' was filtered out.
* 'free' in module 'Security' was filtered out.
* 'free' in module 'XPC' was filtered out.
* 'free' in module 'launch' was filtered out.
* 'free' in module 'CFNetwork' was filtered out.
* 'free' in module 'DiskArbitration' was filtered out.
* 'free' in module 'CloudKit' was filtered out.
* 'free' in module 'CoreLocation' was filtered out.
* 'free' in module 'AppKit' was filtered out.
* 'free' in module 'QuartzCore' was filtered out.
* 'free' in module 'CoreVideo' was filtered out.
* 'free' in module 'Metal' was filtered out.
* 'free' in module 'IOSurface' was filtered out.
* 'free' in module 'OpenGL' was filtered out.
* 'free' in module 'CoreImage' was filtered out.
* 'free' in module 'MediaPlayer' was filtered out.
* 'free' in module 'AVFoundation' was filtered out.
* 'free' in module 'AVFAudio' was filtered out.
* 'free' in module 'AudioToolbox' was filtered out.
* 'free' in module 'CoreAudio' was filtered out.
* 'free' in module 'CoreAudioTypes' was filtered out.
* 'free' in module 'CoreMIDI' was filtered out.
* 'free' in module 'CoreMedia' was filtered out.
* 'free' in module 'simd' was filtered out.
* 'free' in module 'MediaToolbox' was filtered out.
* 'free' in module 'UniformTypeIdentifiers' was filtered out.

Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift                    0x0000000108cd45e4 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift                    0x0000000108cd36ec llvm::sys::RunSignalHandlers() + 128
2  swift                    0x0000000108cd4c24 SignalHandler(int) + 292
3  libsystem_platform.dylib 0x00000001837fec44 _sigtramp + 56
4  libsystem_pthread.dylib  0x00000001837b343c pthread_kill + 292
5  libsystem_c.dylib        0x00000001836fb454 abort + 124
6  swift                    0x0000000104f801e0 swift::ModuleFileSharedCore::outputDiagnosticInfo(llvm::raw_ostream&) const + 0
7  swift                    0x0000000104f258f4 swift::ModuleFile::fatal(llvm::Error) const + 428
8  swift                    0x0000000104f5a494 swift::SILDeserializer::readSILFunctionChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, swift::SILFunction*, llvm::StringRef, bool, bool) + 8256
9  swift                    0x0000000104f6b768 swift::SILDeserializer::lookupSILFunction(swift::SILFunction*, bool) + 588
10 swift                    0x0000000104bb6954 swift::SILLinkerVisitor::maybeAddFunctionToWorklist(swift::SILFunction*) + 240
11 swift                    0x0000000104bb6b68 swift::SILLinkerVisitor::processFunction(swift::SILFunction*) + 220
12 swift                    0x00000001053bc22c (anonymous namespace)::SILLinker::run() + 212
13 swift                    0x00000001052bdbac swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 2260
14 swift                    0x00000001052d4a64 swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 56
15 swift                    0x00000001052c45b0 llvm::Expected<swift::ExecuteSILPipelineRequest::OutputType> swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest>(swift::ExecuteSILPipelineRequest const&) + 476
16 swift                    0x00000001052c614c swift::runSILDiagnosticPasses(swift::SILModule&) + 176
17 swift                    0x0000000104b89e18 swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 72
18 swift                    0x0000000104a69d00 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1008
19 swift                    0x0000000104a5d718 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7048
20 swift                    0x00000001049b7e6c main + 932
21 libdyld.dylib            0x00000001837d1430 start + 4

Waf: Leaving directory `/private/tmp/mpv-20210924-38494-uu703g/build'
Build failed
 -> task in 'osdep/macOS_swift.o,osdep/macOS_swift.h,osdep/macOS_swift.swiftmodule' failed with exit status -6 (run with -v to display more information)

==> Formula
Tap: deus0ww/tap
Path: /opt/homebrew/Library/Taps/deus0ww/homebrew-tap/mpv.rb
==> Configuration
HOMEBREW_VERSION: 3.2.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: 109f24fd601177dea4a754b43efe684903db2a83
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4bc5aef7ad7b1671b9e7962e38355b5b5482e6a0
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.0.0 build 1300
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-arm64
CLT: 13.0.0.0.1.1630607135
Xcode: 13.0
Rosetta 2: false
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CFLAGS: -mcpu=native -Ofast -flto=thin -funroll-loops -fomit-frame-pointer -ffunction-sections -fdata-sections -fstrict-vtable-pointers -fwhole-program-vtables -fforce-emit-vtables 
CXXFLAGS: -mcpu=native -Ofast -flto=thin -funroll-loops -fomit-frame-pointer -ffunction-sections -fdata-sections -fstrict-vtable-pointers -fwhole-program-vtables -fforce-emit-vtables 
CPPFLAGS: -mcpu=native -Ofast -flto=thin -funroll-loops -fomit-frame-pointer -ffunction-sections -fdata-sections -fstrict-vtable-pointers -fwhole-program-vtables -fforce-emit-vtables 
LDFLAGS: -mcpu=native -Ofast -flto=thin -funroll-loops -fomit-frame-pointer -ffunction-sections -fdata-sections -fstrict-vtable-pointers -fwhole-program-vtables -fforce-emit-vtables  -dead_strip
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew/opt/libffi:/opt/homebrew/opt/openssl@1.1:/opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/icu4c:/opt/homebrew/opt/libarchive:/opt/homebrew/opt/luajit-openresty:/opt/homebrew
CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /opt/homebrew/opt/python@3.9/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/luajit-openresty/lib/pkgconfig:/opt/homebrew/opt/libarchive/lib/pkgconfig:/opt/homebrew/opt/python@3.9/lib/pkgconfig:/opt/homebrew/opt/aom/lib/pkgconfig:/opt/homebrew/opt/dav1d/lib/pkgconfig:/opt/homebrew/opt/libpng/lib/pkgconfig:/opt/homebrew/opt/freetype/lib/pkgconfig:/opt/homebrew/opt/fribidi/lib/pkgconfig:/opt/homebrew/opt/fontconfig/lib/pkgconfig:/opt/homebrew/opt/libffi/lib/pkgconfig:/opt/homebrew/opt/pcre/lib/pkgconfig:/opt/homebrew/opt/openssl@1.1/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/glib/lib/pkgconfig:/opt/homebrew/opt/libpthread-stubs/lib/pkgconfig:/opt/homebrew/opt/libxau/lib/pkgconfig:/opt/homebrew/opt/libxdmcp/lib/pkgconfig:/opt/homebrew/opt/libxcb/lib/pkgconfig:/opt/homebrew/opt/libx11/lib/pkgconfig:/opt/homebrew/opt/libxext/lib/pkgconfig:/opt/homebrew/opt/libxrender/lib/pkgconfig:/opt/homebrew/opt/lzo/lib/pkgconfig:/opt/homebrew/opt/pixman/lib/pkgconfig:/opt/homebrew/opt/cairo/lib/pkgconfig:/opt/homebrew/opt/gobject-introspection/lib/pkgconfig:/opt/homebrew/opt/graphite2/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/harfbuzz/lib/pkgconfig:/opt/homebrew/opt/libass/lib/pkgconfig:/opt/homebrew/opt/cunit/lib/pkgconfig:/opt/homebrew/opt/libmysofa/lib/pkgconfig:/opt/homebrew/opt/fdk-aac/lib/pkgconfig:/opt/homebrew/opt/frei0r/lib/pkgconfig:/opt/homebrew/opt/libbluray/lib/pkgconfig:/opt/homebrew/opt/libogg/lib/pkgconfig:/opt/homebrew/opt/flac/lib/pkgconfig:/opt/homebrew/opt/libvorbis/lib/pkgconfig:/opt/homebrew/opt/opus/lib/pkgconfig:/opt/homebrew/opt/libsndfile/lib/pkgconfig:/opt/homebrew/opt/libbs2b/lib/pkgconfig:/opt/homebrew/opt/libsoxr/lib/pkgconfig:/opt/homebrew/opt/libvidstab/lib/pkgconfig:/opt/homebrew/opt/libvpx/lib/pkgconfig:/opt/homebrew/opt/opencore-amr/lib/pkgconfig:/opt/homebrew/opt/jpeg/lib/pkgconfig:/opt/homebrew/opt/libtiff/lib/pkgconfig:/opt/homebrew/opt/little-cms2/lib/pkgconfig:/opt/homebrew/opt/openjpeg/lib/pkgconfig:/opt/homebrew/opt/rav1e/lib/pkgconfig:/opt/homebrew/opt/libsamplerate/lib/pkgconfig:/opt/homebrew/opt/rubberband/lib/pkgconfig:/opt/homebrew/opt/sdl2/lib/pkgconfig:/opt/homebrew/opt/speex/lib/pkgconfig:/opt/homebrew/opt/srt/lib/pkgconfig:/opt/homebrew/opt/webp/lib/pkgconfig:/opt/homebrew/opt/leptonica/lib/pkgconfig:/opt/homebrew/opt/tesseract/lib/pkgconfig:/opt/homebrew/opt/theora/lib/pkgconfig:/opt/homebrew/opt/x264/lib/pkgconfig:/opt/homebrew/opt/x265/lib/pkgconfig:/opt/homebrew/opt/libsodium/lib/pkgconfig:/opt/homebrew/opt/zeromq/lib/pkgconfig:/opt/homebrew/opt/zimg/lib/pkgconfig:/opt/homebrew/opt/ffmpeg/lib/pkgconfig:/opt/homebrew/opt/libb2/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/mujs/lib/pkgconfig:/opt/homebrew/opt/uchardet/lib/pkgconfig:/opt/homebrew/opt/vapoursynth/lib/pkgconfig:/opt/homebrew/opt/gmp/lib/pkgconfig:/opt/homebrew/opt/xorgproto/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/docutils/bin:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/python@3.9/bin:/opt/homebrew/opt/aom/bin:/opt/homebrew/opt/dav1d/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/fribidi/bin:/opt/homebrew/opt/fontconfig/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/pcre/bin:/opt/homebrew/opt/gdbm/bin:/opt/homebrew/opt/openssl@1.1/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/glib/bin:/opt/homebrew/opt/cairo/bin:/opt/homebrew/opt/gobject-introspection/bin:/opt/homebrew/opt/graphite2/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/harfbuzz/bin:/opt/homebrew/opt/libmysofa/bin:/opt/homebrew/opt/fdk-aac/bin:/opt/homebrew/opt/lame/bin:/opt/homebrew/opt/libbluray/bin:/opt/homebrew/opt/flac/bin:/opt/homebrew/opt/libsndfile/bin:/opt/homebrew/opt/libbs2b/bin:/opt/homebrew/opt/jpeg/bin:/opt/homebrew/opt/libtiff/bin:/opt/homebrew/opt/little-cms2/bin:/opt/homebrew/opt/openjpeg/bin:/opt/homebrew/opt/rav1e/bin:/opt/homebrew/opt/libsamplerate/bin:/opt/homebrew/opt/rubberband/bin:/opt/homebrew/opt/sdl2/bin:/opt/homebrew/opt/srt/bin:/opt/homebrew/opt/giflib/bin:/opt/homebrew/opt/webp/bin:/opt/homebrew/opt/leptonica/bin:/opt/homebrew/opt/tesseract/bin:/opt/homebrew/opt/x264/bin:/opt/homebrew/opt/x265/bin:/opt/homebrew/opt/zeromq/bin:/opt/homebrew/opt/ffmpeg/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/libarchive/bin:/opt/homebrew/opt/luajit-openresty/bin:/opt/homebrew/opt/mujs/bin:/opt/homebrew/opt/uchardet/bin:/opt/homebrew/opt/vapoursynth/bin:/opt/homebrew/opt/subliminal/bin:/opt/homebrew/opt/coreutils/bin:/opt/homebrew/opt/dockutil/bin:/opt/homebrew/opt/tag/bin:/opt/homebrew/opt/trash/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: deus0ww/tap/mpv HEAD-5bf92b6 did not build
Logs:
     /Users/effolkronium/Library/Logs/Homebrew/mpv/02.python3.cc
     /Users/effolkronium/Library/Logs/Homebrew/mpv/00.options.out
     /Users/effolkronium/Library/Logs/Homebrew/mpv/01.python3
     /Users/effolkronium/Library/Logs/Homebrew/mpv/build
     /Users/effolkronium/Library/Logs/Homebrew/mpv/03.python3
     /Users/effolkronium/Library/Logs/Homebrew/mpv/02.python3
Do not report this issue to Homebrew/brew or Homebrew/core!

Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.
effolkronium@air ~ % 
deus0ww commented 3 years ago

I updated my Xcode/Command Line Tools to the current version (the one you're using) and now mine is failing, too.

@Akemi Could you help us look into this? Swift 5.4 works but 5.5 doesn't.

avih commented 3 years ago
<unknown>:0: error: fatal error encountered while reading from module 'Foundation'; please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0.  Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -enable-objc-interop -emit-objc-header -parse-as-library -g -O -O -wmo -D HAVE_GPL -D HAVE_CPLAYER -D HAVE_LIBMPV_SHARED -D HAVE_BUILD_DATE -D HAVE_OPTIMIZE -D HAVE_DEBUG_BUILD -D HAVE_LIBDL -D HAVE_CPLUGINS -D HAVE_ASM -D HAVE_VECTOR -D HAVE_LIBM -D HAVE_POSIX -D HAVE_POSIX_OR_MINGW -D HAVE_SWIFT -D HAVE_PTHREADS -D HAVE_STDATOMIC -D HAVE_ICONV -D HAVE_GLOB_POSIX -D HAVE_GLOB -D HAVE_OSX_THREAD_NAME -D HAVE_BSD_FSTATFS -D HAVE_LUA -D HAVE_LUAJIT -D HAVE_JAVASCRIPT -D HAVE_LIBASS -D HAVE_ZLIB -D HAVE_LIBBLURAY -D HAVE_UCHARDET -D HAVE_RUBBERBAND -D HAVE_ZIMG -D HAVE_LCMS2 -D HAVE_VAPOURSYNTH -D HAVE_LIBARCHIVE -D HAVE_FFMPEG -D HAVE_LIBAVDEVICE -D HAVE_FFMPEG_STRICT_ABI -D HAVE_COREAUDIO -D HAVE_COCOA -D HAVE_GL_COCOA -D HAVE_JPEG -D HAVE_PLAIN_GL -D HAVE_GL -D HAVE_VIDEOTOOLBOX_HWACCEL -D HAVE_VIDEOTOOLBOX_GL -D HAVE_MACOS_TOUCHBAR -D HAVE_MACOS_10_11_FEATURES -D HAVE_MACOS_10_12_2_FEATURES -D HAVE_MACOS_10_14_FEATURES -D HAVE_MACOS_MEDIA_PLAYER -D HAVE_MACOS_COCOA_CB -module-name macOS_swift -emit-module-path /private/tmp/mpv-20210924-38494-uu703g/build/osdep/macOS_swift.swiftmodule -import-objc-header /private/tmp/mpv-20210924-38494-uu703g/osdep/macOS_swift_bridge.h -emit-objc-header-path /private/tmp/mpv-20210924-38494-uu703g/build/osdep/macOS_swift.h -o /private/tmp/mpv-20210924-38494-uu703g/build/osdep/macOS_swift.o /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/log_helper.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/libmpv_helper.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/mpv_helper.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/swift_extensions.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/swift_compat.swift /private/tmp/mpv-20210924-38494-uu703g/osdep/macos/remote_command_center.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/common.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/view.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/window.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/title_bar.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/cocoa_cb_common.swift /private/tmp/mpv-20210924-38494-uu703g/video/out/mac/gl_layer.swift -I. -I/private/tmp/mpv-20210924-38494-uu703g
1.  Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
2.  
3.  While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for macOS_swift.macOS_swift)
4.  While running pass #13001 SILModuleTransform "MandatorySILLinker".
5.  While deserializing SIL function "free"
6.  *** DESERIALIZATION FAILURE ***
module 'Foundation' with full misc version '5.5(5.5)/Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)'
top-level value not found
Cross-reference to module 'Darwin'
... free
... with type (UnsafeMutableRawPointer) -> ()

To me it looks like an internal swift issue/error/bug, and it tells you where to report it to - to Apple. As far as I can tell, it doesn't seem to point to an issue of the invocation (by the mpv build system) or at the (mpv) code.

deus0ww commented 3 years ago

@avih Yeah, this is obviously a problem with the Swift 5.5 compiler.

More weirdness: With --disable-macos-10-14-features, the Swift compiler still fails but doesn't crash anymore:

Waf: Leaving directory `/private/tmp/mpv-20210924-62673-t495yx/build' Build failed -> task in 'osdep/macOS_swift.o,osdep/macOS_swift.h,osdep/macOS_swift.swiftmodule' failed with exit status 1 (run with -v to display more information)

Workaround:

ilqvya commented 3 years ago

It failed again in python3 script. But when I rerun the build with -v flag, it has been successfully compiled ;)

==> Installing deus0ww/tap/mpv --HEAD ==> /opt/homebrew/opt/python@3.9/bin/python3 bootstrap.py ==> /opt/homebrew/opt/python@3.9/bin/python3 waf configure --prefix=/opt/homebre Last 15 lines from /Users/effolkronium/Library/Logs/Homebrew/mpv/02.python3: File "/private/tmp/mpv-20210925-21511-1kwdoo1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Configure.py", line 85, in execute super(ConfigurationContext,self).execute() File "/private/tmp/mpv-20210925-21511-1kwdoo1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Context.py", line 92, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/private/tmp/mpv-20210925-21511-1kwdoo1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Context.py", line 133, in recurse user_function(self) File "/private/tmp/mpv-20210925-21511-1kwdoo1/wscript", line 951, in configure ctx.load('detections.compiler_swift') File "/private/tmp/mpv-20210925-21511-1kwdoo1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Configure.py", line 156, in load func(self) File "/private/tmp/mpv-20210925-21511-1kwdoo1/waftools/detections/compiler_swift.py", line 201, in configure __find_macos_sdk(ctx) File "/private/tmp/mpv-20210925-21511-1kwdoo1/waftools/detections/compiler_swift.py", line 158, in __find_macos_sdk minor = string.ascii_lowercase.index(version_parts.group(2).lower()) ValueError: substring not found

Do not report this issue to Homebrew/brew or Homebrew/core!

Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. effolkronium@air ~ % swift --version Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57) Target: arm64-apple-darwin20.6.0

ilqvya commented 3 years ago

Want to say thanks to @deus0ww and @avih. It was a long road but now I can watch anime in native arm player on my m1 air

Hope sometimes this project will have CI with auto-deployed bundles for all platforms

FacepalmMute commented 3 years ago
  1. Install Homebrew. See: https://brew.sh/
  2. Install Xcode from the Mac App Store
  3. In Terminal: brew tap deus0ww/tap
  4. In Terminal: brew install --HEAD deus0ww/tap/mpv
  5. Wait 5-10 mins for everything to build

The bundle will be at:

  • On macOS 10.14 Intel: /usr/local/Cellar/mpv/HEAD-#######/mpv.app
  • On macOS 11 M1: /opt/homebrew/Cellar/mpv/HEAD-#######/mpv.app

Copy/alias/symlink that to the /Applications folder.

Thank you! You all can also speed up the building by using HOMEBREW_MAKE_JOBS=8 brew install --HEAD deus0ww/tap/mpv instead.

deus0ww commented 3 years ago

You all can also speed up the building by using HOMEBREW_MAKE_JOBS=8 brew install --HEAD deus0ww/tap/mpv instead.

No need. HOMEBREW_MAKE_JOBS already defaults to the number of available CPU cores.

Source: https://docs.brew.sh/Manpage

FacepalmMute commented 3 years ago

You are right, nvm

hotsno commented 3 years ago

Is anyone else having issues with not being able to toggle fullscreen with this build? I can set the fullscreen option in mpv.conf, but I can't get it to toggle fullscreen while opened (pressing "f", "esc", double clicking mouse)

Akemi commented 3 years ago

without a log none can tell. but i bet you are using the old deprecated cocoa output, since it's 'broken' there.

deus0ww commented 3 years ago

No problem with fullscreen for me (using vo=libmpv).

hotsno commented 3 years ago

When I add --vo=libmpv to mpv.conf files don't open. Here's the log: https://pastebin.com/kXEX0MMX

Akemi commented 3 years ago

your log is kinda useless since you are not opening a file. otherwise it would throw you a warning.

your build is without swift and cocoa-cb support and can only use the deprecated old cocoa backend. that's your problem.

also open a new issue if you have problems and don't use an old closed issue.

jeeb commented 3 years ago

As noted in https://bugs.swift.org/browse/SR-15288 (and a76527772eb52084c61241b89cfb42ce59f6f6a4), updating to Xcode 13.1 fixes the Swift compiler issue.

Akemi commented 3 years ago

related issue #9282.