The GNU Compiler Collection is the standard compiler system used on many Unix-like operating systems, including Linux. Originally meant for compiling C programs, it can now also handle C++, Java and several other languages.

learn more… | top users | synonyms

3
votes
0answers
65 views

Compiling and linking of a C program

I am learning about compiler linker and loader and was trying to understand the working of linker and loader on my ubuntu 12.04 machine I wrote 2 simple ".c" files as follows test.c ...
3
votes
0answers
162 views

Cross compile for ARM using gcc-multilibs

There are various questions available in AskUbuntu related to Cross compiling. They were not of much help to me. I used to work on gcc-4.5/4.6 for ARM. It was available in Ubuntu repo under the name ...
2
votes
0answers
144 views

bfd.h should include libiberty/ansidecl.h in Ubuntu 14.04?

binutils package seems to be changed, as include directory of libiberty.h has moved to /usr/include/libiberty, thus there is possible a wrong include in bfd.h regarding ansidecl.h. Getting those ...
2
votes
0answers
752 views

Problems installing gcc for cross compiling for ARM

I've been trying to install the gcc-arm-linux-fnueabi package, and I've done it a few times by a few different methods but I always seem to be missing the c++ folder in the includes directory. To ...
2
votes
0answers
327 views

Binary package for gcc 4.8.2 on Ubuntu 12.04?

Following this answer, I have installed gcc 4.8.1 on Ubuntu 12.04 a couple of months ago. Unfortunately, I encounter bugs very frequently, varying from failing to compile valid programs to crashing. ...
2
votes
0answers
139 views

Problem when compiling GCC in Ubuntu

I have run into the well known problem when installing GCC: configure:3605: error: in /usr/local/gcc-4.8.1/i686-pc-linux-gnu/libgcc': configure:3608: error: cannot compute suffix of object files: ...
2
votes
0answers
609 views

Changing default GCC Compiler in 12.04

I just downgraded from 13.04, which seems to have some stability problems right now, and moved back to 12.04.LTS. I installed the GCC 4.8 compiler, which is not the default GCC compiler on 12.04. I ...
2
votes
0answers
882 views

gcc does no come up with new upgraded Kernel

After I figuerd out my ubuntu 12.10 amd64 with 3.5.X Kernel does not fill some queuing, and they've fixed that in kernel 3.8.x, I upgraded the kernel of my Ubuntu to v3.10-saucy with installing deb ...
2
votes
0answers
295 views

gcc 4.3 not in repository anymore?

matlab has been so nice not to update its supported compilers. The latest version supported that supports the so-called mex-files is gcc-4.3.4. Now, this version also seems to be deleted from the ...
1
vote
0answers
65 views

How to install old version of gcc on Ubuntu 14.04

I need to install gcc 3.0 on Ubuntu 14.04. I tried to compile sources but it throws error. Is possible to install gcc 3.0 from repository? How to do that? This does not work for me. apt-get update ...
1
vote
0answers
65 views

Why can I compile against libclang-3.5.so and not against libclang.so?

I am trying to compile a C source file, that needs to be linked against a dynamic library I installed through apt-get (libclang.so). apt-get installed the clang shared libraries in ...
1
vote
0answers
39 views

unable to compile program using -m32 and gcc

I have installed multi2sim on my 64-bit Ubuntu machine. Both gcc 4.8 and 4.8.1 is installed in my system. Even after setting and exporting the LD_LIBRARY_PATH AND LD_INCLUDE_PATH, and installing the ...
1
vote
0answers
12 views

Modify Ubuntu toolchain

In version 11.10 the flag "--as-needed" became default in the Ubuntu toolchain. Due to many problems I have with undefined symbols at runtime I don't want to change all the makefiles anymore. I want ...
1
vote
0answers
80 views

How do I set gcc 4.8 to be the default gcc?

I'm trying to update to gcc 4.8.2. I have Ubuntu 12.04. after this if I type gcc -v it says gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Next I typed sudo add-apt-repository ...
1
vote
0answers
50 views

How do I set the F77 environment variable to gfortran?

I'm new Ubuntu (and linux) user. In order to do my senior project, I have to install psrchive I use this command to install psrchive ./psrsoft/bin/psrsoft psrchive --no-cfitsio This is part of ...
1
vote
0answers
279 views

Compiled packages and apt-get mess

Due to my work I have to use the last version of gdb (7.7) which is not provide in the ubuntu repositories. For that purpose I download the source code, compiled it and installed it successfully. My ...
1
vote
0answers
381 views

HOSTCC scripts/basic/fixdep gcc: error trying to exec 'cc1': execvp: No such file or directory

