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

GNU-C toolchain setup.c issue for ARM Cortex M3

I am using an ARM M3 based MCU, CC2538. I use Code Composer Studio v6 as an IDE. When I select GNU v4.7.4 (Linaro) as a compiler, I get a warning message that " selected device does not currently provide project initialization details to the GNU…
Angs
  • 1,605
  • 2
  • 23
  • 47
3
votes
1 answer

Is it reasonable to expect two shared libraries built on two identical platforms?

If I build the same source code, link to the same version of the same libraries, with the same tool chain ( same compiler, linker etc , GCC 4.4), with the same version of the same operating system, ( Centos 5 Linux in my case) but on two…
Chris Huang-Leaver
  • 6,059
  • 6
  • 41
  • 67
3
votes
3 answers

embedding absolute path for shared libraries

Using a vendor provided cross-compiling toolchain (apparently an OpenEmbedded derivative), I'm unable to embed the absolute path to third-party (open source, compiled in house)libraries. With the following gcc command line: arm-linux-gcc…
pica
2
votes
1 answer

how to add g++ support in toolchain

I want to add support for g++ compiler in my toochain. I am building toolchain for powerpc platform.I googled about it and found that we have to add external toolchian in our existing toolchain. I want to create this binary: CXX =…
Nachiket Jagade
  • 255
  • 1
  • 3
  • 12
2
votes
0 answers

Where is the source code from the WCH RISC-V toolchain?

WCH, the company behind the famous 10-cent RISC-V microcontroller, has based its RISC-V toolchain on the xPack builds from Liviu Ionescu: https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/tag/v8.2.0-3.1/ Both output the same…
K.Mulier
  • 8,069
  • 15
  • 79
  • 141
2
votes
1 answer

Downloading gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu from source, failed building libc

I am currently taking this course from Coursera about Linux system programming, and during assignment 2, I was required to download the cross compiler toolchain, as stated in the title, from source. Additionally, I was required to download the…
이희원
  • 145
  • 5
2
votes
0 answers

Complie riscv-gnu-toolchain on MacOS Error

I compile gnu-tool-chain on my Mac, and get some error message I'm in the riscv-gnu-toolchain root directory, and ./configure --prefix=/usr/local/opt/riscv-gnu-toolchain make I…
Zzzz
  • 21
  • 2
2
votes
1 answer

RISC-V Linux running on Qemu

I am trying to run RISC-V linux on Qemu, following the instruction: Running 64- and 32-bit RISC-V Linux on QEMU I have downloaded and installed the RISC-V GNU compiller Toolchain ./configure --prefix=/opt/riscv make linux and when I execute the…
ussrback
  • 491
  • 2
  • 8
  • 22
2
votes
2 answers

load time base address cortex-m3 bare metal

I'm working on a project on a cortex-m3 CPU with bare-metal environment. Due to software upgrade needs the executable image on the CPU can be in one of two addresses in the flash memory which presents a problem. The start address of the image is…
Boaz
  • 21
  • 2
2
votes
0 answers

gcc's assembler and variable type (length, sign)

I'm using an 'm68k-elf-as' compiler (https://gnutoolchains.com/m68k-elf/) for assembly code that I'm patching into my car's ECU (CPU32 ISA, MC68376 processor). Is there a simple way to control typecasting in the gnu assembler? I'm having trouble…
Obeisance
  • 21
  • 3
2
votes
0 answers

RISC-V Toolchain Error: unknown pseudo-op: `.insn'

I added my own instruction for spike RISC-V like this tutorial. It said that I need to rebuild the toolchain which takes too long for me. So I tried to find out how to use my instruction without rebuild the toolchain, and found from here that this…
ibndias
  • 107
  • 10
2
votes
1 answer

Symbol available in gdb but missing in objdump/nm output

On Fedora 31, I see that gdb knows the symbols of some system binaries, e.g. main of /usr/bin/true: $ gdb -ex 'set height 0' -ex 'disas main' -ex q /bin/true Reading symbols from /bin/true... Reading symbols from .gnu_debugdata for…
maxschlepzig
  • 35,645
  • 14
  • 145
  • 182
2
votes
1 answer

CC -I vs -isystem command line argument differences and specific behavior

I have seen this question already. Many compilers and compiler toolchains support the -I and -isystem command line arguments. I do know that they add directories to the search path and system search path respectively and that system…
Culex
  • 300
  • 1
  • 9
2
votes
1 answer

STM32F103C8T6 doesn't work after reset button

I have "Minimum System Development Board for ARM Microcontroller – STM32F103C8T6" with ST-LINK V2. This is the main code followed by linker-script then startup: 1) main: @@@ Directives .thumb @ (same as saying '.code 16') …
I.Omar
  • 501
  • 7
  • 19
2
votes
1 answer

Build Linux kernel image (vmlinux) to use DWARF3 instead of DWARF4

I am working on a project that depends on Lauterbach JTAG debugger hardware and software, and the support on the target JTAG cable ended in July 2011. We using a Linux 2.6.33 kernel on an omap2 processor. We are using gcc 4.9.2 to build the kernel…
Daniel
  • 81
  • 7
1 2
3
9 10