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

C++ compiler - common symbols

I have a question regarding the C++ compiler. When exactly the C++ compiler will create a common symbol? With a C compiler I could provide common symbols to the object file, but if I compile the very same code with a C++ compiler (GNU), I only get…
0
votes
0 answers

GNU ToolChains Cross Compiler c/C++library issue

I built a GNU toolchain using the main parameter below: build=i686-w64-mingw32 host=i686-w64-mingw32 target=x86_64-pc-elf I used GCC 11.3 , binutil 2.40 and newlib 4.3.0 I created executives with prefix x86_64-pc-elf-...exe But when I try to build a…
0
votes
0 answers

"cannot compute suffix of object files" error occurs during the installation of RISCV toolchain

I got an error shown on the terminal as the title, and the following errors in the config.log file, when I tried to install riscv tool chain: configure:2638: $? = 0 configure:2627: riscv64-unknown-linux-gnu-gcc -march=rv32imac -mabi=ilp32 -v…
SBX
  • 1
  • 1
0
votes
1 answer

(make) Recipes breaks after definding PATH

I am trying to automate the building of my toolchain, however every time I set my PATH using a recipe, it breaks the future recipes to ignore the prefix of @ and passes all commands after that directory from shell. Here is one of my…
0
votes
0 answers

Error: unrecognized opcode `mul a0,t4,t5', extension `m' or `zmmul' required

I'm trying to compile RISC-V assembly code to object file. I've built riscv-gnu-toolchain, selecting newlib, architecture rv32imac and abi ilp32. However, when I try to compile assembly code with command: riscv32-unknown-elf-as -march=rv32imac…
user3272
  • 103
  • 1
  • 9
0
votes
1 answer

Inconsistent Binary Output When Building STM32CubeIDE Project on Linux and Windows

I am facing an issue where the binary output of my STM32CubeIDE project built on Linux and Windows is inconsistent. I have installed STM32CubeIDE Version 1.6.1 and the fixed Toolchain: GNU Tools for STM32 (7-2018-q2-update) on both platforms. Upon…
nza
  • 91
  • 5
0
votes
0 answers

How to generate an EFI file with objcopy in riscv-gnu-toolchain?

On x86, my system's default objcopy has a target pei-x86-64 that can be used to convert a shared object file to an EFI application. However, the list of supported targets in the riscv-gnu-toolchain I recently built (riscv64-unknown-linux-gnu-gcc)…
0
votes
0 answers

Compiling kernel for Android (Moto E3 Power) fails with "output directory .../tools/tools/ does not exist"

I want my phone kernel to support the CH341 driver, so I made changes in the configuration as CONFIG_USB_SERIAL=y and CONFIG_USB_SERIAL_CH341=y. Then I followed this guide to compile the kernel, but I'm getting the following…
honor
  • 1
0
votes
1 answer

Use Makefile and sdcc to build a perfect automation for MCS-51 development

Since sdcc have some limitations, like compiling one file at a time, I've tried hard to write a Makefile to perfect the automation of MCS-51 development, which have some requirements: Source file (.c) expect main.c are stored in…
user19681631
0
votes
0 answers

How to run GCC for ARM cross compiling in WSL2 via WINE?

I'm trying to pack my Windows Toolchain into a container image. For that, I use WSL2 and Docker. To run Windows binaries, I use Wine. This works for many Windows tools, but unfortunately, gcc does not work: # in WSL2, Ubuntu 20.04…
Jan
  • 310
  • 1
  • 7
0
votes
1 answer

Will all ARM compilers produce the same Assembly code and run on various CPUs?

I have been developing code for an older device which has an NXP i.MX28 single core CPU which is ARM-based. The device runs Embedded Linux. I am now upgrading to a better device which has an NXP i.MX6UL quad core processor, of course ARM-based also,…
Engineer999
  • 3,683
  • 6
  • 33
  • 71
0
votes
1 answer

function calls not working on baremetal c code for cortex m0 with gnu toolchain

I am building a custom soc based on the arm cortex m0 design start. The SOC now has a cortex mo core attached to a AHB lite bus with some ram on it and a gpio module. I am currently struggling to write and compiling code for it using the gnu tool…
varun
  • 341
  • 2
  • 17
0
votes
1 answer

Debugging MBED with Eclipse

I am currently using mac OS to set up a debugger to debug Mbed OS application , I followed the instruction from https://os.mbed.com/docs/mbed-os/v5.12/tutorials/eclipse.html . I successfully set up the local debug toolchain and I am stuck at this…
Lxx lxts
  • 11
  • 1
0
votes
1 answer

Installing GCC after flashing SD-Card / Buildroot Distro

I am brand-new to Buildroot and didn’t use embedded systems or distros a lot. I successfully flashed my STM32 and have buildroot as distro on it but after flashing it I figured out that I needed to install gcc package. I didn’t find the gcc package…
0
votes
1 answer

Does the GNU Toolchain for Arm Processors provide support for classic processors such as the ARM11?

Recently I have taken up an interest in learning "bare-metal" development for ARM processors using native assembly. I bought a Raspberry Pi Zero which features an ARM11 processor, and am currently looking for a toolchain to assemble and link my…