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
67
votes
2 answers

Why does gcc not implicitly supply the -fPIC flag when compiling static libraries on x86_64

I've had numerous problems compiling shared objects that link statically against static libraries. This problem only shows up on x84_64 platforms. When doing the same compilation work on x86_32 I do not have any problems. Perhaps this is a OS…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
21
votes
5 answers

How to cross compile from Mac OS X to Linux x86?

I'm running Mac OS X 10.5.8 and want to compile for target CentOS 5.3 with GCC 4.1.2. How could I: Compile GCC 4.1.2 toolchain and related tools? Use that tool to cross compile for target CentOS 5.3? Any help is greatly appreciated!
Viet
  • 17,944
  • 33
  • 103
  • 135
18
votes
2 answers

‘strcmp’ was not declared in this scope

I'm working on building the ios toolchain with this tutorial. When I run the command make ENABLE_OPTIMIZED=1 I get this output. llvm[0]: Reconfiguring with /home/connor/llvm-svn/configure config.status: creating Makefile.config config.status:…
Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
13
votes
2 answers

How do I link a library file in GCC that does not start with lib?

When I link a library such as libm in with ld, I need to drop the lib prefix. What if the file does not follow this naming convention? Is there a way to link it other than renaming the file?
JeffV
  • 52,985
  • 32
  • 103
  • 124
12
votes
2 answers

Declaring abstract class (pure virtual method) increase binary size substantially

Here is the story: I am developing C++ software for ARM Cortex-M0 processor in Linux with AC6 Toolpack. Before I was using Keil (in windows) (who has their own toolchain) and I have migrated to GNU-toolchain ((GNU Tools for ARM Embedded Processors)…
ifyalciner
  • 1,190
  • 1
  • 10
  • 22
12
votes
1 answer

Why were GNU binutils and GDB merged as one package?

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git See, especially, the tags section. What was the rationale behind this decision? Does the merge affect the suggested way to build latest binutils and GDB? (In fact when I checked out…
nodakai
  • 7,773
  • 3
  • 30
  • 60
10
votes
7 answers

Building ARM GNU Cross compiler

A similiar (less descriptive) post is here. I'm trying to roll my own tool chain using recent releases on Ubuntu and was hoping there was enough of a Linux community here that I could get specific advice on certain problems as they come up. With…
Jamie
  • 7,075
  • 12
  • 56
  • 86
9
votes
0 answers

Can IAR produce a static library that GCC can link to?

There is a vendor whose software I'd like to work with. They have a code base which they can only compile using IAR Embedded Workbench (as far as I know, their code does not compile with GCC). Unfortunately their hardware only works with their…
Venemo
  • 18,515
  • 13
  • 84
  • 125
8
votes
13 answers

On Windows is there a **light-weight** IDE that can be used both with C and Perl?

When I asked this previously I should have mentioned that it's particularly a light-weight IDE that I'm after, so I’m having to ask again as a different question. Something that is not just a text editor, is light-weight and versatile, that would…
Rob Kam
  • 10,063
  • 14
  • 55
  • 65
7
votes
4 answers

"file not recognized" while using the GNU linker

I'm probably doing something wrong, being a newbie. Could you please help me out? I've written a simple Hello World program in C called hello.c, and ran the following command: gcc -S hello.c That produced hello.s. Then I used that file with GNU…
Mr Mister
6
votes
2 answers

undefined reference to function in Eclipse CDT

In my main.c program I include this library: #include "coap_api.h" That is also included in Properties -> C/C++ Build -> Settings -> Cross ARM GNU Assembler -> Includes and Properties -> C/C++ Build -> Settings -> Cross ARM C Compiler ->…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
6
votes
3 answers

Configure: error: cannot run /bin/sh

I am trying to build GNU toolchain for OpenRISC by following the guide given at http://openrisc.net/toolchain-build.html on Fedora Virtual Box Image. I am getting error saying Configure: error: cannot run /bin/sh ../gcc-svn/config.sub when I try…
Chethan N
  • 1,110
  • 1
  • 9
  • 23
5
votes
1 answer

Building GCC without mpc, mpfr and gmp

I need to use lesser version of packages for building my toolchain. Is there anyway to build gcc by disabling the mpc, mpfr and gmp packages?
prasanth
  • 69
  • 5
5
votes
6 answers

arm-linux-gcc vs arm-elf-gcc

I am looking at uClinux system that builds the kernel with arm-linux-xxx, but builds the user apps with arm-elf-xxx. If the apps are intended to run on linux, wouldn't it be better to build everything with arm-linux-xxx ? Where does one set that…
user126593
  • 2,707
  • 4
  • 21
  • 16
5
votes
3 answers

Finding a uniq -c substitute for big files

I have a large file (50 GB) and I could like to count the number of occurrences of different lines in it. Normally I'd use sort bigfile | uniq -c but the file is large enough that sorting takes a prohibitive amount of time and memory. I could…
Charles
  • 11,269
  • 13
  • 67
  • 105
1
2 3
9 10