Opened 3 years ago

Closed 3 years ago

#62323 closed defect (duplicate)

mpv @0.33.0_2: error: cannot convert value of type 'CALayerContentsFormat' to specified type 'String'

Reported by: cave-canem Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version:
Keywords: highsierra Cc:
Port: mpv

Description (last modified by ryandesign (Ryan Carsten Schmidt))

On macOS 10.13, ​mpv fails to build:

Failed to build mpv: command execution failed
:debug:build Error code: CHILDSTATUS 53341 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

See attached main.log.zip for details.

Attachments (1)

main.log.zip (14.7 KB) - added by cave-canem 3 years ago.
main.log

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by cave-canem

Attachment: main.log.zip added

main.log

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ionic@… removed
Description: modified (diff)
Keywords: highsierra added; High Sierra removed
Owner: set to Ionic
Status: newassigned
Summary: Failed to build mpv @0.33.0_2 Error code: CHILDSTATUS 53341 1mpv @0.33.0_2: error: cannot convert value of type 'CALayerContentsFormat' to specified type 'String'

The relevant error is actually:

osdep/macos/swift_compat.swift:29:38: error: cannot convert value of type 'CALayerContentsFormat' to specified type 'String'
    static let RGBA16Float: String = kCAContentsFormatRGBA16Float
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                 .rawValue
osdep/macos/swift_compat.swift:30:36: error: cannot convert value of type 'CALayerContentsFormat' to specified type 'String'
    static let RGBA8Uint: String = kCAContentsFormatRGBA8Uint
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                             .rawValue
osdep/macos/swift_compat.swift:31:36: error: cannot convert value of type 'CALayerContentsFormat' to specified type 'String'
    static let gray8Uint: String = kCAContentsFormatGray8Uint
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                             .rawValue

So this is a duplicate of #62177.

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed
Note: See TracTickets for help on using tickets.