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
1
vote
0 answers

How can i build a real relocatable SDK with Pre-Built/Installed Crosstool-NG toolchain via buildroot in a docker container?

Setup: Host : Ubuntu 20.04 Docker container WorkspacePath : /workspace External ToolChain : Pre-Built and installed at /workspace/crosstool_ng/arm-** BuildSystem : BuildRoot at /workspace/buildroot BuildrootOutput :…
1
vote
0 answers

Targetting an older version of libstdc++ with recent GCC when cross-copiling to an embedded-linux ARM device

We need to find a cross-compilation toolchain for an ARM embedded linux target that satisfies the following criteria: Kernel 3.17 GLIBC 2.18 Recent version of GCC is required to compile some third-party code Those requirements brought me to…
Mathieu David
  • 4,706
  • 3
  • 18
  • 28
1
vote
1 answer

How to get uclibc visible in crosstool-ng config menu?

I'm trying to build a crosstool-ng toolchain and I'm following the bootlin training. In this training, it seems that the C library that has been chosen is the UCLIBC library. However, after I downloaded the prebuilt toolchain from github repository…
Y.G
  • 51
  • 2
  • 8
1
vote
0 answers

crosstool-ng's LD gives "source object a/b/built-in.o has EABI version 5, but target b/built-in.o has EABI version 0" while compiling the kernel

I just created a gcc11 crosscompiler with crosstool-ng for "arm-unknown-eabi" to compile my kernel (android for msm8974 chipset), but at some point of the linking, the LD gives this error about EABI versions, but the target file doesn't even…
1
vote
0 answers

execvp: /bin/sh: Argument list too long while building glibc 2.5 with crosstool-ng

I am trying to upgrade our build server from opensuse 9 to ubuntu 14.04. Our target operative system is uClinux with kernel 2.6.24 and glibc 2.5 and gcc 4.2.1. We are using crosstool-ng for building our cross toolchain. Building toolchain is…
Govan
  • 2,079
  • 4
  • 31
  • 53
1
vote
0 answers

crosstool-ng download toolchain component tarball 'automake' failed

I tried to ct-ng build the rpi3 config with Docker in MacOSX. The version of crosstool-ng is 1.24.0 And there are error messages: [INFO ] Performing some trivial sanity checks [INFO ] Build started 20200508.202746 [INFO ] Building environment…
NEET
  • 61
  • 1
  • 2
  • 11
1
vote
1 answer

Buildroot and Crosstool-NG configuration error

Building a root filesystem on Buildroot for a Beaglebone Black target. Using a crosstool-NG toolchain with buildroot and I am getting this error in buildroot: >>> toolchain-external-custom Configuring Incorrect selection of kernel headers: expected…
1
vote
1 answer

KERNELCONFIG while building toolchain using crosstool-ng

I am trying to update our cross compiler toolchain from crosstool to crosstool-ng. We are using an old kernel and build machine. I could install and configure crosstool-ng-1.0.0 on the server and build the toolchain. One difference that I have…
Govan
  • 2,079
  • 4
  • 31
  • 53
1
vote
1 answer

crosstool-ng configuration settings

I want build cross toolchain for ARM target. I downloaded crosstool-ng package, in addition to crosstool-ng source tarball itself, it contains also all the source tarballs that crosstool-ng needs to build the crosstool chain (few Linux versions,…
minto
  • 151
  • 2
  • 12
1
vote
0 answers

crosstool-ng gccgo build error with undefined morestack symbols

I'm building gccgo with crosstool-ng 1.24.0. Got linker error when compiling the very simple main.go. Any idea how to solve this? Any pointer to a successful gogcc build even for a different popular target that can easily be verified? The host is…
minghua
  • 5,981
  • 6
  • 45
  • 71
1
vote
0 answers

How do I cross compile a static library built on the target with static linkage using c++11 utilities

**Edit: Found my problem. As explained by the following answer, I was not actually doing any linking when making the static library. Instead, I made a shared library and linked libstdc++ statically. Compile a static library link with standard…
wfb0002
  • 23
  • 6
1
vote
0 answers

compilation for multiple MIPS platforms

I have multiple MIPS platforms with different CPUs and different kernel and uclibc versions I'm want to compile 'Hello World' program with single toolchain that will run on all of the devices. I'm building the toolchain using crosstool-ng with the…
1
vote
1 answer

Tag command not found when running make on crosstool-ng

For some reason on my ubuntu system, running make on crosstool-ng throws this error. I tried seeing if I could find a package that has the tag command but I dont think that this exists. /usr/bin/make all-recursive make[1]: Entering directory…
Rahul Shah
  • 141
  • 2
  • 12
1
vote
0 answers

Cross compiling arm-unknown-linux-uclibcgnueabi with Crosstool

I've got a problem with cross compiling GCC to arm-unknown-linux-uclibcgnueabi. (My real target is android but this one produces output that runs on my phone) I successfully created a normal cross compiler but I want to create a compiler that runs…
1
vote
1 answer

How to setup crosstool-ng with wxwidgets

I want to setup the ct-ng for my gui application and now I want to use wxwidgets. For setting up the crosstool, I have used: # Install prerequisites: apt-get -y install gcc gperf bison flex gawk libtool automake libncurses5-dev texinfo #…
j35t3r
  • 1,254
  • 2
  • 19
  • 53