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

0
votes
1answer
19 views

Makefile problem

I was trying to make make command for a code in the remote computer.I found there is a problem and refuse to complete compiling. I need to get the logic of thinking on how to know the problem and ...
2
votes
1answer
923 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 this website the mkimage source comes with the U-boot ...
10
votes
1answer
3k views

How can I install and use gcc 6 on xenial?

I wish to test existing software with gcc 6, to ensure that it will work when the transition takes place. How can I install gcc 6? Is there a ppa available? Can I just do a "CC=gcc-6 make" ? ...
-1
votes
0answers
32 views

I need GCC compiler student - free copy [closed]

I am a second year Engineering student. I would like to have GCC Compiler.I have heard that you'll provide the same to students free of cost. Please, guide me about the procedure.
1
vote
0answers
39 views

How do I find what library was compiled with lto 4.0 instead of 4.1?

All of a sudden I've been getting the following error (something probably updated my gcc or something): lto1: fatal error: bytecode stream generated with LTO version 4.0 instead of the expected 4.1 ...
4
votes
1answer
4k views

collect2: error: ld returned 1 exit status

I want to install nexalign (can be downloaded from here) on ubuntu 13.10. I previously installed it on ubuntu 10 without any problem. The error I got is: gcc -O9 -Wall -Dthread -lpthread main.o ...
5
votes
3answers
904 views

“fatal error: openssl/opensslv.h: No such file or directory” compiling mitmproxy

I'm trying to install the mitmproxy package via pip like this: $ sudo pip install mitmproxy It terminates with following error message: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -...
0
votes
1answer
27 views

Error in installation of gcc-4.6 and gcc++-4.6 in ubuntu 16.04

I am getting following error in installing the older version of gcc(which I require unfortunately)
0
votes
0answers
28 views

Cuda7.5 problem while building open-cv2

I'm trying to install open-cv2 on ubuntu 16.04, but make command gets a conflict with cuda 7.5 which is not compatible with gcc versions later than 4.9. But, even if I update alternatives, it's the ...
0
votes
0answers
36 views

collect2: fatal error: cannot find 'ld' compilation terminated

When I try to run c and C++program I am getting collect2: fatal error: cannot find 'ld' compilation terminated. I have already install GCC and G++ latest version. Any buddy please help.
1
vote
1answer
23 views

How to restore '/usr/lib/gcc/*'

On Ubuntu 16.04, I accidentally deleted my /usr/lib/gcc dir. I tried to reinstall gcc but the dir won't be created again. How do I restore. ~$ dpkg -S /usr/lib/gcc gcc-5-base:amd64, libgcc-5-dev:...
0
votes
3answers
4k views

cmath: No such file or directory #include <cmath>

I downloaded and try to installed the package "wfconvert" from this link http://qmcpack.cmscc.org/tutorials/bulk-solid. but I got some error. here what I did: copy the wfconvert folder in root "/" ...
9
votes
3answers
50k views

My program cannot run with “command not found” error

I just switched from Windows to Ubuntu 11.10. I wrote the following code in C with the text editor and saved it as HelloWorld.c in Documents. #include <stdio.h> int main() { printf("Hello ...
1
vote
1answer
4k views

Using gcc 3.4 on Ubuntu 14.04

By exactly following this post, I was able to install gcc 3.4 on a fresh install of Ubuntu 14.04. But, when I try to compile a program, it fails with the following error: /usr/bin/ld: cannot find ...
1
vote
3answers
2k views

Error while installing tiff-4.0.3

I get the following errors while installing tiff-4.0.3: pranav@pranav-Inspiron-1545:~$ cd dependency/ pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5.tar.bz2 usr/bin/cygtiff4.dll ...
0
votes
2answers
433 views

Error while compiling c program using gcc <filename.c> thru the CLI

Whenever I try to compile a c program thru CLI using gcc <filename.c>, I get the error: gcc: error trying to exec 'cc1plus': execvp: No such file or directory I'm using Ubuntu 12.04. Also,...
0
votes
1answer
28 views

Help with GCC compile in C89 [closed]

I have to compile code in C89 for class, I wrote this code to see if it would compile. I compile it using, gcc -std=c89 -pedantic #include<stdio.h> int main(void) { int number; ...
3
votes
1answer
7k views

CXXABI_1.3.8 not found

