Downloading Files
1) Download and install Virtual Machine. Any modern virtual machine capable of making snapshots will do, for example VMware Workstation. This tutorial assumes Oracle VirtualBox because it's available free of charge.
2) Download source code for gcc-8.3.0, binutils-2.31.1, glibc-2.28 and gdb-8.2.1 from ftp://ftp.gnu.org/.
3) Download source code for Linux kernel (5.4.51 will do).
4) Download additional patch for glibc from this website. It is required to build glibc under Cygwin.
5) Download additional patch for binutils from this website. It is required to build binutils under MinGW.
6) Download additional patch for gdb from this website. It is required to build gdb under MinGW.
7) Download source code for libraries gcc depends on: gmp, mpfr and mpc. We will use gmp-6.1.2, mpfr-4.0.2 and mpc-1.1.0 and expat-2.2.9 in this tutorial, but generally latest versions of all of them is what you need.
>> Read next section or
buy already prepared
cross-compiler (€10) to save your time.