Questions tagged [gnu-toolchain]

The GNU toolchain is a broad collection of programming tools produced by the GNU Project. These tools form a toolchain (a suite of tools used in a serial manner) used for developing software applications and operating systems. The GNU toolchain plays a vital role in development of Linux, some BSD systems, and software for embedded systems.

Consider adding specific tool tags.

Cross platform portability

  • - general tag for auto-tool suite.
  • - tool for generating a configure script.
  • - makefiles generation tool.
  • - library portability tool.
  • - for use of the output of autoconf; a configure script.
  • - language used by many autotools.
  • - database of install library options.
  • - the gnu building program.

Code generation

  • - the 'C' compiler.
  • - an assembler.
  • - a yacc tool; parser generator.
  • - the gnu scanner; text to tokens.
  • - the gnu C++ compiler.
  • - a collection of support tools for building. Also:
  • - a newer gnu linker
149 questions
5
votes
1 answer

Why does my static build require shared libraries?

Why does my static build require shared libraries? Every so often I get these warnings from my linker... (at the moment it is happening with openssh-5.2p1) The warnings look similar to: "Using 'function' in statically linked applications requires at…
Crazy Chenz
  • 12,650
  • 12
  • 50
  • 62
4
votes
1 answer

GDB doesn't find line numbers, objdump does

I'm using DDD/GDB to debug a homebrew game running on NintendoDS, built with "arm-eabi-gcc (devkitARM release 32) 4.5.1". FYI, I uploaded the unstripped .elf binary (file no longer hosted), in case anybody wants to reproduce some of the steps…
PypeBros
  • 2,607
  • 24
  • 37
4
votes
2 answers

Basics of compiling binary with no dependencies using gnu toolchain

I'm trying to make an audio file I create slow down using SoX, and although I can easily compile the source files on the linux machine I use regularly, I need to transfer the binary to another linux machine with limited permissions and memory. I…
Malz
  • 173
  • 7
4
votes
1 answer

s-files generated from riscv-gnu-toolchain does not run RISCV emulator

I must compile a set of C++ files into RISC-V code (RV32IM). I am using riscv-gnu-toolchain and compiles with the following CMakeLists.txt file cmake_minimum_required(VERSION 3.10.2) project(project-title) set(CMAKE_CXX_FLAGS "-march=rv32im…
eirikvaa
  • 1,070
  • 1
  • 13
  • 24
4
votes
1 answer

Is there any difference in the format of executable file generated by arm-elf and arm-none-eabi toolchains?

I am trying to build a bare metal arm project. I tried the GNU toolchains arm-elf and arm-none-eabi. Executables generated by both toolchains, when converted to intel hex format, runs fine. I am using the software Proteus for simulation. Proteus…
3
votes
1 answer

How to obtain the BFD architecture specification for the current platform?

I've embedded a text file in a C program using the following method: http://www.linuxjournal.com/content/embedding-file-executable-aka-hello-world-version-5967 a.out:prog.c file.text objcopy --input binary --output elf64-x86-64…
Pierre
  • 34,472
  • 31
  • 113
  • 192
3
votes
4 answers

bash script - Use patterns list in sed to remove substrings

I have this file (adapters.txt) with a list of…
3
votes
1 answer

Cross-compiling and linking to a library in a sysroot - what's wrong?

I am not inexperienced but it's become clear to me that I lack some fundamental understanding in the area of cross-compilation and sysroots. I'm hoping someone can provide me that gem of information I need to continue. I have downloaded a pre-built…
davidA
  • 12,528
  • 9
  • 64
  • 96
3
votes
2 answers

Installing and using arm-none-eabi-gcc on MSYS2

I am trying to build an embedded program using "make all" with the GNU ARM toolchain, but it is not working yet. I installed it with xpm according to this website with the xpm installer: https://gnu-mcu-eclipse.github.io/toolchain/arm/install/ Now…
Spacefish
  • 305
  • 4
  • 11
3
votes
3 answers

Autofoo test for maximum version of Python

I'm trying to get autofoo to test for a maximum version of Python rather than a minimum. Example: AC_REQUIRE([AM_PATH_PYTHON([2.7])]) ... will test for Python >= 2.7, and will probably turn up with /usr/bin/python3. I want it to return nothing…
bhilburn
  • 579
  • 7
  • 18
3
votes
2 answers

Setting earlier minimum kernel version when compiling static libraries

My distribution (Arch Linux) recently increased the minimum supported Linux kernel version for its toolchain. I am compiling a web application that I link statically and then upload to a web server, and the kernel version on the web server is too…
ajd
  • 1,022
  • 1
  • 8
  • 21
3
votes
1 answer

How can I work around cabal sandbox build errors on Windows due to path length limitations?

For a while I was mystified about the fact that doing installs/builds in a cabal sandbox often failed on my Windows machine. I eventually figured out that the failures were caused by certain paths exceeding the MAX_PATH limit (paths are effectively…
Daniel Pratt
  • 12,007
  • 2
  • 44
  • 61
3
votes
2 answers

Windows based development for ARM processors

I am a complete newbie to the ARM world. I need to be able to write C code, compile it, and then download into an ARM emulator, and execute. I need to use the GCC 4.1.2 compiler for the C code compilation. Can anybody point me in the correct…
user367231
  • 97
  • 6
3
votes
0 answers

fatal error: features.h: No such file or directory on ubuntu 14.10

This seems to be an old issue, and the fix is to install 32 bit C library, and gcc multilibrary. I have done everything suggested in different posts online, but I still have the issue. I run 64 bit 14.10 aka Utopic, and I am trying to use the arm…
user3326293
  • 817
  • 1
  • 14
  • 37
3
votes
1 answer

Can't compile tcprstat on CentOS/redhat. Need advice on GNU Toolkit/bzr

I downloaded code ("bzr branch lp:tcprstat" to get the code - 1.5 MB total), but I am unable to compile it. The files that appear in the tcprstat directory are below. I'm quite familiar with the traditional ./configure, make, sudo make install and…
Vérace
  • 854
  • 10
  • 41
1
2
3
9 10