All Projects → erikw → ewxb-gcc-cross-compiler-builder

erikw / ewxb-gcc-cross-compiler-builder

Licence: BSD-3-Clause license
A script for building a full GCC + glibc toolchain from scratch (with Go support via gccgo) in multiple stages.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to ewxb-gcc-cross-compiler-builder

homebrew-i386-elf-toolchain
Homebrew formulas for buildling a valid GCC toolchain for the i386-elf target.
Stars: ✭ 62 (+244.44%)
Mutual labels:  gcc, cross-compiler
NickelTC
A dockerized, deterministic, automated, fixed, and fully-relocatable build of @NiLuJe's toolchain for Kobo eReaders.
Stars: ✭ 19 (+5.56%)
Mutual labels:  gcc, cross-compile
homebrew-macos-cross-toolchains
macOS cross compiler toolchains
Stars: ✭ 404 (+2144.44%)
Mutual labels:  gcc, cross-compiler-toolchain
build-gcc
Shell scripts to build various gcc cross-compilers (primarily djgpp)
Stars: ✭ 34 (+88.89%)
Mutual labels:  gcc, cross-compiler
Beelzebub
The Lord of Flies - A hobby operating system
Stars: ✭ 24 (+33.33%)
Mutual labels:  gcc, cross-compiler
Raspberry Pi Cross Compilers
Latest GCC Cross Compiler & Native (ARM & ARM64) CI generated precompiled standalone toolchains for all Raspberry Pis. 🍇
Stars: ✭ 261 (+1350%)
Mutual labels:  gcc, cross-compiler
xForth
Experimental Forth cross compiler for tiny devices
Stars: ✭ 53 (+194.44%)
Mutual labels:  cross-compiler, cross-compile
Musl Cross Make
Simple makefile-based build for musl cross compiler
Stars: ✭ 646 (+3488.89%)
Mutual labels:  gcc, cross-compiler
xcross
"Zero Setup" cross-compilation for C/C++. Supports numerous architectures, build systems, C standard libraries, vcpkg, and Conan.
Stars: ✭ 29 (+61.11%)
Mutual labels:  gcc, cross-compiler
gcc-cross-compiler
A script to cross-compile GCC toolchain for various target architectures.
Stars: ✭ 32 (+77.78%)
Mutual labels:  gcc, cross-compiler-toolchain
pipeVFX
A Visual Effects pipeline to manage jobs, shots and software assignment, with a simple asset manager. Its extensively integrated with CortexVFX and Gaffer. (and it builds booth, with support for Maya, Houdini and Nuke, if you have then installed!)
Stars: ✭ 47 (+161.11%)
Mutual labels:  gcc
TraditionalMitigation
Traditional Mitigation in GCC to defend Memory Corruption Vulnerability
Stars: ✭ 16 (-11.11%)
Mutual labels:  gcc
minilib
A c standard system library with a focus on size, headeronly, "singlefile", intended for static linking. 187 Bytes for "Hello World"(regular elf), compiled with the standard gcc toolchain.
Stars: ✭ 29 (+61.11%)
Mutual labels:  gcc
rust-cross-libs
Cross-compile the Rust standard library for custom targets without a full bootstrap build.
Stars: ✭ 29 (+61.11%)
Mutual labels:  cross-compile
CoCoC
C development system for (Nitr)OS9/6x09, with source
Stars: ✭ 22 (+22.22%)
Mutual labels:  cross-compiler
quickstart-fortran
An easy Windows installer for GFortran and the Fortran Package Manager
Stars: ✭ 44 (+144.44%)
Mutual labels:  gcc
C-Cpp-Coverage-for-CLion
Get coverage data in CLion using gcov or llvm-cov
Stars: ✭ 37 (+105.56%)
Mutual labels:  gcc
aapt-cmake-buildscript
aapt cmake构建系统,支持mac和linux(ubuntu 16.0.4)构建,支持linux(ubuntu 16.0.4)交叉编译windows版本,支持x86和x86_64构建
Stars: ✭ 28 (+55.56%)
Mutual labels:  cross-compile
nelua-decl
C binding generator for Nelua using GCC Lua plugin.
Stars: ✭ 30 (+66.67%)
Mutual labels:  gcc
kindle-env
Development Environment for Kindle
Stars: ✭ 26 (+44.44%)
Mutual labels:  cross-compiler-toolchain

ewxb - Erik Westrup's GCC cross-compiler builder

This is a script documenting the steps and phases take when I compiled a GCC cross toolchain for GCC 4.9 head (with Go support). Building a cross-compiler is complex due to dependencies so a lot of bootstrapping has to be done. This script is inspired by Jim Blandy's excellent eglibc cross-compiling guide posted at eglibc's mailinglist at [patches] Cross-building instructions.

This script can serve as a starting point for those who want to build a x-toolchain from scratch. Don't expect it to work in directly as it's tailored for my setup. Instead you can re-use the phases and modify the script with parameters that you need. The last phases adds Go support, which is easy to comment out if you're only interested in a C/C++ compiler.

My setup was:

  • Host/Build system: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
  • Target: mips
  • gcc: 4.9.0
  • glibc: 2.19
  • binutils: 2.24

The scripts makes it easy to run specific phases (or range of phases) so that you easly can tweak a failing phase and continue with the ones that follows when you have got one phase to work. Make sure to edit x_environment.sh to the right versions of the packages and build paths to use.

For any details, simply read the sauce.

More info about using Go with a gccgo cross-compiler can be found at the go-wiki.

Resulting x-compiler tools

The sweet result after playing some Rube Goldberg trickery games.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].