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
1 answer

how to change the default path in ld.so

I use ubuntu 14.10 and crosstool-ng-1.20.0 to create toolchain from host: x86_64 to target: i686, I know glibc will create ld.so but i don't know how to change the default path in ld.so from "/lib, /usr/lib" to "/lib32, /usr/lib32". I want to…
SleepFish
  • 11
  • 2
1
vote
0 answers

Cross compiling toolchain using crosstool-ng

I am trying to build a Linux environment with glibc version 2.5 to compile C code using crosstool-ng. But I cannot find glibc version 2.5 in configuration for some reason. Does anyone know how to fix that? And I tried to use older version glibc 2.2…
user1726119
  • 381
  • 2
  • 5
  • 16
1
vote
2 answers

crosstool-ng -- stdio.h: No such file or directory

I would like to cross compile a simple program that uses libncurses on my x86_64. Target system is MIPS. My crosstool-ng-1.20 build went fine (with sample mips-unknown-elf) However, a simple hello world ends badly. #include int…
evilSnobu
  • 24,582
  • 8
  • 41
  • 71
1
vote
2 answers

Using Python subprocess.call() to launch an ncurses process

I'm trying to call ct-ng (http://crosstool-ng.org/) from a SCons SConstruct script, so basically from Python. using the following method: ret = subprocess.call(["/mnt/build/pw_build/crosstool-ng/bin/ct-ng menuconfig"],…
Scott Dillman
  • 821
  • 1
  • 9
  • 16
1
vote
1 answer

Network not functioning on an ARM Linux rootfs with fakeroot/fakechroot

I have created a rootfs using buildroot, but using a crosstool-ng tool chain with glibc. This showed me the minimal set of files necessary. I then replaced all the libraries with ones pulled straight from the squeeze .deb packages for armel. I…
corbin
  • 1,446
  • 2
  • 27
  • 40
0
votes
0 answers

crosstool-ng how to add extra libraries to cross compiler toolchain for debian

I'm trying to create a cross compile tool with crosstool-ng 1.25 and everything seems to work but I can't add extra libraries. The issue here is that I can't find a way to add extra packages to the toolchain. In this specific scenario I need the…
0
votes
1 answer

How run make file in rpi4

I have built on ubuntu host the kernel/rootfs for rpi4 model b 64-bit with latest buildroot and using crosstoolng aarch64-rpi4-linux-gnu and raspberry pi os as source . How can I run a make file in the rpi? I don't think buildroot has menuconfig…
0
votes
1 answer

crosstool config fail: panel library not found

When trying to configure crosstool-ng I run into error: panel library not found ... ... checking for working ncursesw.h... no checking for working ncurses.h... yes checking for Curses Panel library with ncursesw/panel.h... no configure: error: panel…
reeslabree
  • 127
  • 13
0
votes
2 answers

how to config u-boot for imx6?

When I am trying to make u-boot for apalis-aimx6-quad board, and below list is shows the details of my configuration: CROSS_COMPILER = aarch64-unknown-linux-gnu 1.1 it already exported to path 1.2 menuconfig of the cross compiler remains as…
0
votes
0 answers

ctosstool-ng build fails on cygwin for armv8-rpi3-linux-gnueabihf

I am trying to build a arm RPI4 crosscompiler and toolchain on cygwin on windows 10 with ctosstool-ng-1.24.0 The process works fine generating a arm RPI4 toolchain from ubuntu 20.4 host but fails on windows 10 The Prebuilt Windows Toolchain for…
sith
  • 447
  • 7
  • 15
0
votes
1 answer

Is compiling GCC as static toolchain and plugins support mutually exclusive?

I'm cross compiling AVR GCC to be used on Android with crosstool-ng. I need to compile it with LTO support (-flto and -fuse-linker-plugin) thus passing CT_STATIC_TOOLCHAIN=y, CT_CC_GCC_USE_LTO=y, CT_CC_GCC_ENABLE_PLUGINS, CT_CC_SHARED_LIBS and…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
0
votes
2 answers

building esp-open-sdk - crosstool-NG can't find expat-2.1.0

I'm compiling the toolchain for ESP8266EX using esp-open-sdk and I get an error: Error happened in: do_expat_get[scripts/build/companion_libs/210-expat.sh@741] called from: do_companion_libs_get[scripts/build/companion_libs.sh@15] called from:…
0
votes
1 answer

Can't build cross compiler on Alpine targeting GNU based linux distros (eg. Debian)?

I was trying to use crosstool-ng and get it work to build a cross compiler to target a gnu-based linux distros, since alpine comes with musl-libc I guess the cross tool couldn't directly use the type declarations used in gnu's. More precisely, at…
Animesh Sahu
  • 7,445
  • 2
  • 21
  • 49
0
votes
1 answer

Ubuntu: configure folder is not under the directory crosstool-ng

I'm new with ubuntu and I need to install crosstool-ng in my VM following these steps : 1 mkdir test 2 cd test 3 git clone https://github.com/crosstool-ng/crosstool-ng 4 ./bootstrap 5 ./configure…
khou
  • 1
  • 1
0
votes
0 answers

sem_wait() from uClibc on MIPS platform returns Not Implemented

It so happend that we are forced to use Linux 2.6.21 which was released in 2007 on MIPS platform, and no, changing kernel is out of the question, or rather the question is really expensive. For that I'm building my own toolchain using crosstool-ng…
xphil
  • 1
  • 2