Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

1
vote
2answers
918 views

Cannot find libgmp when compiling GCC 4.5.2

I'm attempting to compile GCC 4.5.2 as part of the Linux from Scratch book (http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html). My configure is as follows: ./configure \ ...
0
votes
1answer
194 views

GCC installation prefix under Linux [duplicate]

Possible Duplicate: Where should I put software I compile myself? Following this qustion, is there a recommended prefix for GCC installation under Linux? I am not trying to achieve anything ...
3
votes
2answers
1k views

Running C Programs on Linux

I watched a video lecture today that introduced C and things like how to make a C program that will run in Linux. I followed the steps given and now I'm stuck with a bit of a problem. I created my C ...
5
votes
1answer
524 views

How to recompile a Debian package with -Os?

There are a few larger programs I am interested in compiling with -Os. The normal method I use to patch/recompile programs is apt-get source followed by dpkg-buildpackage. I learned from the ...
1
vote
1answer
6k views

Install GCC on OpenSUSE 11.4

I installed OpenSUSE 11.4 but I noticed that it don't have gcc… How I can install it?
1
vote
1answer
929 views

Use math.h and link objects files without -lm

I am currently reading Advanced Linux Programming and in the section 2.3.3 it is said that if I use some function from math.h I have to link the object files with -lm. But I am pretty sure that I ...
7
votes
2answers
2k views

.dtors looks writable, but attempts to write segfault

This is Ubuntu 9.04, 2.6.28-11-server, 32bit x86 $ cat test.c main() { int *dt = (int *)0x08049f18; *dt = 1; } $ readelf -S ./test ... [18] .dtors PROGBITS 08049f14 000f14 000008 ...
6
votes
1answer
2k views

Linux, GNU GCC, ld, version scripts and the ELF binary format — How does it work?

I'm trying to learn more about library versioning in Linux and how to put it all to work. Here's the context: -- I have two versions of a dynamic library which expose the same set of interfaces, say ...
3
votes
2answers
7k views

How to create .ko files in Linux

I have written one driver for one device in Linux. How can I create (using gcc) a .ko file so that I can insert it into the kernel?
6
votes
1answer
5k views

Install g++ when having gcc (C only) — RH6

I have a RedHat 6 machine, which came with gcc but without g++. The gcc version is 4.4.4 20100726 (this is what I got from gcc --version). How can I get g++ working? Currently, the shell just returns ...
4
votes
4answers
2k views

How do I install GCC on a system with no compiler?

I've been messing around with my NAS which runs on Linux. I have root access, but there is no compiler. I seem to remember something about being able to compile on another system, but I'm not certain. ...
10
votes
5answers
5k views

Compiling GNU/Linux with -O3 optimization

It's said that compiling GNU tools and Linux kernel with -O3 gcc optimization option will produce weird and funky bugs. Is it true? Has anyone tried it or is it just a hoax?
4
votes
3answers
585 views

Changing my toolchain architecture (in gentoo)

This is somewhat gentoo-specific, so I'll explain it in that context, then try to abstract it to a generic linux machine. I accidently set my CHOST to "i686-pc-linux-gnu" in the beginning, not paying ...