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.56k stars 267 forks source link

Main batch file exits prematurely before compiling #2470

Open dddnk opened 1 year ago

dddnk commented 1 year ago

All of the bin-global files under local64 are empty after running the compile script, where it closes itself before compiling. firstrun.log [compiler list] arch=1 license2=1 standalone=1 vpx2=1 aom=1 rav1e=1 dav1d=1 libavif=1 jpegxl=2 x2643=1 x2652=1 other265=2 svthevc=2 xvc=2 vvc=2 uvg266=2 vvenc=1 vvdec=1 svtav1=1 svtvp9=1 flac=1 fdkaac=2 faac=2 exhale=1 mediainfo=1 soxB=1 ffmpegB2=4 ffmpegPath=https://git.ffmpeg.org/ffmpeg.git ffmpegUpdate=1 ffmpegChoice=1 mp4box=1 rtmpdump=1 mplayer2=2 mpv=1 vlc=2 bmx=1 curl=1 ffmbc=2 cyanrip2=2 ripgrep=1 jq=1 jo=1 dssim=1 avs2=2 CC=1 cores=20 deleteSource=1 strip=1 pack=2 logging=1 updateSuite=1 timeStamp=1 ccache=1 noMintty=2

dddnk commented 1 year ago

My specs are an Intel core i7 - 12700h.I run windows 11. FIrstrun.log:

MSYS2 is starting for the first time. Executing the initial setup.
  Copying skeleton files.
  These files are for the users to personalise their msys2 experience.

  They will never be overwritten nor automatically updated.

  './.bashrc' -> '/home/dddnk/.bashrc'
  './.bash_logout' -> '/home/dddnk/.bash_logout'
  './.bash_profile' -> '/home/dddnk/.bash_profile'
  './.profile' -> '/home/dddnk/.profile'
  'C:\WINDOWS\system32\drivers\etc\hosts' -> '/etc/hosts'
  'C:\WINDOWS\system32\drivers\etc\protocol' -> '/etc/protocols'
  'C:\WINDOWS\system32\drivers\etc\services' -> '/etc/services'
  'C:\WINDOWS\system32\drivers\etc\networks' -> '/etc/networks'
  gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
  gpg: no ultimately trusted keys found
  gpg: starting migration from earlier GnuPG versions
  gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
  gpg: migration succeeded
  ==>(B Generating pacman master key. This may take some time.(B
  gpg: Generating pacman keyring master key...
  gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
  gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/3116962233641F1717AD6683B95C155830D0A84C.rev'
  gpg: Done
  ==>(B Updating trust database...(B
  gpg: marginals needed: 3  completes needed: 1  trust model: pgp
  gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
  ==>(B Appending keys from msys2.gpg...(B
  ==>(B Locally signing trusted keys in keyring...(B
    ->(B Locally signed 5 keys.(B
  ==>(B Importing owner trust values...(B
  gpg: setting ownertrust to 4
  gpg: setting ownertrust to 4
  gpg: setting ownertrust to 4
  gpg: setting ownertrust to 4
  gpg: setting ownertrust to 4
  ==>(B Disabling revoked keys in keyring...(B
    ->(B Disabled 4 keys.(B
  ==>(B Updating trust database...(B
  gpg: marginals needed: 3  completes needed: 1  trust model: pgp
  gpg: depth: 0  valid:   1  signed:   5  trust: 0-, 0q, 0n, 0m, 0f, 1u
  gpg: depth: 1  valid:   5  signed:   7  trust: 0-, 0q, 0n, 5m, 0f, 0u
  gpg: depth: 2  valid:   4  signed:   2  trust: 4-, 0q, 0n, 0m, 0f, 0u
  gpg: next trustdb check due at 2023-09-12
  gpg: error retrieving 'alexey.pawlow@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key F40D263ECA25678A: "Alexey Pavlov (Alexpux) <alexey.pawlow@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'david.macek.0@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 790AE56A1D3CFDDC: "David Macek (MSYS2 master key) <david.macek.0@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'martellmalone@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key DA7EF2ABAEEA755C: "Martell Malone (martell) <martellmalone@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'reiter.christoph@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 755B8182ACD22879: "Christoph Reiter (MSYS2 master key) <reiter.christoph@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'icquinteiro@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 9F418C233E652008: "Ignacio Casal Quinteiro <icquinteiro@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'mingw.android@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key BBE514E53E0D0813: "Ray Donnelly (MSYS2 Developer - master key) <mingw.android@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'alexpux@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 5F92EFC1A47D45A1: "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'david.macek.0@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 974C8BE49078F532: "David Macek <david.macek.0@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'reiter.christoph@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key FA11531AA0AA7F57: "Christoph Reiter (MSYS2 development key) <reiter.christoph@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'me@martellmalone.com' via WKD: No name
  gpg: error reading key: No name
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 794DCF97F93FC717: "Martell Malone (martell) <me@martellmalone.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'martellmalone@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key D595C9AB2C51581E: "Martell Malone (MSYS2 Developer) <martellmalone@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  gpg: error retrieving 'mingw.android@gmail.com' via WKD: No data
  gpg: error reading key: No data
  gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
  gpg: key 4DF3B7664CA56930: "Ray Donnelly (MSYS2 Developer) <mingw.android@gmail.com>" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  Initial setup complete. MSYS2 is now ready to use.
  
hydra3333 commented 1 year ago

Try deleting the MABS tree, re-downloading, and trying again from scratch.

dddnk commented 1 year ago

Do you mean deleting the generated files and retrying? because I have done that countless times, and It still does this. running build/media-suite-compile.sh manually returns:


-------------------------------------------------------------------------------
Updating pacman database...
-------------------------------------------------------------------------------

[?25l:: Synchronizing package databases...
 clangarm64
 mingw32
 mingw64
 ucrt64
 clang32
 mingw32 is up to date clang32 is up to date ucrt64 is up to date mingw64 is up to date clang64
 msys
 clangarm64 is up to date msys is up to date clang64 is up to date[?25h
-------------------------------------------------------------------------------
Checking pacman packages...
-------------------------------------------------------------------------------

[?25l:: Synchronizing package databases...
 clangarm64
 mingw32
 mingw64
 ucrt64
 clang32
 clangarm64 is up to date mingw64 is up to date ucrt64 is up to date mingw32 is up to date clang32 is up to date clang64
 msys
 clang64 is up to date msys is up to date:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
 there is nothing to do
[?25h-------------------------------------------------------------------------------
Updates finished.
-------------------------------------------------------------------------------

And closes.

dddnk commented 1 year ago

Long file path should not be a problem as it is located in C:\MABS.

1480c1 commented 1 year ago

It should be that you almost never directly run media-suite_compile.sh, rather you would run it through running media-autobuildsuite.bat or through one of the `last*run` files that are there to show the command the batch file ran.

Just to confirm, what does your console show if you just run the bat file? If you still see nothing, can you try changing the noMintty line to =1 rather than 2 and run again?

dddnk commented 1 year ago

It checks for updates, and the closes itself. update.log When noMintty is set to 1 in the build\media-autobuild_suite.ini file, the output is: update.log It Exits prematurely again.

dddnk commented 1 year ago

Maybe it has something to do with the shell output near the top where it had errors retrieving data, an example:

gpg: refreshing 1 key from hkps://keyserver.ubuntu.com
gpg: key F40D263ECA25678A: "Alexey Pavlov (Alexpux) <alexey.pawlow@gmail.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg: error retrieving 'david.macek.0@gmail.com' via WKD: No data
gpg: error reading key: No data

Does it run any hidden background programs after? And If the issue is fixed, are there any signs of it working apart from the bin files not being empty?