- Download Cygwin. Once it's done, run the installer. Set the Install Directory to C:\Cygwin, or what ever your root drive path is.
- When prompted for a server, select anyone, they all have the same packages, but I would recommend xmission.
- Make sure you install the necessary devs libs:
Mac OS X
- Install Xcode.
- Install macports, then "sudo port install mpfr gmp git-core wget"
- sudo mkdir /usr/local/xenon; sudo chown -R $USER /usr/local/xenon
- Do the "Building the Toolchain" stuff from below.
If you're running Xcode 3.2, get Apple to fix this bug. Workaround is to compile until it fails with the "duplicate symbol" error (check build.log), then do the mentioned workaround in gcc-4.4.0/gcc directory (changing Make-lang.in), then disable the rebuild of binutils, gcc (first stage) and newlib by setting
in the build-xenon-toolchain. Then retry the build. It should finish the build.
Building the Toolchain
Run the following commands through the console your using:
The toolchain should start building (Note: This might take some time).
Full process of installation
To give people a start who are not used to Linux but want to start coding, here it goes. In this example I am refering to Ubuntu/Debian.
First we install dependencies
Now we create the target directory for the Toolchain & Libxenon and own it by the current user Note: If your distro has the "su" command to get superuser rights, get superuser before typing the commands in the following block. Note: If not, append "sudo" before those commands (example: "sudo mkdir -p /usr/local/xenon")
Then we grab the toolchain from git and build it
Note: If gcc building, 2nd stage, fails for you, do "apt-get install libgmp4-dev" and restart building process.
Note for Ubuntu users: If you encounter in the build.log following error:
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.2+ and MPC 0.8.0+.
Do the following:
cd gcc-4.6.1 wget <ftp://ftp.gmplib.org/pub/gmp-5.0.2/gmp-5.0.2.tar.bz2> tar xvjf gmp-5.0.2.tar.bz2 && mv gmp-5.0.2 gmp wget <http://www.multiprecision.org/downloads/mpc-0.9.tar.gz> tar xvzf mpc-0.9.tar.gz && mv mpc-0.9 mpc wget <https://www.mpfr.org/mpfr-3.0.1/mpfr-3.0.1.tar.gz> tar xvzf mpfr-3.0.1.tar.gz && mv mpfr-3.0.1 mpfr cd .. ./build-xenon-toolchain toolchain
At the end of compiling it will tell you to add paths to your ~/.bashrc - that's an improper solution. Rather do it the following way:
Press Ctrl+O for saving the file and press ENTER if it asks for a filename Press Ctrl+X for closing nano
Have fun compiling your code ;)