iina / homebrew-mpv-iina

mpv homebrew tap for IINA.
GNU General Public License v3.0
17 stars 15 forks source link

Build issue on M1 Max 16" MBP on MacOS 12.3 #16

Closed noahgaertner closed 1 year ago

noahgaertner commented 2 years ago
Last 15 lines from /Users/noahgaertner/Library/Logs/Homebrew/mpv-iina/02.python3:
  File "/private/tmp/mpv-iina-20220318-61845-17ppylj/mpv-0.34.1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Configure.py", line 85, in execute
    super(ConfigurationContext,self).execute()
  File "/private/tmp/mpv-iina-20220318-61845-17ppylj/mpv-0.34.1/.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-iina-20220318-61845-17ppylj/mpv-0.34.1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Context.py", line 133, in recurse
    user_function(self)
  File "/private/tmp/mpv-iina-20220318-61845-17ppylj/mpv-0.34.1/wscript", line 955, in configure
    ctx.load('detections.compiler_swift')
  File "/private/tmp/mpv-iina-20220318-61845-17ppylj/mpv-0.34.1/.waf3-2.0.20-36f5354d605298f6a89c09e0c7ef6c1d/waflib/Configure.py", line 156, in load
    func(self)
  File "/private/tmp/mpv-iina-20220318-61845-17ppylj/mpv-0.34.1/waftools/detections/compiler_swift.py", line 201, in configure
    __find_macos_sdk(ctx)
  File "/private/tmp/mpv-iina-20220318-61845-17ppylj/mpv-0.34.1/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

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/iina-plus/homebrew-mpv-iina/issues

make: *** [depends] Error 1

Hi, When I run make on iina, I get this error - not sure what the cause is. Let me know if you need more information to debug, and I'll get back to you with it - just not sure what you require/would be helpful.

fourjuaneight commented 2 years ago

Yeah, same environment and having the same issue.

itslooklike commented 2 years ago

Same on macos 12.4 Intel

image
shinra-electric commented 2 years ago

I have the same issue on M1 with 12.4

Terminal Saved Output.txt

The only thing I noticed as strange was the line: ==> /opt/homebrew/opt/python@3.9/bin/python3 waf configure --prefix=/opt/homebre Note it says homebre and not homebrew

Edit:

Here is the 02.python3 log it mentions: 02.python3.txt

uiryuu commented 1 year ago

A quick search shows a similar issue in mpv: https://github.com/mpv-player/mpv/issues/8445

Please try whether or not you can still reproduce when executing brew install mpv --build-from-source.

uiryuu commented 1 year ago

We are using meson instead of waf from now, so python is removed from our dependency list!