Xenon Toolchain: Difference between revisions

From Xenon Wiki
Jump to navigation Jump to search
imported>Stoker25
No edit summary
Line 1: Line 1:
== Windows ==
= Windows =
=== Installing Cygwin ===
=== Installing Cygwin ===
#) Download [http://www.cygwin.com/setup.exe Cygwin]. Once it's done, run the installer. Set the Install Directory to C:\Cygwin, or what ever your root drive path is.  
# Download [http://www.cygwin.com/setup.exe 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.  
# 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:  
# Make sure you install the necessary devs libs:  


*GCC  
GCC  
*Make  
Make  
*Git  
Git  
*build-essential  
build-essential  
*texinfo  
texinfo  
*Etc.
Etc.


== Linux ==
= Linux =
=== Prerequisites ===
=== Prerequisites ===
*libgmp3-dev
*libmpfr-dev
*texinfo
*git-core


== Mac OS X ==
libgmp3-dev
libmpfr-dev
texinfo
git-core
 
= Mac OS X =
=== Prerequisites ===
=== Prerequisites ===
#) Install Xcode.  
# Install Xcode.  
#) Install macports, then "sudo port install mpfr gmp git-core wget"  
# Install macports, then "sudo port install mpfr gmp git-core wget"  
#) sudo mkdir /usr/local/xenon; sudo chown -R $USER /usr/local/xenon  
# sudo mkdir /usr/local/xenon; sudo chown -R $USER /usr/local/xenon  
#) Do the "Building the Toolchain" stuff from below.  
# Do the "Building the Toolchain" stuff from below.  
#) If you're running Xcode 3.2, get Apple to fix [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180#c8 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  
If you're running Xcode 3.2, get Apple to fix [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180#c8 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
 
  BUILD_BINUTILS=false
  BUILD_BINUTILS=false
  BUILD_GCC=false
  BUILD_GCC=false
Line 34: Line 34:




== All Platforms ==
= All Platforms =
=== Building the Toolchain ===
=== Building the Toolchain ===
Run the following commands through the cygwin Bash console:  
Run the following commands through the cygwin Bash console:  
Line 41: Line 41:
  cd free60/toolchain
  cd free60/toolchain
  ./build-xenon-toolchain toolchain
  ./build-xenon-toolchain toolchain
The toolchain should start building (Note: This might take some time).


Retrieved from "http://www.free60.org/Compiling_the_Toolchain"
The toolchain should start building (Note: This might take some time).

Revision as of 23:17, 9 August 2010

Windows

Installing Cygwin

  1. Download Cygwin. Once it's done, run the installer. Set the Install Directory to C:\Cygwin, or what ever your root drive path is.
  2. When prompted for a server, select anyone, they all have the same packages, but I would recommend xmission.
  3. Make sure you install the necessary devs libs:
GCC 
Make 
Git 
build-essential 
texinfo 
Etc.

Linux

Prerequisites

libgmp3-dev
libmpfr-dev
texinfo
git-core

Mac OS X

Prerequisites

  1. Install Xcode.
  2. Install macports, then "sudo port install mpfr gmp git-core wget"
  3. sudo mkdir /usr/local/xenon; sudo chown -R $USER /usr/local/xenon
  4. 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

BUILD_BINUTILS=false
BUILD_GCC=false
BUILD_NEWLIB=false
BUILD_GCC_SECOND=true

in the build-xenon-toolchain. Then retry the build. It should finish the build.


All Platforms

Building the Toolchain

Run the following commands through the cygwin Bash console:

git clone git://free60.git.sourceforge.net/gitroot/free60/free60
cd free60/toolchain
./build-xenon-toolchain toolchain

The toolchain should start building (Note: This might take some time).