mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-24 04:04:49 -04:00
Updated Cross Compiler (markdown)
parent
253b8819a2
commit
37ae3d1e2d
@ -2,8 +2,6 @@ This page explains how to build the cross compiler for building and running Thor
|
|||||||
|
|
||||||
Before building the compiler, you need to install the GMP, MPFR and MPC support libraries. For Debian-based systems, including Ubuntu, you should install the packages libgmp-dev, libmpfr-dev and libmpc-dev. For RPM-based systems, including Fedora and SUSE, you should install gmp-devel, mpfr-devel and libmpc-devel (or mpc-devel on SUSE) packages.
|
Before building the compiler, you need to install the GMP, MPFR and MPC support libraries. For Debian-based systems, including Ubuntu, you should install the packages libgmp-dev, libmpfr-dev and libmpc-dev. For RPM-based systems, including Fedora and SUSE, you should install gmp-devel, mpfr-devel and libmpc-devel (or mpc-devel on SUSE) packages.
|
||||||
|
|
||||||
Note: This does not work anymore with GCC 6, you should compile with GCC 4.9 or GCC 5.0.
|
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
`sudo apt-get install libmpc-dev g++ nasm gcc-multilib `
|
`sudo apt-get install libmpc-dev g++ nasm gcc-multilib `
|
||||||
also make sure that gcc is pointing to the cross compiled version after this.
|
also make sure that gcc is pointing to the cross compiled version after this.
|
||||||
@ -14,8 +12,8 @@ Download binutils and GCC
|
|||||||
|
|
||||||
mkdir $HOME/src/
|
mkdir $HOME/src/
|
||||||
cd $HOME/src/
|
cd $HOME/src/
|
||||||
wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz
|
wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.gz
|
||||||
wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz
|
wget ftp://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz
|
||||||
tar xvzf binutils*
|
tar xvzf binutils*
|
||||||
tar xvzf gcc*
|
tar xvzf gcc*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user