hardik@ubuntu:~/ti-sdk-beagleboard-05.07.00.00/board-support/linux-3.3.7$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage HOSTCC scripts/basic/fixdep gcc: error trying to exec 'cc1': ...
1
vote
0answers
125 views

open text file and dispaly in GTK+2 and display

please tell how text file can be read and the data can be then manipulated in GTK+2 C language. i have tried to compile a code but the problem is that only one line is displayed from the text file ...
1
vote
0answers
295 views

How to verify a manual build of gcc-4.8.2 on Ubuntu 12.04?

After getting the latest gcc-4.8.2 from one of the gcc mirrors, I issued the following commands as a mere mortal: ./gcc-4.8.2/configure --enable-languages=ada,c,c++,fortran make ulimit -s 32768 make ...
1
vote
0answers
444 views

gcc couldn't locate slab.h in ubuntu 12.04?

Please correct me if I'm missing something here. Thanks for your inputs. Header included in code: #include <linux/slab.h> Code snippet from my file that's asking for memory allocation using ...
1
vote
0answers
113 views

Installing GCC Cross-Compiler for i586-elf

I was following a tutorial http://wiki.osdev.org/Main_Page to build an OS. I needed to install a cross compiler for i586-elf (Executable and Linkable Format). How to install it on ubuntu 12.04 ?
1
vote
0answers
123 views

Binutils won't install

I am trying to build a cross-compiler for i386-elf. I installed bison, flex and texinfo. My system came with gcc, binutils and Gnu make installed. I downloaded the source and ran configure. I then ran ...
1
vote
0answers
953 views

gcc problem -> stdio.h not found

I have to compile one programme. theoretically i need just to change the two path... can you help me? Makefile # Original #CC=arm-1136jf_s_r1_vfp_hard_float-linux-gnueabi-gcc #CFLAGS= -O3 ...
1
vote
0answers
554 views

pthread link failure on Ubuntu 13.10 64 bit with multilib support

I am re-compiling a C application that linked fine on Ubuntu 13.04. It is failing to link (-lpthread -lrt) with: undefined reference to `sem_post' undefined reference to `pthread_create' etc. ...
1
vote
0answers
71 views

Cross compilation of udns for power pc

I have libraries of x86 architecture that I want to cross compile for power pc. I have already cross compiled different libraries for power pc by setting environment variables for powerpc and using ...
1
vote
0answers
803 views

gcc-4.8 Header files

I am having some trouble using the header files provided by gcc-4.8 since updating to Ubuntu 13.10. When I compile with the Intel compiler icc, it complains about not being able to find the header ...
1
vote
0answers
910 views

gcc without g++?

I run Ubuntu 13.04 (x86_64 if it matters) which I recently installed. Before, when using 12.10, I had both gcc and g++ from the beginning. However, with 13.04 after I downloaded gcc-4.8.1 sources I ...
1
vote
0answers
226 views

Unmet dependencies after trying to install gcc-4.7 on Ubuntu 12.04

I know there are already many questions about unmet dependencies but none of them helped me so far. Even this really detailed answer (How do I resolve unmet dependencies?) didn't solve my problem. ...
1
vote
0answers
74 views

Why I have to remove so many packages when I try to install zlib1g-dev:i386

When I try to install zlib1g-dev:i386, I got below message: sudo apt-get install zlib1g-dev:i386 Reading package lists... Done Building dependency tree Reading state information... Done The ...
1
vote
0answers
60 views

Problem with compiling fft using gcc

I have downloaded the source codes of Splash2 from here and i tried to compile fft.c using gcc command on my own machine but i got this error : fft.c:62:28: fatal error: parmacs_config.h: No such ...
1
vote
0answers
365 views

Ramifications of uninstalling GCC 4.7 in leu of GCC 4.6 in Quantal?

I currently have both the gcc-4.6 and gcc-4.7 packages installed in Quantal. I do a lot of software development but haven't had a need for any features that are specific to GCC 4.7. Therefore, in ...
1
vote
0answers
224 views

Question regarding upgrading to GCC 4.7

I have just updated to gcc-4.7 & g++4.7: chan@Ubuntu:~$ sudo apt-get install gcc-4.7 Reading package lists... Done Building dependency tree Reading state information... Done gcc-4.7 is ...
1
vote
0answers
1k views

How do I install GCC 4.7.1 on 12.04?

It so happens that I hit a bug in Ubuntu's GCC 4.7.0, which has been fixed in later versions of GCC; I believe it's already fixed in 4.7.1. I can always download the source, compile and install it, ...
1
vote
0answers
603 views