So, I'm trying to run heroes of newerth and get the error ./hon-x86_64: /home/c0ding/HoN/libs-x86_64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc....
0
votes
1answer
39 views

make dmrshark error : sqrtf@@GLIBC2.0 undefined reference

I want to make dmrshark from https://github.com/nonoo/dmrshark ,but when I make that, it gives an error while making it. Can anybody help me? Error message: make[2]: Leaving directory `/home/m/sdr/...
1
vote
1answer
50 views

compile can't find GL lib

bjorn@bjorn-031:~/samples/SOP$ gcc -lGL /usr/bin/ld: cannot find -lGL I've installed libglu1-mesa-dev and rebooted. I'm using Nvidia drivers. This output look strange to me though: ldconfig -v .....
1
vote
1answer
30 views

Where can I get the development packages for rsync?

I would like to check the code for RSync but I don't see the development files, maybe I only need GCC and Make ?
5
votes
3answers
29k views

How to fix compilation errors that mention “stray ‘\342’” and “stray ‘\200’”?

I wrote this program: #include<stdio.h> int main() { printf(“Hello World\n”); return 0; } I saved it as first.c and tried to compile but receiving this problem I have installed even gcc ...
1
vote
1answer
26 views

Where to find core dumps from gcc and g++ compiled code?

I compiled some C code, once with gcc, and then with g++, so I got two output executable files. When executing both files I found that it told me: Segmentation fault (core dumped) But there is no ...
0
votes
1answer
9k views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler (arm-...
0
votes
1answer
34 views

Gcc 5.3.1 vs ANSI C re: Variable names and $ [closed]

I have read online and in print (the ANSI C book by Kochan) that one cannot use the dollar sign $ in a variable name when programming in C. Yet, when I created the following code to test variable ...
-1
votes
0answers
20 views

install mrtg-2.17.4 ploblem?

I'm install mrtg-2.17.4 on Ubuntu 14.04 follow http://oss.oetiker.ch/mrtg/doc/mrtg.en.html ,but can't install how should i do ,help? Thanks. ~/Downloads/mrtg-2.17.4$ ./configure --with-gd=/...
0
votes
1answer
51 views

Installing 3rd party C library. Several errors I've had before whose fixes aren't the solution this time

I am attempting to use a third-party C library. Once I'm in the directory for the unpacked file I run ./configure and get: configure: creating ./config.status config.status: creating tests/Makefile ...
0
votes
1answer
228 views

Unable to install or upgrade after an upgrade to 16.04 with gcc-doc error [duplicate]

I'm kind of new to Ubuntu. A couple of days ago, I upgraded to 16.04 from 14.04. After the upgrade, I can neither install new software nor upgrade OS. When I enter sudo apt-get upgrade I get this ...
1
vote
1answer
64 views

How update GCC 4.8.4 -> 4.9

Idk why, i cant update my gcc root@server:~# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: .....
1
vote
1answer
204 views

How to install gcc-4.4 on Ubuntu 16.04 [duplicate]

I'm gonna compile Rodinia benchmark on Gem5-gpu simulator, when I make it complains for gcc-4.4 and give me following error: make gem5-fusion make -f Makefile.gem5-fusion make[1]: Entering directory '...
1
vote
1answer
177 views

Ubuntu 16.04, gcc 4.9, CUDA 7.5.18, includes gcc5 headers

I'm running on a Ubuntu 16.04 where I installed gcc4.9 and NVIDA drivers from official repositories, configured alternatives for gcc, and installed the CUDA toolkit 7.5.18. When I try to compile a ...
-1
votes
2answers
69 views

What is the meaning of gcc command

I wonder what does the command gcc -o sample sample.c really means and what it does in the system. I know gcc is the command to invoke gcc compiler, but what does -o and filename(without extension) ...
1
vote
0answers
37 views

Can't figure out Cmake [closed]

I don't have much experience with Cmake and setting environment variables/paramaters, mainly because I've never needed to, things usually compile themselves. I'm trying to install heimdall. And i'm ...
3
votes
1answer
56 views

Compiling a 32 application on 64 bit, without getting rid of GNU EABI for ARM

I want to build a C++ program for 32 bit on my 64 bit 16.04. /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping ...
19
votes
5answers
68k views

GLIBCXX_3.4.20 not found, how to fix this error?

Whey I try to run the program Layout Editor (available on this site) on Ubuntu 14.04.1 64-bit LTS I get the following output in the terminal: $ layout layout: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:...
4
votes
2answers
6k views

unable to install gcc-multilib after upgrading to 14.04

I recently upgraded from 12.04 to 14.04. After upgrading things started to break. I am getting crt1.o: No such file: No such file or directory. So, I tried to install gcc-multilib, but, that is also ...
3
votes
2answers
265 views

PPA removed and purged but still showing available upgrades

This is on Ubuntu 14.04 (SERVER, so no GUI) Ok so earlier today I was asked to upgrade GCC to GCC 4.9 (current available is GCC 4.8 for Trusty). So following these directions I installed the PPA ...
0
votes
1answer
54 views

How to install gcc4.4.7 in the ubuntu15.10?

I had try to install gcc4.4 and g++4.4 but will print out "E: Package 'gcc-4.4' has no installation candidate E: Package 'g++-4.4' has no installation candidate" in the ubuntu15.10?
0
votes
2answers
64 views

How to force gcc & ld (make wholly) use less memory?

I have to compile a computer generated source with my sources which is too huge and I've no control over it. Since my memory is not much, I've to force make use less memory. Otherwise, it gets killed ...
1
vote
0answers
43 views

Ubuntu 12.04 LTS - Upgrade to a specific version of previously available GCC version

I've added the ppa:ubuntu-toolchain-r/test repo for getting the latest GCC-5 version but I had the unfortunate surprise that the available version for 12.04 LTS changed a few days ago from 5.3 to 5.4. ...
0
votes
1answer
205 views

Vmware Workstation 12 Install Problem

Having a tough time here. I have installed kernel 4.6 for my machine and using gcc 6.1.1 - so vmware workstation 12 installs fine but will not run. Does not find compatible gcc version 5.3.1 So ...
0
votes
1answer
175 views

gcc-5: internal compiler error: Bus error (program as)

I'm trying to install Python 2.7.11 on my Ubuntu 14.04 LTS vServer (hosted at strato), because it's a requirement for letsencrypt. I'm using this tutorial, basically just replacing 2.7.9 with 2.7.11. ...
4
votes
2answers
433 views

How can i Update gcc 5.3 to 6.1? [duplicate]

After installing Ubuntu 16.04 LTS, I found that gcc 5.3 installed by default but I don't receive any updates to gcc. I opened up GCC website and I found the new release 6.1. How do I update? Output ...
44
votes
3answers
109k views

How do I use the latest GCC on Ubuntu?

I want to compile my program with the latest version of gcc. Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: gcc-4.9. I tried to ...
0
votes
0answers
56 views

Error on compile CyanogenMod

I need help. After running make mrproper I can't build CM source in Ubuntu 14.04. It's throwing this error: build/core/tasks/kernel.mk:149: *********************************************************...
0
votes
0answers
16 views

problem during execution multi2sim simulator

I have installed multi2sim-5.0 simulator on ubuntu 14.04 for project work. When I execute "hello world" program, display it, but when use this command m2s --x86-debug-syscalls stdout hello gives error ...
-1
votes
1answer
41 views

Error in execution of multi2sim simulator [closed]

cust@cust:~$ cd ~/Desktop/multi2sim-5.0 cust@cust:~/Desktop/multi2sim-5.0$ g++ matx.cpp -o matx cust@cust:~/Desktop/multi2sim-5.0$ ./matx Enter the order of matrix (must be n*n) 1 * 1 ...
-1
votes
2answers
1k views

How to install gcc 4.1.2 on Ubuntu 16.04 ?

How can I install the old version of gcc (gcc-4.1.2) on Ubuntu? ( without Synaptic ) .My actual version of gcc is gcc-4.4.7
3
votes
1answer
1k views

How do I install gcc 6 (latest 6.1?) on Ubuntu 14.04 LTS, make c++14 the default and will my libraries work? [duplicate]

How do I install gcc 6 (latest 6.1?) on Ubuntu 14.04 LTS, make c++14 the default and will my libraries work? Also, what problems can I expect if any? Lastly, please walk me through this because i am ...
1
vote
1answer
71 views

Dependency issue: gcc-4.9-base being kept back

I'm unable to upgrade my system because of broken packages. I've been unable to solve this problem for some months now, and frankly, I'm on the verge of doing a complete reinstall of ubuntu. This ...