Here is my recipe for building a GCC 8.2.0 cross-compiler targeting mingw-w64. It includes 6 patches, and comments about why they were needed. It looks like one of those patches did fix an internal compiler error that happened when compiling Qt.
https://github.com/DavidEGrayson/nixcrpkgs/blob/master/mingw-w64/gcc/default.nix I haven't compiled as many packages as the MSYS2 developers, so that's probably why I didn't need so many patches. --David Grayson On Thu, Nov 11, 2021 at 11:37 AM Kacvinsky, Tom <[email protected]> wrote: > Are these the patches necessary for building GCC for MSYS2/MinGW-w64? > > https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-gcc/PKGBUILD > > I ask because I keep getting internal compiler errors, and I think one or > more of these > patches would help. I think I might need to apply patches for binutils, > as well. > > What I am doing is using the UCRT64 tool chain to bootstrap another UCRT64 > tool chain > (for starters) _and_ test it with the GCC test suite. Once I am satisfied > with that, I will > then proceed to making my patches for what I hope to be a fix for MSVC <-> > GCC SEH > exception handling. > > Thanks, > > TOm > > From: Kacvinsky, Tom > Sent: Thursday, November 4, 2021 10:46 PM > To: '[email protected]' < > [email protected]> > Subject: RE: Patches for GCC > > I think this is it > > https://github.com/msys2/MINGW-packages > > Tom > > P.S. - I would bottom post but Outlook is being a pain with > quoting emails. > > From: Kacvinsky, Tom > Sent: Thursday, November 4, 2021 9:12 PM > To: '[email protected]' < > [email protected]<mailto: > [email protected]>> > Subject: Patches for GCC > > Hi all, > > I am back to futzing around with building GCC with UCRT support. > I have run into several weird issues that I think might be fixed in > patches made by the MinGW-w64 team. I know I've been able to > find those patches in the past, but my Google-fu is weak and I do > not see them anywhere. > > > > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
