Open twilson90 opened 5 days ago
/opt/build64/toolchain/cppwinrt-prefix/src/cppwinrt-stamp/cppwinrt-install-*.log plz
I guess it's just a network problem.
It's not producing any logs:
I don't think it's a network problem, I tried to build in docker container a month ago and had the same issue.
So maybe it's because wget doesn't exist? I'm not sure if these dependencies automatically pull wget in.
That solved it! Thank you.
I'm almost there but I'm running into an error at the last hurdle. It's failing to build harfbuzz and/or libjxl, but the logs don't appear very helpful.
docker-build-log.txt harfbuzz-build-out.log libjxl-build-out.log
This issue is caused by OOM.
For historical reasons, the parallel build mechanism of this script is suboptimal: there is no “global thread pool.”
For example, on a 16-core system, Ninja performs 16 external projects simultaneously by default, and each external project tells Ninja/Make to emit 16 instances of the compiler, which in the worst case can result in 256 instances. This is fine for Clang, because Clang emits "cc1" in-process. However, GCC's driver and cc1 are separate executables, which can lead to hundreds of processes being created simultaneously and immediately exhaust all RAM.
As far as I know, Ninja does not yet support the GNU Make jobserver protocol, so we cannot fundamentally fix this issue. However, you can switch to Clang, or limit the top-level Ninja parallelism with -j
, for example, ninja -j2 mpv
, or add -DCPU_COUNT=2
in your CMake setup to restrict the number of concurrent compilers.
Thank you! With your help I've finally managed to 'successfully' build a windows executable. Some problems though:
-Dmanpage-build=disabled
)
- When I try running it in Windows it runs for a moment before exiting. Maybe the mpv master branch is currently having issues? Nothing helpful in the run-time log: log.txt
You need to add keep-open=yes
to keep mpv running without any input.
- I want to build my own fork of mpv. I tried replacing /home/user/packages/mpv with my own but the build fails: mpv-build-out.log
This is a GCC 14 false positive, you can add -Wno-error=incompatible-pointer-types
at https://github.com/shinchiro/mpv-winbuild-cmake/blob/9c153bced077742a874e4ed61c7a33ca90e92f17/packages/mpv.cmake#L56
To replace it with a different source, just replace GIT_REPOSITORY, and if your branch name is not master, specify GIT_TAG and GIT_REMOTE_NAME.
- Also where do I specify mpv build options? (stuff like
-Dmanpage-build=disabled
)
Just add it after CONFIGURE_COMMAND.
I've tried:
-Dc_args='-Wno-error=int-conversion -Wno-error=incompatible-pointer-types'
and
"-Dc_args='-Wno-error=int-conversion -Wno-error=incompatible-pointer-types'"
but it's failing to run the configure command.
There's an error log generated that I haven't been able to look at due to issues with Docker. Presumably though I'm just not setting the argument correctly.
(EDIT : my mistake, I had included an extra feature in the configure command without installing the prerequsites and this was causing it to fail)
Also the previous successful build was closing immediately on opening any media file, here's another log (no errors): log.txt
It looks like there was a segmentation fault and you need to follow the instructions here to get the backtrace.
If you are using clang to build mpv, you can use windbg to do this step in a simpler way via GUI.
mpv.exe caused an Access Violation at location 00007FF62055A15B in module mpv.exe Reading from location FFFFFFFFFFFFFFFF.
AddrPC Params
00007FF62055A15B 0000000000000000 000000000000000B 0000000000000000 mpv.exe!mpv_hook_continue+0x7cadb
00007FF62055EAFC 000077DD802E21F4 0000000000002F24 0000000000000002 mpv.exe!mpv_hook_continue+0x8147c
00007FF62055FBED 000002A600000000 0000000000000000 0000000000000000 mpv.exe!mpv_hook_continue+0x8256d
00007FF620561A17 000002A6F907C230 0000000000000000 0000000000000000 mpv.exe!mpv_hook_continue+0x84397
00007FF8D3AE9333 0000000000000000 0000000000000000 0000000000000000 ucrtbase.dll!thread_start<unsigned int (__cdecl*)(void *),1>+0x93
00007FF8D411257D 0000000000000000 0000000000000000 0000000000000000 KERNEL32.DLL!BaseThreadInitThunk+0x1d
00007FF8D61EAF08 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!RtlUserThreadStart+0x28
Can you reproduce this issue with a prebuilt mpv (here or upstream CI)? This looks like an mpv bug, if it can be reproduced using the CI version, please open an issue upstream.
I finally managed to build a working version by using -DGCC_ARCH=x86-64
instead of -DGCC_ARCH=x86-64-v3
Or possibly by running ninja -j2 mpv
instead of ninja -j4 mpv
A v3 build obviously requires a v3-capable CPU to run. By the way, GCC has serious flaws with AVX2/AVX512 CodeGen for Windows targets, while Clang is fine.
Dockerfile:
Not having much luck here!