-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Compile under macOS 12.7.5 and swift 5.7.2 #15591
Comments
can be reproduced on macOS 13 runner + xcode 14.2, see #15594 and https://github.com/mpv-player/mpv/actions/runs/12535858622/job/34958203214?pr=15594 @NekoAsakura any idea on this one? @jdp1024 also on a side note, for future issues please post the whole build + configuration log and not just an excerpt of the error. it's important to have all informations we can get. |
the above error can be circumvented (temporarily) by setting seems like the temp path used for the generation of bridging PCH files is not writable/readable or something. path comes from new error might be related to
|
i have a feeling we are hitting a linker bug here. especially when newer build tools don't exhibit this problem.
|
I also think the issue might be related to linker:
I’ll need some time to figure out how to resolve this issue. |
I tried
|
@NekoAsakura i hoped that there might be some easy fix for this, flag or something (to the clang linker/compiler, llvm etc this issue has pretty low priority and might not be fixed at all, because:
|
also might be interesting, though might be obvious (since it requests the classic/old linker). when adding
|
I was trying to trace which part is responsible for generating that .pch file but haven’t found any useful clues so far. I will keep an eye on it. Anyway, happy new year :) |
I know it's difficult to maintain for many OS versions, but there is something special about old Intel Macs: macOS 13/14/15 are all too heavy for them, some functions are limited, and the drivers are suboptimal. A working version of a daily-use tool like mpv means a lot. Happy new year. |
Important Information
Reproduction Steps
The commit
broke the building process under macOS 12.7.5 and swift 5.7.2.
After reverting the change of the commit 8d20b72 at the latest commit 83bb498 (use
swift
insteadswiftc
and use the correct compiler flags inosdep/mac/meson.build
, the build is successful.Expected Behavior
Successful build.
Actual Behavior
2
Log File
[238/244] clang -Ilibmpv.2.dylib.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -ITOOLS/osxbundle -Iosdep/mac -I/usr/local/Cellar/libass/0.17.3/include -I/usr/local/Cellar/libunibreak/6.1/include -I/usr/local/Cellar/harfbuzz/10.1.0/include/harfbuzz -I/usr/local/Cellar/glib/2.82.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.82.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.44/include -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/fribidi/1.0.16/include/fribidi -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/libpng/include/libpng16 -I/usr/local/include -I/usr/local/Cellar/libplacebo/7.349.0/include -I/usr/local/Cellar/shaderc/2024.4/include -I/usr/local/Cellar/vulkan-loader/1.4.304/../../../opt/vulkan-headers/include -I/usr/local/Cellar/little-cms2/2.16/include -I/usr/local/Cellar/libbluray/1.3.4/include -I/usr/local/Cellar/fontconfig/2.15.0/include -I/usr/local/include/luajit-2.1 -I/usr/local/Cellar/rubberband/4.0.0/include -I/usr/local/Cellar/libsamplerate/0.2.2/include -I/usr/local/Cellar/zimg/3.0.5/include -I/usr/local/opt/jpeg-turbo/include -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O2 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -MD -MQ libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o -MF libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o.d -o libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o -c ../video/out/vulkan/context_mac.m
FAILED: libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o
clang -Ilibmpv.2.dylib.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -ITOOLS/osxbundle -Iosdep/mac -I/usr/local/Cellar/libass/0.17.3/include -I/usr/local/Cellar/libunibreak/6.1/include -I/usr/local/Cellar/harfbuzz/10.1.0/include/harfbuzz -I/usr/local/Cellar/glib/2.82.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.82.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.44/include -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/fribidi/1.0.16/include/fribidi -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/libpng/include/libpng16 -I/usr/local/include -I/usr/local/Cellar/libplacebo/7.349.0/include -I/usr/local/Cellar/shaderc/2024.4/include -I/usr/local/Cellar/vulkan-loader/1.4.304/../../../opt/vulkan-headers/include -I/usr/local/Cellar/little-cms2/2.16/include -I/usr/local/Cellar/libbluray/1.3.4/include -I/usr/local/Cellar/fontconfig/2.15.0/include -I/usr/local/include/luajit-2.1 -I/usr/local/Cellar/rubberband/4.0.0/include -I/usr/local/Cellar/libsamplerate/0.2.2/include -I/usr/local/Cellar/zimg/3.0.5/include -I/usr/local/opt/jpeg-turbo/include -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O2 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -MD -MQ libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o -MF libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o.d -o libmpv.2.dylib.p/video_out_vulkan_context_mac.m.o -c ../video/out/vulkan/context_mac.m
In file included from ../video/out/vulkan/context_mac.m:21:
./osdep/mac/swift.h:240:9: fatal error: '/var/folders/xd/2_73x_qj2nb5dv9jlj_xrb8c0000gn/T/TemporaryDirectory.I5Lv4x/app_bridge_objc-1.pch' file not found
#import "/var/folders/xd/2_73x_qj2nb5dv9jlj_xrb8c0000gn/T/TemporaryDirectory.I5Lv4x/app_bridge_objc-1.pch"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[239/244] clang -Ilibmpv.2.dylib.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -ITOOLS/osxbundle -Iosdep/mac -I/usr/local/Cellar/libass/0.17.3/include -I/usr/local/Cellar/libunibreak/6.1/include -I/usr/local/Cellar/harfbuzz/10.1.0/include/harfbuzz -I/usr/local/Cellar/glib/2.82.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.82.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.44/include -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/fribidi/1.0.16/include/fribidi -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/libpng/include/libpng16 -I/usr/local/include -I/usr/local/Cellar/libplacebo/7.349.0/include -I/usr/local/Cellar/shaderc/2024.4/include -I/usr/local/Cellar/vulkan-loader/1.4.304/../../../opt/vulkan-headers/include -I/usr/local/Cellar/little-cms2/2.16/include -I/usr/local/Cellar/libbluray/1.3.4/include -I/usr/local/Cellar/fontconfig/2.15.0/include -I/usr/local/include/luajit-2.1 -I/usr/local/Cellar/rubberband/4.0.0/include -I/usr/local/Cellar/libsamplerate/0.2.2/include -I/usr/local/Cellar/zimg/3.0.5/include -I/usr/local/opt/jpeg-turbo/include -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O2 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -MD -MQ libmpv.2.dylib.p/video_out_hwdec_hwdec_vt_pl.m.o -MF libmpv.2.dylib.p/video_out_hwdec_hwdec_vt_pl.m.o.d -o libmpv.2.dylib.p/video_out_hwdec_hwdec_vt_pl.m.o -c ../video/out/hwdec/hwdec_vt_pl.m
[240/244] clang -Ilibmpv.2.dylib.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -ITOOLS/osxbundle -Iosdep/mac -I/usr/local/Cellar/libass/0.17.3/include -I/usr/local/Cellar/libunibreak/6.1/include -I/usr/local/Cellar/harfbuzz/10.1.0/include/harfbuzz -I/usr/local/Cellar/glib/2.82.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.82.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.44/include -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/fribidi/1.0.16/include/fribidi -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/libpng/include/libpng16 -I/usr/local/include -I/usr/local/Cellar/libplacebo/7.349.0/include -I/usr/local/Cellar/shaderc/2024.4/include -I/usr/local/Cellar/vulkan-loader/1.4.304/../../../opt/vulkan-headers/include -I/usr/local/Cellar/little-cms2/2.16/include -I/usr/local/Cellar/libbluray/1.3.4/include -I/usr/local/Cellar/fontconfig/2.15.0/include -I/usr/local/include/luajit-2.1 -I/usr/local/Cellar/rubberband/4.0.0/include -I/usr/local/Cellar/libsamplerate/0.2.2/include -I/usr/local/Cellar/zimg/3.0.5/include -I/usr/local/opt/jpeg-turbo/include -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O2 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -MD -MQ libmpv.2.dylib.p/osdep_mac_app_bridge.m.o -MF libmpv.2.dylib.p/osdep_mac_app_bridge.m.o.d -o libmpv.2.dylib.p/osdep_mac_app_bridge.m.o -c ../osdep/mac/app_bridge.m
FAILED: libmpv.2.dylib.p/osdep_mac_app_bridge.m.o
clang -Ilibmpv.2.dylib.p -I. -I.. -Icommon -Ietc -Iplayer/javascript -Iplayer/lua -Isub -ITOOLS/osxbundle -Iosdep/mac -I/usr/local/Cellar/libass/0.17.3/include -I/usr/local/Cellar/libunibreak/6.1/include -I/usr/local/Cellar/harfbuzz/10.1.0/include/harfbuzz -I/usr/local/Cellar/glib/2.82.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.82.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.44/include -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/fribidi/1.0.16/include/fribidi -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/opt/libpng/include/libpng16 -I/usr/local/include -I/usr/local/Cellar/libplacebo/7.349.0/include -I/usr/local/Cellar/shaderc/2024.4/include -I/usr/local/Cellar/vulkan-loader/1.4.304/../../../opt/vulkan-headers/include -I/usr/local/Cellar/little-cms2/2.16/include -I/usr/local/Cellar/libbluray/1.3.4/include -I/usr/local/Cellar/fontconfig/2.15.0/include -I/usr/local/include/luajit-2.1 -I/usr/local/Cellar/rubberband/4.0.0/include -I/usr/local/Cellar/libsamplerate/0.2.2/include -I/usr/local/Cellar/zimg/3.0.5/include -I/usr/local/opt/jpeg-turbo/include -fvisibility=hidden -fdiagnostics-color=always -Wall -Winvalid-pch -Wextra -std=c11 -O2 -g -D_FILE_OFFSET_BITS=64 -Wdisabled-optimization -Wempty-body -Wformat -Wimplicit-fallthrough -Wparentheses -Wpointer-arith -Wshadow -Wundef -Wvla -Wno-cast-function-type -Wno-format-zero-length -Wno-missing-field-initializers -Wno-sign-compare -Wno-switch -Wno-unused-parameter -fno-math-errno -fno-signed-zeros -fno-trapping-math -Werror=format-security -D_GNU_SOURCE -Wmissing-prototypes -Wstrict-prototypes -Werror=implicit-function-declaration -Wno-pointer-sign -MD -MQ libmpv.2.dylib.p/osdep_mac_app_bridge.m.o -MF libmpv.2.dylib.p/osdep_mac_app_bridge.m.o.d -o libmpv.2.dylib.p/osdep_mac_app_bridge.m.o -c ../osdep/mac/app_bridge.m
In file included from ../osdep/mac/app_bridge.m:23:
./osdep/mac/swift.h:240:9: fatal error: '/var/folders/xd/2_73x_qj2nb5dv9jlj_xrb8c0000gn/T/TemporaryDirectory.I5Lv4x/app_bridge_objc-1.pch' file not found
#import "/var/folders/xd/2_73x_qj2nb5dv9jlj_xrb8c0000gn/T/TemporaryDirectory.I5Lv4x/app_bridge_objc-1.pch"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
I carefully read all instruction and confirm that I did the following:
The text was updated successfully, but these errors were encountered: