Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed on macOS 15.1.1 (24B2091) #15397

Closed
6 tasks done
Tsukimeizi opened this issue Nov 27, 2024 · 1 comment · Fixed by #15396
Closed
6 tasks done

build failed on macOS 15.1.1 (24B2091) #15397

Tsukimeizi opened this issue Nov 27, 2024 · 1 comment · Fixed by #15396
Labels

Comments

@Tsukimeizi
Copy link

mpv Information

No response

Other Information

- macOS version: 15.1.1 (24B2091)
- Source of mpv: 7899a28
- Latest known working version: ad1fb9f
- Issue started after the following happened: meson compile -C build

Reproduction Steps

meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /opt/homebrew/bin/ninja -C /usr/local/src/mpv/build
ninja: Entering directory `/usr/local/src/mpv/build'
[2/224] Generating osdep/mac/swift_targets with a custom command
FAILED: osdep/mac/swift.swiftmodule osdep/mac/swift.h osdep/mac/swift.o
/Library/Developer/CommandLineTools/usr/bin/swift -frontend -c -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -enable-objc-interop -emit-objc-header -parse-as-library -swift-version 5 -g -O -D HAVE_MACOS_10_15_4_FEATURES -D HAVE_MACOS_11_FEATURES -D HAVE_MACOS_12_FEATURES -D HAVE_MACOS_COCOA_CB -D HAVE_MACOS_TOUCHBAR -D HAVE_MACOS_MEDIA_PLAYER -module-name swift -emit-module-path osdep/mac/swift.swiftmodule -import-objc-header /usr/local/src/mpv/osdep/mac/app_bridge_objc.h -emit-objc-header-path osdep/mac/swift.h -o osdep/mac/swift.o ../osdep/mac/application.swift ../osdep/mac/app_hub.swift ../osdep/mac/event_helper.swift ../osdep/mac/input_helper.swift ../osdep/mac/libmpv_helper.swift ../osdep/mac/log_helper.swift ../osdep/mac/menu_bar.swift ../osdep/mac/option_helper.swift ../osdep/mac/precise_timer.swift ../osdep/mac/presentation.swift ../osdep/mac/swift_compat.swift ../osdep/mac/swift_extensions.swift ../osdep/mac/type_helper.swift ../video/out/mac/common.swift ../video/out/mac/title_bar.swift ../video/out/mac/view.swift ../video/out/mac/window.swift ../video/out/cocoa_cb_common.swift ../video/out/mac/gl_layer.swift ../video/out/mac_common.swift ../video/out/mac/metal_layer.swift ../osdep/mac/remote_command_center.swift ../osdep/mac/touch_bar.swift -I. -I/usr/local/src/mpv -I/opt/homebrew/Cellar/libplacebo/7.349.0/include -I/opt/homebrew/Cellar/ffmpeg/7.1_3/include
../osdep/mac/app_hub.swift:59:62: error: cannot convert value of type 'UnsafeMutablePointer<mpv_global>?' to expected argument type 'OpaquePointer?'

...

../video/out/mac_common.swift:30:50: error: cannot convert value of type 'UnsafeMutablePointer<mpv_global>?' to expected argument type 'OpaquePointer?'
28 | @objc init(_ vo: UnsafeMutablePointer) {
29 | let log = LogHelper(mp_log_new(vo, vo.pointee.log, "mac"))
30 | let option = OptionHelper(vo, vo.pointee.global)
| `- error: cannot convert value of type 'UnsafeMutablePointer<mpv_global>?' to expected argument type 'OpaquePointer?'
31 | super.init(option, log)
32 | eventsLock.withLock { self.vo = vo }
ninja: build stopped: subcommand failed.

Expected Behavior

build ok.

Actual Behavior

build failed.

Log File

../video/out/mac_common.swift:30:50: error: cannot convert value of type 'UnsafeMutablePointer<mpv_global>?' to expected argument type 'OpaquePointer?'
28 | @objc init(_ vo: UnsafeMutablePointer) {
29 | let log = LogHelper(mp_log_new(vo, vo.pointee.log, "mac"))
30 | let option = OptionHelper(vo, vo.pointee.global)
| `- error: cannot convert value of type 'UnsafeMutablePointer<mpv_global>?' to expected argument type 'OpaquePointer?'
31 | super.init(option, log)
32 | eventsLock.withLock { self.vo = vo }
ninja: build stopped: subcommand failed.

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@Akemi
Copy link
Member

Akemi commented Nov 27, 2024

will be fixed with #15396.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants