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
72 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
209 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
166 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 ...
2
votes
0answers
248 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
879 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
347 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
148 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
718 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
1k 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
297 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
54 views

How to compile Saurik's ldid on Ubuntu?

I am trying to install Theos on my Ubuntu and I am stuck on step which is supposed to install ldid: git clone git://git.saurik.com/ldid.git cd ldid git submodule update --init ./make.sh When I ...
1
vote
0answers
92 views

OsmocomBB - compile error

I tried to install OsmocomBB on my Ubuntu, I've got gnu-arm-toolchain, but when I'm compiling there is an error: configure: error: in `/home/robert/OsmocomBB/osmocom-bb/src/shared/libosmocore/build- ...
1
vote
0answers
204 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
183 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
82 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
114 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
367 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 ...
1
vote
0answers
66 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
298 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
406 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
185 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
321 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
644 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
149 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
152 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
1k 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
610 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
79 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
892 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
1k 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
239 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
75 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
69 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
375 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
238 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
652 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
24 views

g++ and gcc do not work in ubuntu 14.04

After last sudo atp-get upgrade my gcc and g++ don't work and I'm trying to install g++ in my ubuntu 14.04 and I have this error: g++: gcc: What is the problem? sudo apt-get install -f
0
votes
0answers
19 views

Convert a c file to coff file for nachos

I am new in ubuntu. I am working on nachos and I want to compile a c file in order to convert to .coff format. So I have downloaded mips-x86 linux-gcc and I have extracted both nachos and this ...
0
votes
0answers
49 views

Can't compile C++ in Code::Blocks

I have some trouble with compiling c++ code from **Code::Blocks* IDE on Ubuntu. When I save the code as a .cpp data and click on Run under Build it says: "Target uses an invalid compiler; run ...
0
votes
0answers
102 views

Problem with mex even after installing matlab support

I've looked everywhere for a solution to this but people seem to have no problem with mex and matlab if they install the matlab-support. I however just cannot get this to work. So here is what I did: ...
0
votes
0answers
16 views

how to make gcc search for headers in all subdirectories?

I'm new to Linux so please excuse me for my noobish question. I've installed libraries (PCL) which save their headers under usr/include as it should be. However, the problem is that an example of the ...
0
votes
0answers
25 views

How to link to 32-bit SCTP package on a Lucid 64-bit machine?

I am running Ubuntu Lucid 10.04.4 LTS 64-bit. I need to build a 3rd party 32-bit program. The build of this program is failing: gcc-4.4 -m32 <snip> /usr/lib/libsctp.so.1: could not read ...
0
votes
0answers
32 views

Installing input-wacom drivers gives error at ./compile on my Gateway M275E penabled laptop

sam@sam-M275:~/input-wacom-0.23.0$ ./configure && make && make install checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is ...
0
votes
0answers
11 views

XM3DEDIT won't run on v.14.04.4 LTS DeskTop

My C coded program (XM3DEDIT) runs OK on console for other Linux (Red Hat and Precise-Puppy). But not on latest Ubuntu 14.04.1 and openSUSE 13.1 DeskTops. One problem is I can't find console or ...
0
votes
0answers
170 views

U-boot build fails - cannot find lgcc / libgcc.a

I am using Ubuntu 12.04 LTS 64 bit and trying to create a Linux Image for the SAMA5D36-EK. In doing so I need the mkimage command. According to website www.at91.com/linux4sam/bin/view/LinuxSAM/U-Boot ...
0
votes
0answers
27 views

Rpc Programming

I am compiling the client program using the command: cc -o chkdate chkdate.o date_clnt.o -lrpc But is giving me the following error : /usr/bin/ld: cannot find -lrpc I am using Ubuntu 14.04. ...
0
votes
0answers
62 views

Ada Compilation problem

hello I am using ubuntu 14.04 LTS and I am using Code::blocks for writing c program as well as Ada program. C is compiling and running fine when I am using the command "gcc -o test test.c" but when I ...
0
votes
0answers
214 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 ...