在 2019/4/17 1:15, Kacvinsky, Tom 写道: > The back story is I need to build the new MinGW-w64 6.0.0 CRT with UCRT > support, then > build GCC so that the support libraries (libgnat in particular) use this new > UCRT. So far, > what I have been trying to do is build GCC from scratch without support for > the new CRT, > and that is where I am falling over. I suspect my problem is not so much > that I have not > applied all of the patches that the package build script would apply, but > circumspect > configuration options. Still sorting that out > >
If you have already had MSYS2 setup then it'd be much easier than
working from scratch, since you at least have a working toolchain now.
0) Run 'pacman -S base-devel' to install essential build tools e.g.
autoconf, automake, make, etc.
1) CD into 'MINGW-packages/mingw-w64-headers-git'.
2) Run 'makepkg-mingw'. This builds code from the (unstable) master
branch; if you would like to build the 6.x branch, change the line
in 'PKGBUILD'
from
"git+https://git.code.sf.net/p/mingw-w64/mingw-w64"
to
"git+https://git.code.sf.net/p/mingw-w64/mingw-w64#branch=v6.x"
.
3) Run 'pacman -U *.tar.xz' to install the headers.
4) Repeat the two steps above, but in the 'mingw-w64-crt-git'
directory. The branch used to build the CRT must match the one
from which the headers have been installed. This updates the CRT.
5) Finally, CD into 'mingw-w64-gcc'. Be advised that at the moment
an internal compiler error prevents i686 Ada from being built. In
order for the build operation to succeed you may delete Ada from
'PKGBUILD' then run 'makepkg-mingw', or build only x64 packages
with 'MINGW_INSTALLS=mingw64 makepkg-mingw'. This is going to take
hours.
6) Run 'pacman -U *.tar.xz' to install the new compiler and libraries.
By default these are installed into '/mingw64'.
--
Best regards,
LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
