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
0
votes
0 answers

How to add required components to crosstool-ng?

I downloaded crosstool-ng-1.24.0, not yet installed. I want build cross toolchain for ARM target, but I need specific components versions run on target ARM board, for which the toolchain generates code, Linux kernel 2.6.26.5, gnu gcc 4.1.2,…
minto
  • 151
  • 2
  • 12
0
votes
1 answer

fatal error: omp.h: No such file or directory using arm-unknown-linux-uclibcgnueabi (crosstool-ng)

It seems that any gcc created with crosstool-ng is missing omp.h, is there a way to solve this issue? tomas@ubuntu:~/eHHAlgorithm/infoli_static$ /home/tomas/x-tools/arm-unknown-linux-uclibcgnueabi/bin/arm-unknown-linux-uclibcgnueabi-gcc infoli.c…
tgonzalez89
  • 621
  • 1
  • 6
  • 26
0
votes
1 answer

Program header marked RWE in shared object file

I'm using a cross compiler on a 64-bit Intel-based Linux system to build some of our software so it can run on a 32-bit PowerPC chip. The cross compiler was produced by Crosstools. When I run "readelf -a" against the shared object files (.so files)…
Douglas Coup
  • 57
  • 1
  • 2
0
votes
1 answer

Cross Compiling, Crosstool, Makefile , libreadline

I am using Simplicity Studio to generate code for my application. It auto generates a Makefile and I am able to build application that runs on my host pc amd64 ubuntu 16.02. Now I want to build the application so it will work in Raspberry Pi. So I…
Ebad Syed
  • 78
  • 4
0
votes
0 answers

Cross-compiling for mips under x86_64 with MSA support

I’m trying to build a toolchain for cross-compiling for MIPS under x86 with crosstool-ng. According to GCC 7.2.0 documentation it must support msa instructions. But when I’m building an application with assembly msa instructions using buit toolchain…
0
votes
1 answer

ct-ng build never ends

I am facing an issue I can't resolve even after hours looking on the Internet. Here is the problem : I am creating a cross tool chain using crosstool-ng. I achieve to do ct-ng menuconfig and then I launched ct-ng build. All the first steps…
Laura G
  • 165
  • 14
0
votes
0 answers

Cross-compilation (ARM) 'VFP register arguments' error

I want to build a DDS 'perftest' application to do some tests between a x64 Kubuntu 15.10 and RaspberryPi 1 B, but in /rtiperftest.5.2.4/perftest_cpp directory there isn't a makefile for armv6 architecture. I have installed crosstool-ng 1.22 to…
ampu
  • 21
  • 1
  • 4
0
votes
1 answer

crosstools-ng: compiling toolchain for x86_64 linux on OSX - error when installing kernel headers

I'm trying to create a toolchain for x86_64 linux on a 64 bit Mac running OSX 10.9.5 and using crosstool-ng-1.22.0. I have tried building using a number of the samples (x86_64-w64-mingw32,x86_64-pc-linux-gnu and x86_64-unknown-linux-gnu) but I am…
John
  • 10,837
  • 17
  • 78
  • 141
0
votes
2 answers

gettext compile fails in crosstool-ng build on cygwin

I am new to crosscompiling and I followed the steps from using-crosstool-ng-and-cygwin by MAKSYM SHYTE The crosstool fails to build gettext when generating crosscompiler for i686-nptl-linux-gnu target build = x86_64-unknown-cygwin host =…
sith
  • 447
  • 7
  • 15
0
votes
1 answer

C++ Exceptions not being caught on Raspberry Pi when compiled with gcc-4.8.5 but works with gcc-4.6.4

Edit: this problem is not with my code, it has been tested on numerous other problems without issue. This is a gcc cross compilation problem. I am cross compiling a large C++ program with g++ on Ubuntu x64 to run on a Raspberry Pi 2. When using…
John
  • 791
  • 1
  • 6
  • 22
0
votes
1 answer

Cygwin involves wxWidgets libraries from native Linux?

I built a toolchain host on Cygwin target for x86-64 Linux, now my project involves wxWidgets, Cross-Platform GUI Library. It works before involving wxWidgets libraries from native Linux. I built wxWidgets on Debian then copied generated library…
dougpuob
  • 23
  • 1
  • 7
0
votes
1 answer

Error in building ct-ng in crosstool-ng-1.9.3

I'm trying to build ct-ng in crosstool-ng-1.9.3 on my 64 bit ubuntu 13.04 but I repeatedly receive the following error during this command : ./ct-ng build [INFO ] Retrieving needed toolchain components' tarballs [ERROR] Could not retrieve…
Masih
  • 1
  • 1
0
votes
1 answer

crosstool-ng build fails: CT_TARGET command not found

I am trying to build a cross compiler for raspberry pi. I am using crosstool-ng to build this compiler. I am following this link for reference. I have made all configurations as told in the link. But when i tried to build, I am getting "CT_TARGET…
Kumar
  • 616
  • 1
  • 18
  • 39
0
votes
0 answers

Crosstool-ng and dynamic libraries

How do I use a custom dynamic library (wiringPi in my case) with a ARMv6 C++ compiler that was created with crosstool-ng? I built wiringPi then added -lwiringPi to the linker options, and this works fine using g++ but does not when using the new…
Shinagan
  • 435
  • 3
  • 15
0
votes
1 answer

crosstool-NG linux x86 32Bit build fails on 32Bit vm-machine, Assembler messages

We want to compile a defined linux x86 32Bit toolchain using crosstool-NG ct-ng: glibc 2.9 gcc 4.8.4 I am using an ubuntu 14.04 32Bit: Linux ubuntu 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:45:15 UTC 2015 i686 i686 i686…
aware
  • 11
  • 3