jeremyd2019 / msys2-build32

Repo with workflow to build msys2 packages for i686
11 stars 5 forks source link

Still using this but one problem #3

Open revelator opened 2 weeks ago

revelator commented 2 weeks ago

zstd format fails to package many larger packages due to memory constraint.

unpatched the 32 bit build of msys2 cannot handle memory requirements larger than 2gb due to not having the LARGAEADDRESSAWARE flag set, with some minor modifications the peflagsall script can handle setting that .

strangely the 32 bit msys2 binutils cannot handle this flag like the 64 bit msys32 binutils can, it throws an error on -Wl,--enable-large-address-aware so the only thing left for now is peflags.

jeremyd2019 commented 2 weeks ago

Nice to know I'm not just doing this for myself. Note my current plan is to stop in October 2025 when Windows 10 goes out of support.

I've run into that issue a couple of times myself, and I was able to work around it by reducing the compression options in makepkg.conf:

COMPRESSZST=(zstd -c -T0 --ultra -20 -)

usually just by reducing it to -T1. For building the 32-bit sfx installer I just used the 64-bit 7zip to compress, the 32-bit was still capable of decompressing without running out of memory.

revelator commented 2 weeks ago

hehe yeah thats also an option ;).

as for my usage it is mostly compatibility related but the 64 bit version also works fine for most parts.

would be sad to see it go though as even though its a minority who uses it it still is.