Preparing GCC Build: Difference between revisions

[unchecked revision][unchecked revision]
Line 108:
 
=== Windows Users ===
Windows users need to set up a Unix-like enviroment such as [[MinGW]] or [[Cygwin]]. It may well be worth looking into systems such as Linux and see if they fit your needs, as you commonly use a lot of Unix-like tools in operating systems development and this is much easier from a Unix-like operating system. '''If you have just installed the basic [[Cygwin]] package, you have to run the setup.exe again and install the following packages:''' GCC, G++, Make, Flex, Bison, Diffutils, libintl-devel, libgmp-devel, libmpfr-devel, libmpc-devel, texinfoTexinfo
 
MinGW + MSYS is an option, and as it addresses the native Windows API instead of a POSIX emulation layer, results in a slightly faster toolchain. Some software packages will not build properly under MSYS as they were not designed for use with Windows. As far as this tutorial is concerned, everything that applies to Cygwin also applies to MSYS unless otherwise specified. Make sure you install the C and C++ compilers, and the MSYS Basic System.
 
The "Windows Subsystem for Linux (Beta)", released with the Windows 10 Anniversary update is also an option for using a cross compiler. (Tested 08/08/2016 with GCC 6.1.0 and binutilsBinutils 2.27) This cross-compiler works reasonably fast, although being in beta state, it may not be ideal permanent development platform.
 
'''Cygwin note:''' Cygwin includes your Windows <tt>%PATH%</tt> in its bash <tt>$PATH.</tt> If you were using DJGPP before, this could result in confusion as e.g. calling <tt>gccGCC</tt> on the Cygwin bash command line would still call the DJGPP compiler. After uninstalling DJGPP, you should delete the DJGPP environment variable and clear the <tt>C:\djgpp</tt> entry (or wherever you installed it) from your <tt>%PATH%</tt>. Likewise, it might be a bad idea to mix build environments in your system PATH variable.
 
'''MinGW note:''' Some MinGW-specific information on building a cross-toolchain can be found on the [http://www.mingw.org/wiki/HostedCrossCompilerHOWTO hosted cross-compiler how-to page] on the MinGW homepage.
Anonymous user