Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

6
votes
2answers
10k views

Get newest gcc for debian?

I can't build my apps on gcc since I use various c++0x features. I'm on Debian 6 (Lenny) and after upgrade/updating I have gcc version 4.4.5-8. I'm unsure which version is required but mingw 4.6.2 ...
3
votes
1answer
420 views

Install Compiler, GCC, in SCO

I am having difficulty trying to install the GCC compiler in SCO, but can't get it to work. I have used an FTP to transfer some files (.tar.gz) to /u/test/installgnu/ and I extracted the files, but ...
2
votes
4answers
419 views

How do I automagically update GCC to a later release without upgrading my distro?

My understanding is that c++11 support in G++ 4.7.2 wasn't great (it gives me a warning everytime I try to compile my c++ code, presumably there are good reasons for these warnings), so thought I ...
1
vote
1answer
566 views

Adding Objective C compiler to GCC 4.7.2

I finished building the GCC 4.7.2 with C, C++ and Go compilers on my Ubuntu 12.04. I now want to add the Objective C compiler, is it possible to add it to the previous build? If so, how should i ...
135
votes
4answers
50k views

Why is FreeBSD deprecating GCC in favor of Clang/LLVM?

So I was surfing the net and stumbled upon this article. It basically states that FreeBSD, starting from Version 10 and above will deprecate GCC in favor of Clang/LLVM. From what I have seen around ...
44
votes
5answers
2k views

How to compile the C compiler from scratch, then compile Unix/Linux from scratch

Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively. Reading through this article it mentions that it would be easy to insert a backdoor ...
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 ...
9
votes
2answers
2k views

Why does FreeBSD use the GPL-licensed GCC?

Why does FreeBSD use GCC as its default compiler? I am under the impression that a core pillar of the FreeBSD philosophy is not to use any GNU software and in particular, GPL code. Yet GCC which is ...
2
votes
1answer
1k views

How to configure OpenIndiana(151a8 aka “hipster”) for development?

I saw a similar post about Solaris and thought of a similar howto. I've heard of recent news (as in 2013) with the distribution and I learned I could easily update my initial OpenIndiana 151a7 release ...
1
vote
1answer
394 views

LFS 7.4 chapter 6.7: make: gcc: Command not found

I am (again) trying LFS. The version is 7.4 I am stuck at chapter 6.7, where I must run: make mrproper and I get this error: make: gcc: Command not found. But the gcc is there. I also cannot run ...
2
votes
1answer
381 views

Compile the Ubuntu “Raring” Kernel with the Intel Compiler

Of course, the first question is: why I'm doing this. Just for fun! I'm learning more about Linux kernels and I have a virtual machine that I can replace in 15 minutes. Getting to business, I don't ...
2
votes
1answer
10k views

Installing GCC 4.5 on Fedora 16

The default GCC package available in the Fedora 16 repositories is gcc-4.6. I need to install gcc-4.5 on my system. I downloaded the packages from the kijo repository, but when I try to install them ...
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
2answers
3k views

Relationship between cc1 and gcc?

I'm trying to install Ruby in my home directory on a Linux server (without root access), which of course requires using gcc. The closest thing I can find is a directory by that name which (if you go ...
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. ...
3
votes
2answers
16k views

Debian 6 Squeeze - installing build-essentials - gcc / g++

The first thing to say is: "I am noob", so please be patient and don't laugh.. too much on me. I need to install c / c++ compiler and I heard that the best thing to do is to install gcc/g++ for that ...
2
votes
3answers
337 views

How does gcc handle file permissions?

The executable files that gcc creates have execution permissions -rwxrwxr-x which are different than the permissions that the source file has. -rw-rw-r-- How does gcc set these permissions ?
2
votes
1answer
557 views

Building GCC inside a chroot from source

In a previous question I asked about creating a chroot that simulates my embedded device environment. It was suggested that I build from source GCC and binutils first inside my chroot. To attempt this ...
1
vote
1answer
130 views

arm-linux-gnu-gcc Vs arm-linux-gcc

What is the difference between arm-linux-gnu-gcc and arm-linux-gcc Which should be used for cross compiling a C program for ARM ?
1
vote
1answer
1k views

Unable to find headers in GCC

I am trying to compile a program using GCC in SCO, and I am unable to find the ctype.h file. I have managed to find the other files that were missing when compiling, like string.h etc. I was getting ...
0
votes
1answer
238 views

Installation of QEMU, GCC for ARM in RHEL

We are setting up a lab which has the QEMU system to emulate an ARM processor and run assembly programs. The lab is currently setup with the host operating system as Ubuntu. We are migrating the lab ...