Opened 4 years ago

Closed 3 years ago

#61647 closed defect (fixed)

mpv build fails on Mojave

Reported by: ShadSterling (Shad Sterling) Owned by: Ionic (Mihai Moldovan)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: i0ntempest, mopihopi, maf654321 (Manuel F.), quentinmit (Quentin Smith)
Port: mpv

Description

mpv @0.33.0 on macOS 10.14.6 (18G6042) with Xcode 11.3.1 (11C504)

:info:build <unknown>:0: error: unable to load standard library for target 'x86_64-apple-macosx10.14'

Attachments (2)

main.log (47.1 KB) - added by ShadSterling (Shad Sterling) 4 years ago.
mpv-0.33.0_0-main.log (48.2 KB) - added by mopihopi 4 years ago.
December 7 build failure

Download all attachments as: .zip

Change History (18)

Changed 4 years ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:1 Changed 4 years ago by i0ntempest

Looks like another bizarre swift problem. Can you please try building with Xcode 10.3? Make sure Xcode is installed at /Applications/Xcode.app just in case.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Cc: Ionic removed
Owner: set to Ionic
Status: newassigned

comment:3 Changed 4 years ago by mopihopi

Cc: mopihopi added

comment:4 Changed 4 years ago by mimeiners (Mirco Meiners)

Same problems during upgrade on macOS 10.14.6 with Xcode 11.2.1. Upgrade with Xcode 10.3 worked for me.

comment:5 Changed 4 years ago by ShadSterling (Shad Sterling)

I tried, but apparently deleting Xcode 11.3 didn't free up enough space to download and install Xcode 10.3. I'll try again if it's still a problem when I have more space.

comment:6 Changed 4 years ago by i0ntempest

Resolution: fixed
Status: assignedclosed

Should have been fixed in the last commit. Please reopen if it’s not.

Changed 4 years ago by mopihopi

Attachment: mpv-0.33.0_0-main.log added

December 7 build failure

comment:7 Changed 4 years ago by mopihopi

Resolution: fixed
Status: closedreopened

I have the same configuration and am still seeing this issue.

macOS 10.14.6 18G6042 Xcode 11.3.1 11C504

comment:8 Changed 4 years ago by maf654321 (Manuel F.)

Cc: maf654321 added

comment:9 Changed 4 years ago by quentinmit (Quentin Smith)

Cc: quentinmit added

comment:10 Changed 3 years ago by ra1nb0w

Same issue here with XCode 11.3.1

comment:11 Changed 3 years ago by ra1nb0w

cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
sudo ln -s MacOSX.sdk MacOSX10.14.sdk

fix the problem but it is a hack.

comment:12 Changed 3 years ago by i0ntempest

I might be wrong but I believe there’s no other way other than using old Xcode or using the hack above since you’re missing SDK of your system, building using a higher version SDK on old systems might introduce more problems.

comment:13 Changed 3 years ago by friguron (friguron)

I have been stuck on mpv 0.3.2 for months... My Mojave 10.14.6 and Xcode 11.1 (living under /Applications/Xcode_11_1.app directory) are uncapable of building mpv 0.3.3 I've used the symbolic link trick but no luck. Any other hint which doesn't involve installing Xcode 10.3 ?

comment:14 Changed 3 years ago by nocturne-mit

Same issue here with XCode 11.3.1 with Mojave 10.14.6.

ra1nb0w's symlink trick worked for me, but as mentioned, is a hack.

comment:15 Changed 3 years ago by quentinmit (Quentin Smith)

I experience this bug as well despite having the symlink mentioned above already in place. I was able to fix it by partially reverting [0f60885f6cac1b9e2b10415dc5ebb749172fc37e/macports-ports] and passing configure.env=MACOS_SDK_VERSION=10.14 to port install.

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:16 Changed 3 years ago by Ryan Schmidt <git@…>

Resolution: fixed
Status: reopenedclosed

In 20d1467595b202addcdd283f0677a00d7f820a21/macports-ports (master):

mpv: Set MACOS_SDK_VERSION and use latest SDK (https://github.com/macports/macports-ports/pull/14119)

Fixes build on Mac OS X 10.7 and on Xcode versions where the SDK version
does not match the OS version.

Closes: #61733
Closes: #61647
Closes: #62889
Closes: #63694

Note: See TracTickets for help on using tickets.