How do I install/compile CORSIKA & FLUKA for 32-bit Ubuntu 12.04?

I want to use some programs (CORSIKA and FLUKA) which are essentially designed for 32 bit systems. I've installed the 32-bit version of 12.04 on my system (Intel® Core™ i7-2700K CPU @ 3.50GHz × 8). ...
0
votes
0answers
23 views

Upgrade to gcc-4.9 broke clang++

Recently I have upgraded to gcc-4.9 but it totally broke my clang++ and I am unable to compile anything. Error I am getting: In file included from src/tester.cpp:11: In file included from ...
0
votes
0answers
62 views

How to change gcc-4.9-base version without removing dependecies?

I have a freshly installed Ubuntu 14.04.1 but cannot install nvidia-331 driver because of dependencies conflict: lib32gcc1 should be installed but it conflicts with already installed gcc-4.9-base ...
0
votes
0answers
43 views

Ubuntu Touch in Nexus And GCC

I install UBuntu touch into my nexus: Why I can NOT run a simple hello world application compiled with gcc directly using the terminal console. I get permission denied. But I am able to run thourght ...
0
votes
0answers
25 views

How to install and use (link) librsync library

I installed the librsync library using: sudo apt-get install librsync-dev librsync-dbg. But then how do I link this library statically? I Tried: gcc -o my_prog my_prog.c pkg-config --libs ...
0
votes
0answers
354 views

g++ 4.8.2 on ubuntu 14.04 fails to compile source files

I'm really frustrated at present in that g++ is throwing up so many errors even on a simple .cpp file. I'm typing: g++ test.cpp at the command line. Thanks in advance for any help. I downloaded g++ ...
0
votes
0answers
92 views

Unable to install gcc on ubuntu 12.04 LTS

I am trying to install gcc on ubuntu using : sudo apt-get install gcc I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done You ...
0
votes
0answers
128 views

/usr/bin/ld: error: cannot find -lpython2.7

While installing pyscard.py I get this error, gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib ...
0
votes
0answers
143 views

I already have the newest version of g++ but I still get a 127 error what do I do?

I have done the following. I just don't know what to try next. I supposedly have the newest version of gcc by following these directions sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
0
votes
0answers
29 views

Trying to compile 'mips64' program with gcc 3.3 but it has an error when building binutils and gcc

I tried building binutils and gcc3.3 for mips64 and everything goes well until: make CC=$GCC make install [For make an error saying, that: gmp.h and confdefs.h are not found] [For make install: ...
0
votes
0answers
225 views

GDB not showing C code when gcc -g option is used

I have a file called hello_world.c. I use the command gcc -g -Wall hello_world.c Then gdb ./a.out I set a breakpoint at line 27 And run, it tells me this: warning: no loadable sections found in ...
0
votes
0answers
90 views

Use gcc-4.6-arm-linux-gnueabihf to compile .c file, What is the command?

I am doing cross compiling. I install the gcc-4.6-arm-linux-gnueabihf and want to use it to compile the .c file(example of hello world) and then run it on ARM. I don't know what is the exact command. ...
0
votes
0answers
593 views

“Error : No targets specified and no makefile found” when configuring eclipse for stm32 development

I'm trying to configure eclipse for stm32 development, and I followed some video tutorial on Youtube and it was OK till the last few steps when an error occured I'm working on Ubuntu 12.10 and ...
0
votes
0answers
339 views

Installing GCC-4.8.2

I have downloaded GCC 4.8.2.tar.gz,I have also installed mpc,gmp,mpr packages. But still I am unable To install these compilers. While make file it gives me error configure: error: source directory ...
0
votes
0answers
45 views

can not find crt1 crti

I am trying to compile fortran 77 by gcc 4.8, Ubuntu 12.04. I get this and I don't know how to fix it. I have to stay with fortran 77. I am beginner in Ubuntu. /usr/bin/ld: cannot find crt1.o: No ...
0
votes
0answers
55 views

Why does Ubuntu make larger compiled kernel file (.deb) than Debian does?

When I compile a kernel in Ubuntu, it is 40% bigger than in Debian (with the same .config). Why? Is it because of little different versions? 40% seems too much to me. Both are up to date, Ubuntu 13.10 ...
0
votes
0answers
90 views

Problem installing old version of gcc with --remove-all

Im on Ubuntu 13.10 and need gcc 4.6 to install cuda 5.5. Im following these instructions (top answer) Anyone has successfully installed CUDA 5.5 on Ubuntu 13.10 64-bit? but am runnning into trouble ...