m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.49k stars 257 forks source link

[mingw64] [repo] Failing to compile libpng #2678

Closed Ashitemaru closed 1 month ago

Ashitemaru commented 1 month ago

I pulled down the repo and double clicked the .bat file to run, the libpng kept failing at the make stage.

I checked the .Plo files mentioned in the log and found it incomplete like this:

// .deps/png.Plo
[...]
C:/media-autobuild_suite/msys64/mingw64/include/shellapi.h:
C:/media-autobuild_suite/msys64/mingw64/include/winperf.h:
C:/media-autobuild_suite/msys64/mingw64/include/winsock.h:
C:/media-autobuild_suite/msys64/mingw64/include/_bsd_types.h:
C:/media-autobuild_suite/msys64/mingw64/include/inaddr.h:
C:/media-autobuild_suite/msys64/mingw64/include/psdk_inc/_socket_types.h:
C:/media-autobuild_suite/msys64/mingw64/include/psdk_inc/_fd_types.h:
C:/media-autobuild_suite/msys64/mingw64/include/psdk_inc/_ip_types.h:
C:/media-autobuild_suite/msys64/mingw64/inclu
[No newline at the end of the file]

I tried to locate which command would create these .Plo files but failed because I've never used automake before.

Here is the output:

12:58:35 Warning: We will not accept any issues lacking any form of logs or logs.zip!
12:58:35
        Starting 64bit compilation of all tools
Imported options from ffmpeg_options.txt
License: nonfree
Imported options from mpv_options.txt
12:58:54
        Starting 64bit compilation of global tools
12:58:59   Running git update for ripgrep...
12:58:59 ripgrep git  ...................................... [Up-to-date]
12:59:04   Running git update for jo...
12:59:04 jo git  ........................................... [Up-to-date]
12:59:09   Running git update for jq...
12:59:09 jq git  ........................................... [Up-to-date]
12:59:13   Running git update for dssim...
12:59:14 dssim git  ........................................ [Up-to-date]
12:59:23   Running git update for libxml2...
12:59:24 libxml2 git  ...................................... [Up-to-date]
12:59:29   Running git update for libpng...
12:59:29 ┌ libpng git  ............................... [Recently updated]
12:59:29 ├ Running autoupdate...
12:59:34 ├ Running configure...
13:00:41 ├ Running make...
13:01:08 ├ Running install...
Likely error (tail of the failed operation logfile):
CPPFLAGS:
CFLAGS: -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -mthreads
CXXFLAGS: -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1
LDFLAGS: -D_FORTIFY_SOURCE=2 -fstack-protector-strong -mtune=generic -O2 -pipe -D__USE_MINGW_ANSI_STDIO=1 -static-libgcc -static-libstdc++
make -j4 install
.deps/png.Plo:536: *** missing separator.  Stop.
.deps/png.Plo:536: *** missing separator.  Stop.
install failed. Check C:/media-autobuild_suite/build/libpng-git/build-64bit/ab-suite.install.log
This is required for other packages, so this script will exit.
13:01:08   Creating diagnostics file...

Attach C:\media-autobuild_suite\build\logs.zip to the GitHub issue.
Make sure the suite is up-to-date before reporting an issue. It might've been fixed already.

Try running the build again at a later time.

logs.zip

Ashitemaru commented 1 month ago

Weird, all the .Plo files seem to be clipped to around 41KB (41495 bytes). Which config can do this? be5bc006428fbcea4e5089f0cad76ed5

Biswa96 commented 1 month ago

Just delete the libpng-git directory and try again.

Ashitemaru commented 1 month ago

Just delete the libpng-git directory and try again.

Sadly, I delete the dir and re-run the .bat, the error persists.

L4cache commented 1 month ago

Antivirus?

Ashitemaru commented 1 month ago

Antivirus?

Oh it makes sense. I'll try it later on my another laptop with no antivirus on it. Thanks.

Ashitemaru commented 1 month ago

Although it still took a long time, but I finally passed compilation after using a laptop without antivirus. Thanks for advice.