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

[clang64] every clang environment packages are recognized as "more than needed" #2666

Closed L4cache closed 1 month ago

L4cache commented 1 month ago

This seems to only happen on the first run. If choose y, it will remove these packages, if choose n it will set these packages to 'installed as dependency', either way, it will then detect missing packages and install mingw64 environment packages. (and these installed mingw64 environment packages will be recognized as "more than needed" in next run) 2024-05-05_180506 update.log update.stripped-n.log update.stripped-y.log

1480c1 commented 1 month ago

I would recommend going ahead and deleting the msys64 folder and rerunning. I didn't make the transition from mingw64's clang to clang64's environment the cleanest unfortunately.

L4cache commented 1 month ago

The described issue happens with fresh install. But, thanks for the tips anyway.

1480c1 commented 1 month ago

Could you open mintty and run the following

. /build/media-suite_helper.sh
create_diagnostic
zip_logs

and attach build/logs.zip to here? I ran quite a few fresh builds and none of them showed the same error

L4cache commented 1 month ago

Github won't let me upload zip files for some reason logs.zip.txt (just a renamed zip) This is taken after choosing not to remove "more than needed" packages, and without any suite's build option enabled

L4cache commented 1 month ago

Maybe you can add a separate option to choose between msys2 environments? I personally reverted the related commits and continue to use mingw64 environment even if I use clang as compiler.

assy1204 commented 1 month ago

cc=1 same error cc=2 xavs2 error

1480c1 commented 1 month ago

I think it has been fixed with https://github.com/m-ab-s/media-autobuild_suite/commit/555a24d0f0f3b76b81e0f8ca06f0419349fce88b and https://github.com/m-ab-s/media-autobuild_suite/commit/4d75ac2ee033048fe9f8960216bd5dc9bbbda6d3, if not, recomment and I can reopen