Questions tagged [crosstool-ng]

Questions on using and developing crosstool-NG, a project to build compilers and tools from the gcc source and other related packages.

crosstool-NG is a collection of scripts for building tool chains (mainly gcc and support tools) and only tool chains. With crosstool-NG, you can precisely control how each component is configured and built, so you can produce a tool chain custom tailor for your system. crosstool-NG can build generic general purpose tool chains, to dedicated system specific tool chains. Configuration is guided ia a kbuild menu configuration interface. Both native and cross compilers are supported.

Support is continually evolving and includes langagues like Ada, C++, Java, Objective-C, Objective-C++, Go, etc. Various libraries are also supported, including newlib, uClibc, eglibc and glibc.

crosstool-NG is very simple in structure, consisting of shell scripts, gnu makefiles, source patches, and a kbuild system which directs the shell script. Additional documentation is available in crosstool-NG source directory in the docs sub-directory.

crosstool-NG is used by many open source projects, such as Ubuntu, Linaro, and buildroot.

Related tags:

78 questions
10
votes
1 answer

Various glibc and Linux kernel versions compatibility

When building a compiler, one must specify Linux headers version and minumum supported kernel version, in addition to glibc version. And then there is actual kernel version and glibc version (with its own kernel headers version and minumum supported…
Alexandr Zarubkin
  • 899
  • 1
  • 11
  • 26
8
votes
3 answers

crosstool-ng cant fetch linux tarball

I'm trying to build a tool chain using crosstool-ng, I've set it all up, selected my cpu as described on http://crosstool-ng.org/#download_and_usage and I'm at the step where I can build my toolchain. When I enter ct-ng build however, it cancels…
stdcerr
  • 13,725
  • 25
  • 71
  • 128
8
votes
2 answers

crosstool-ng, directory structure, and sysroot

I have a working cross-compiler toolchain, thanks to crosstool-ng :) -- however, crosstool-ng is very sparsely documented, and I am brand new to cross-compiling. The specific host and target are not, I think, important in this context. I have some…
CodeClown42
  • 11,194
  • 1
  • 32
  • 67
6
votes
0 answers

Crosstool-NG missing dependency

I'm trying to set up a toolchain using Crosstool-NG. I'm using Crosstool-NG 1.22.0 on OS X 10.11.4. I installed using homebrew, so I'm unsure of why I'm missing dependencies. When I try to build, this is my output: $ ct-ng build [INFO ] Performing…
zeus_masta_funk
  • 1,388
  • 2
  • 11
  • 34
6
votes
1 answer

Combining existing rootfs with custom toolchain

I've got a Raspberry PI with Emdebian installed on it, and want to cross-compile projects. There is plenty of documentation on how to obtain a toolchain and build a simple project with it. I myself managed to build a toolchain with crosstool-ng and…
Thomas McGuire
  • 5,308
  • 26
  • 45
6
votes
1 answer

What are the correct options for an ARM cross compiler with crosstool-NG

I am trying to build a cross compiler to target the processor running on my NAS box using crosstool-NG. The NAS box is a ZyXEL NSA210, there is an example dmesg output, the /proc/cpuinfo is: Processor : ARM926EJ-S rev 5 (v5l) BogoMIPS :…
Silas Parker
  • 8,017
  • 1
  • 28
  • 43
5
votes
3 answers

How to I get crosstool-ng C++ compiler working

I'm trying to get crosstool-ng working with both C and C++. Even though I've selected C++ while using menuconfig, it doesn't seem to get built. The gcc compiler works as expected but not g++ I'm not sure what I'm doing wrong so any help would be…
Jim
  • 809
  • 1
  • 7
  • 18
4
votes
1 answer

How to reduce ELF section padding?

I used crosstool-NG to create a PowerPC toolchain with gcc 6.3.0 and glibc 2.25. I have the following test program, test.c: int main() { return 0; } I compiled it with the command: powerpc-unknown-linux-gnu-gcc -s -Os -o test test.c The final…
MP64
  • 153
  • 7
4
votes
1 answer

How to use candian in Crosstools-NG in a cross-native fashion to get gcc on an arm board?

As I understand, to have gcc on an armv5 board compiling executables while using my x86 machine to compile that arm native gcc, I need this setup: Machine configuring the toolchain components: the config machine : x86_64 Machine building the…
hak8or
  • 488
  • 2
  • 9
  • 28
3
votes
2 answers

Cross compiler for a RHEL ppc64le target

I've attempted to use crosstool-ng to make a cross compiler for RHEL7.1 power which means: ppc64le (powerpc 64bit little endian) glibc 2.17 kernel 3.10 I feel I'm missing some essential patch because I get the message [INFO ] …
Gareth A. Lloyd
  • 1,774
  • 1
  • 16
  • 26
3
votes
1 answer

Why does toolchain name have separate OS and EABI fields.?

For eg. arm-unknown-linux-gnueabi Now, once the OS i.e Linux is fixed, the C Library will be fixed (GLibc) and hence the calling convention and ABI being followed will be fixed. What is the requirement of 4th field i.e. ABI separately? Can a…
3
votes
2 answers

Crosstool-ng 1.19.0, make error with eglibc

I'm currently trying to build crosstool-ng for my raspberry pi cross-compilation but I'm running into some issues. I'm getting the following error while trying to build crosstool version 1.19.0: [CFG ] checking for…
E-Kami
  • 2,529
  • 5
  • 30
  • 50
3
votes
1 answer

Crosstool-ng python error

I recently trying to compile crosstool-ng for my arm board. The host is Arch linux 3.9.4-1. I ran into these following issues: [ALL ] checking for python... /usr/bin/python [ALL ] File…
E-Kami
  • 2,529
  • 5
  • 30
  • 50
3
votes
0 answers

Cross compile native gcc for arm with crosstool-ng, have toolchain, which architecture deps, and which build, host, and target?

I want to build a native gcc for arm, to run on Android, as I've built glibc for it and want to build GNU utils linked against glibc, so want to compile natively on the Android phone. I've built the crosscompiling toolchain with crosstools-ng. I've…
白い熊
  • 281
  • 2
  • 6
2
votes
1 answer

how to change the host type for a 'Canadian cross' compilation of GCC with crosstool-NG

I've installed crosstool-NG and built GCC on a host+build x86 machine that targets arm-unknown-linux-gnueabi. I've then used arm-unknown-linux-gnueabi-gcc to compile a program that ran well on my ARM board. I'm wanting to now build GCC, targeting…
stuck
  • 2,264
  • 2
  • 28
  • 62
1
2 3 4 5 6