Skip to content

Gonon GCC crosscompiler builder script, this repo will auto build latest GCC

License

Notifications You must be signed in to change notification settings

nurfaizfy/gcc-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCC Cross Compiler Toolchain Build Script

This repository contains the script needed to compile bare metal GCC for various architectures using Linux distributions. The GCC source is fetched from the master branch hence, contains all the bleeding edge changes.

Before we start

Below are the packages you'll need

  • Ubuntu or other Debian based distros

    To install and set GCC 10 as the default compiler, you need to:

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update
    sudo apt-get install flex bison ncurses-dev texinfo gcc gperf patch libtool automake g++ libncurses5-dev gawk subversion expat libexpat1-dev python-all-dev binutils-dev bc libcap-dev autoconf libgmp-dev build-essential pkg-config libmpc-dev libmpfr-dev autopoint gettext txt2man liblzma-dev libssl-dev libz-dev mercurial wget tar gcc-10 g++-10 zstd --fix-broken --fix-missing
  • Arch Linux

    sudo pacman -S base-devel clang cmake git libc++ lld lldb ninja
  • Fedora

    sudo dnf groupinstall "Development tools"
    sudo dnf install mpfr-devel gmp-devel libmpc-devel zlib-devel glibc-devel.i686 glibc-devel binutils-devel g++ texinfo bison flex cmake which clang ninja-build lld bzip2

Usage

Running this script is quite simple. We start by cloning this repository:

git clone https://github.com/Diaz1401/gcc-build.git gcc-build
./build.sh <branch>

Credits

Looking for precompiled toolchains?

Contributing to this repo

You're more than welcome to improve the contents within this script with a pull request. Enjoy :)

About

Gonon GCC crosscompiler builder script, this repo will auto build latest GCC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages