Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

2
votes
1answer
206 views

QEMU for ARM programs with GDB [closed]

I want to emulate an ARM processor for running the assembly programs using QEMU in RHEL. I have installed QEMU but I still have problems in running the assembly program. I got the assembly program, ...
0
votes
1answer
387 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 ...
1
vote
1answer
38 views

Error with Class locale with gcc 2.96

I am using Red Hat Linux release 9 Kernel 2.4.20-8 on an i686 with gcc version 2.96. In my code I am declaring like, std::locale utf8_locale; I am getting this error: syntax error before `;' ...
0
votes
1answer
3k views

Installing php phalcon extension

I am unable to install phalcon php extension by folowing these steps. I use 64-bit Linux Mint 14 Nadia. http://docs.phalconphp.com/en/latest/reference/install.html#linux-solaris-mac For the ...
0
votes
1answer
427 views

Debug program in eclipse with a newly built compiler

I recently tried to build the new version of GCC (4.8.1) on Ubuntu 12.04. I managed to build everything correctly, it passed the tests and I installed the new compiler. I can build programs with the ...
0
votes
2answers
645 views

GCC compilation - where the __stack_chk_fail@GLIBC_2.4 symbol comes from?

I'm using GCC 4.7.2 from devtoolset package on CentOS 5 (CentOS 5 because we need compatibility with old Linuxes, and GCC 4.7 because it optimizes better than 4.4). There is one symbols that prevents ...
1
vote
1answer
382 views

Gcc Error: cc1 not found

I've a system with gcc 4.2.4 on board, but when I try to compile even a simple hello world I obtain this error: $ gcc helloworld.c gcc: error trying to exec 'cc1': execvp: No such file or directory ...
46
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 ...
1
vote
1answer
67 views

Module dependencies [closed]

In a system, I need to use module load gcc/4.4.7 to get access to gcc to compile foobar.c into foobar. When I run foobar, does gcc/4.4.7 need to be loaded, say to ensure certain libraries are ...
0
votes
1answer
3k views

How to install [ gcc ] without internet connection?

I simply ran yum install gcc this is what came up: ================================================================================ Package Arch Version ...
2
votes
0answers
3k views

How to install gcc 4.8.1 on debian wheezy

I would like to install GCC 4.8.1 on my Debian Wheezy 7.1.0 system. The current version of GCC installed on my system is the 4.7.2. I see gcc-4.8.1 is available on the Debian repository. Can someone ...
2
votes
1answer
529 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 ...
1
vote
1answer
50 views

How can I get a regular gcc etc. under HomeBrew under Mac OSX Mountain Lion?

I have a Mac with command-line developer tools installed, including Apple's LLVM C compiler, present as /bin/gcc. How can I get a real gcc installed so that e.g. make will see the standard gcc ...
0
votes
1answer
251 views

Tell autoconf to use different version of gcc

OpenBSD installs newer version of gcc as egcc. I am trying to compile some software that requires gcc 4.4+ and can't seem to convince autoconf to use the newer versions of gcc... I have tried: # ...
1
vote
2answers
50 views

How to deduce the right target for a GCC cross-build?

I have a 32 bit x86 machine where Debian is up and running with this properties uname -r is 3.2.0-4-486 and uname -m is i586 in this situation i have to pick the right HOST and TARGET prefix so ...
2
votes
1answer
131 views

console displaying quote character from gcc wongly

After an upgrade to debian wheezy my text consoles displays questions marks where there should be quotes Under X I see things correctly window.cpp:1056:21: error: base operand of ‘->’ is not a ...
1
vote
0answers
111 views

ices-cc (libvorbis) linking fails on Ubuntu 13.04 - lgcc_s not found

I'm trying to compile compile ices-cc into a set of static files on Ubuntu Server 13.04. I use the automatic Centova's build-ices.sh script and use the following command: ./buildices.sh ...
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 ...
3
votes
4answers
199 views

Why is that when I download a binary from the web it doesn't have executable permissions set, but when I use gcc to build a binary it does?

For example, if I have the file hello.c which just contains: int main() { printf("Hello world"); return 0; } and I built it in gcc with gcc hello.c -o hello I can then run ./hello and it ...
2
votes
1answer
1k views

Pip install - CPU you selected does not support x86-64 instruction set

I'm trying to use pip install mysql-python inside a virtualenv container and am getting the error building '_mysql' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall ...
0
votes
1answer
1k views

Centos CMake Does Not Install Using gcc 4.7.2

A similar problem has been reported here with no solution:https://www.centos.org/modules/newbb/print.php?form=1&topic_id=42696&forum=56&order=ASC&start=0 I've added and upgraded gcc ...
2
votes
1answer
285 views

new distros cause segmentation fault of old binary

I have an elderly (~1999) and unfortunately commercial graphic program that runs perfectly OK on systems with gcc up to 3.4.6 (CentOS 4.8). However, in all distributions based on gcc 4.* that I've ...
2
votes
2answers
224 views

Is there any pattern to specify target triples in GCC?

The gcc compiler use target-triplets for cross-compilation. I see some of these target triples like "x86_64-pc-linux-gnu" (the most common). I understand what means but I don't know how specify ...
4
votes
1answer
755 views

CentOS 5.8 with gcc 4.4.7 links against libstdc++ 6.0.8. How is it possible?

According to the gcc ABI policy, gcc 4.4.7 should depend on libstdc++ 6.0.13. As far as I understood, the compiler version and the libstdc++ version are deeply interrelated and can't be swapped, so it ...
4
votes
2answers
4k 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 ...
1
vote
0answers
38 views

GNU toolchains against GCC SVN?

Is there anything like CodeSourcery which provides prebuilt binaries for arm toolchains built against gcc-svn. http://elinux.org/Toolchains#Prebuilt_toolchains Otherwise, a working instruction for ...
0
votes
1answer
50 views

Is there a clang-snapshot?

I've just discovered the wonderful gcc-snapshot package for Ubuntu. I don't see a clang-snapshot or llvm-snapshot package though. Is there an equivalent for clang?
3
votes
1answer
399 views

ArchLinux pacman updates on Arm

I have ArchLinux embedded in userspace on my Samsung Series 3 Chromebook. The version of GCC I have installed via pacman is 4.7.2. I'd like a newer version, and the package database here shows that ...
4
votes
1answer
278 views

Effect of static and dynamic linking on start address

I have a simple C program. I run: $ gcc Q1.c -Wall -save-temps -o Q1 Then I inspect the executable generated: $ objdump -f Q1 Q1: file format elf32-i386 architecture: i386, flags 0x00000112: ...
-3
votes
2answers
293 views

Using file system call

I'm trying to learn system calls for open,write and close a file. I use this sample and the result is: gcc: error trying to exec 'cc1plus': execvp: No such file or directory Here's my program: ...
1
vote
1answer
4k views

How to update the version of gcc-c++ on Fedora?

I have version 4.4.4 of gcc installed and would like to update to either a specific version or to the latest version. Here is what I have tried: sudo yum install gcc-c++ this tells me that Package ...
1
vote
1answer
761 views

Only output errors / warnings when compile kernel?

When you compile kernel you normally see lines like CC XX.o or LD XX So, can I skip these messages? Only output errors or warnings generated by gcc
0
votes
0answers
291 views

How to install cpp in RHEL 6.3?

I want to install gcc in RHEL 6.3, but it has cpp dependencies. So I go to cpp rpm download page, but it has no rpm for 6.3 version: Is there any other way to install cpp in RHEL 6.3?
0
votes
3answers
2k views

How can I downgrade gcc 4.6.3 to 4.4.3?

I have gcc-4.6.3 installed in my PC.but for my project I need gcc-4.4.3 version. I do not mind removing gcc-4.6.3 but I badly need gcc-4.4.3. How can I downgrade? or how can I keep two gcc and make ...
9
votes
1answer
1k views

How does gcc know where boost is installed

I installed boost using sudo apt-get install on Ubuntu. Later I did not have to give gcc the I flag alongwith the path to the boost libraries to use boost ! Nor did I do any pkg-config --cflags --libs ...
2
votes
3answers
442 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 ?
0
votes
2answers
4k views

Installing GCC in Solaris_x86

I have tried Googling for my answer, but everyone is saying GCC is already installed on the Solaris Operating System. They said to add /usr/sfw/bin to your $PATH, which I did, and rebooted the ...
1
vote
1answer
217 views

Can I read what CCFLAGS were used for building a binary?

Is there any way to read from compiled code what CCFLAGS (particularly the optimizations) were set at compile time?
4
votes
1answer
93 views

How to send the content of an emacs buffer to gcc without writing to disk?

It's common for me to run a throwaway piece of code I'm not particularly interested in saving on my disk, so I'm often working inside emacs in a buffer not attached to any file in my system. When ...
2
votes
3answers
364 views

Linux GCC compiler options

I have recently started using Linux as a tool for programing. In my book, I have seen that the GCC is used with 2 options: -g and -o. Now, I know that -o is to set a filename, but what is the purpose ...
3
votes
2answers
43 views

Running -march optimized software on another architechture?

I'm running an Athlon64 server with LFS and would like to have a local copy of the server in a virtual machine for testing purposes and building software. My PC uses an i7 and the existing server ...
1
vote
3answers
116 views

UNIX be-spoke Shell-Script / Commands

Sorry in advanced if this question would be better suited on SO. Basically, I'm getting used to using the command line interface (linux etc..) and I come across commands like: git [command] .. ...
2
votes
2answers
199 views

How does a package like ATLAS know which fortran compiler to use?

How does a package like ATLAS know which compilers I have installed on my system? For example, say that I install a local version of gfortran, how do I "register it" in the system so that a package ...
0
votes
2answers
1k views

gcc: fail sanity check error, I suppose due to cxx USE flag missed

Recently I've done emerege -e world and then found that gcc was compiled without cxx flag. Now I can't compile any C++ package due to configure: error: C++ preprocessor "/lib/cpp" fails sanity check ...
4
votes
2answers
437 views

Installing gcc without root?

I'm running OSX, and I don't have root, or an existing compiler. Is there any way I can install gcc? Are there official or trusted unofficial mach-o binaries that can be downloaded for a certain ...
2
votes
1answer
5k views

Installing GCC 4.6.3 on Fedora 18

I am trying to install GCC 4.6.3 on Fedora 18. I was following the instructions provided by Lars Rohrbach. When I run make, I get the error /usr/include/gnu/stubs.h:7:27: fatal error: ...
0
votes
2answers
326 views

Plugin support for gcc in RHEL/CentOS?

Is there anyway to enable or install plugin support for gcc in RHEL/CentOS?
2
votes
2answers
3k views

How can I solve this make error when building gcc-4.7.2 for LFS?

Everything was going so well... I'm trying to build gcc-4.7.2, following the instructions in the LFS book. When I run make, I get the following: checking for MPFR... no configure: error: libmpfr ...
1
vote
1answer
704 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 ...
0
votes
1answer
1k views

Fatal error: No compiled in support for x86_64

Can't use gcc on x64 debian: $ gcc a.cpp Assembler messages: Fatal error: No compiled in support for x86_64 what should I do? Some people propose installing binutils, but they are already there. ...