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
0answers
4 views

How to connect via ssh and use gcc on target?

I would like to do two things automatically within a bash script: Connect via ssh to my target. Execute gcc. My script looks like this: ( cd myfolder echo "gcc -o mybin main.c" ...
0
votes
0answers
7 views

I happen to destroy WIFI driver when upgrading gcc-4.8 to gcc-5.3

I am working on Ubuntu 14.04.03 Trusty Tahr. As we know, the default GCC package version for this release is 4.8.2, but recently I upgraded it to GCC 5.3 (the latest version) following this answer: ...
0
votes
0answers
9 views

including libarry paths in GCC

This is how I write commands to compile my mruby-c code: $ gcc -Imruby-mruby-ea03352/include main.c /home/mruby/Documents/mruby-mruby-ea03352/build/host/lib/libmruby.a -lm -o main.out Actually ...
0
votes
1answer
23 views

std::thread run time error “Enable multithreading to use std::thread: Operation not permitted”

I am trying to port a program that was running without any problem when the environment set up was Ubuntu 12.0 QTCreator Version - 2.4.1 QT - 4.8.0 gcc - 4.6.3 to a new environment Ubuntu 14.04 ...
0
votes
2answers
31 views

gcc doesn't do anything when trying to compile a code [duplicate]

I'm new using Ubuntu OS, I've Ubuntu 12.04 and I'm trying to run a simple Hello world C program #include <stdio.h> int main(){ printf("Hello world!"); return 0; } When using gcc --version ...
0
votes
0answers
22 views

../libtool: line 1158: g++: command not found

I have problems during the make gcc 5.3.0. I use gcc 4.8 on Xubuntu 14.04 LTS. gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see ...
0
votes
0answers
19 views

compiling gcc-g++ 4.6.0 alongside gcc 5.2.1 on ubuntu 15.10 amd64

I'm trying to compile gcc 4.6.0 alongside gcc 5.2.1 on Ubuntu 15.10, with OS 64bit. I followed the instructions here and here. For the source I use gcc-4.6.0.tar.bz2. I installed all prerequisites and ...
0
votes
0answers
26 views

I was trying to install fast downward planner in 64-bit ubuntu-14.04 but its telling me gcc is broken .I have reinstalled gcc but it did not work out

Building configuration release32 -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/gcc -- Check for working C ...
-1
votes
0answers
101 views

Installing GCC 6.0 in Ubuntu Linux 14.04 LTS

I want the latest version of GCC, namely the GCC 6.0, for running a software. The linux version installed is 14.04 LTS. Every time I am trying to upgrade the GCC version I am ending up installing the ...
0
votes
2answers
15 views

Problem to compile python and C++ code using ubuntu Ubuntu 12.04.5 LTS: problem with gcc

I am trying to compile a code involving python and C++ in Ubuntu 12.04.5 LTS and I have this type of error hammouc@kw13921:~/Documents/mimclib$ make python setup.py clean running clean removing ...
0
votes
1answer
23 views

GCC won't compile to an executable file

I was able to reproduce this issue with a simple case (shown below). The problem in particular is that the output of compiling my main C file is a file with format data (returned by running file on ...
0
votes
1answer
24 views

Compiling GCC compiler…shows error

So I started to setup for AVR programing and I found this nice tutorial to guide me. I am on step 3 of the tutorial. When I type the command: make CC="cc --no-cpp-precomp" I get this error: make: ...
1
vote
2answers
66 views

Unable to install build-essential, held broken packages

So I was trying to set up my computer for development. I installed ubuntu 14.04 LTS. I wanted to write a hello-world-program. However I can not compile it. After some searching, I tried sudo apt-get ...
0
votes
0answers
12 views

Unable to fetch some archives?

404 Not Found [IP: x] Failed: command not found root@vps:~# Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.11.0-12.19_amd64.deb 404 Not Found [IP: x] Failed: ...
1
vote
1answer
18 views

G++ ubuntu packaging question

dpkg -s g++ Package: g++ Status: install ok installed Priority: optional Section: devel Installed-Size: 16 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: ...
-1
votes
1answer
64 views

Error compiling AODV-UU (modversions.h: No such file)

i have to compile aodv routing protokol, but i get error like this make -C /home/andri/Downloads/aodv-uu-0.9.6/lnx KERNEL_DIR=/lib/modules/3.13.0-24-generic/build KCC=gcc XDEFS=-DDEBUG make[1]: ...
1
vote
1answer
35 views

Problem in cross compiling linux kernel 4.4.2 for ARM in ubuntu

I followed the below procedure in compiling the linux 4.4.2 kernel and gcc verion is gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ravi@ravi-Inspiron-3537:~/linux$ make ARCH=arm ...
0
votes
1answer
17 views

How to recompile Ubuntu Toolchain?

Where I can find environment description and build options that you use on build servers for Ubuntu Toolchain 4.1/4.7/4.9/etc? Regards.
1
vote
1answer
42 views

Can not build libdwarf

I download the most updated libdwarf version in archive file. Extract the files and run the following command cd dwarf-2013-02-07/libdwarf ./configure --enable-shared make I got the following ...
0
votes
0answers
113 views

How to install GCC-4.4.5 compiler in Ubuntu 12.04 64-bit?

I am using ubuntu 12.04 64-bit on VMwareFusion. Three packages have already installed: gmp5.0, mpc0.8.2, mpfr3.1.4, in gcc-4.4.5 and I followed the following steps. $ sudo ./configure ...
0
votes
1answer
72 views

TensorFlow: “crosstool_wrapper_driver_is_not_gcc failed: error executing command”

I use Ubuntu 15.10. Currently I am building TensorFlow from source, following the instructions here. My installation is successful, save for the last step, "Build your target with GPU support". When ...
0
votes
0answers
31 views

Opencv installations problems in Ubuntu 15.10

I have just updated my Ubuntu 14.04 to 15.10 n i had already installed Opencv-2.4.11. But after update its facing some problems to execute. Already tried to reinstall opencv. The errors are something ...
1
vote
1answer
101 views

Install gcc 4.9 on ubuntu 15.10

I need to install gcc 4.9 on ubuntu 15.10 because a library I really need (caffe and its cuda dependancies) requires such version or lower. I tried apt-get install gcc4.9 but it isn't working. Is ...
3
votes
1answer
453 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" ? ...
0
votes
1answer
189 views

Version `GFORTRAN_1.4` not found OPENBLAS

I'm trying to install OPENBLAS from git. I've cloned the directory and when I run make NO_AFFINITY=1 USE_OPENMP=1 I get this error make[1]: Entering directory `/home/sandesh/OpenBLAS/test' gfortran ...
0
votes
0answers
32 views

Im trying to compile glog-0.3.3 and dont succeed (running on ubuntu 14.04)

I'm trying to install caffe, but I can't compile glog. I'm doing the following steps: sudo apt-get install virtualbox sudo apt-get install vagrant vagrant box add ubuntu-14.04 ...
1
vote
0answers
28 views

Is libffi.pc broken on Ubuntu?

I'm trying to cross-compile wayland (from freedesktop.org) for a Trusty Tahr armhf environment. To set up the cross-compile I have an arm pkg-config script that properly sets PKG_CONFIG_LIBDIR and ...
0
votes
0answers
54 views

Undefined reference - fftw

I have a problem with compiling my code and I get the following error: /home/maxfkira/Demo/lib/libdemo.a(TracHold.o): In function 'exitTrac::extAL()': TracHold.cpp: (.text+0x1b): undefined reference ...
1
vote
1answer
62 views

Cannot find liboost-mt

I'm using the kinect to get 3D models of soil erosion and to scan vegetation and I'm trying to compile this application for the kinect: http://www.ccs.neu.edu/research/gpc/imucam/index.html ,however ...
1
vote
1answer
22 views

Building a GCC Cross Compiler

I'm trying to follow the Bare Bones tutorial on the OS Dev wiki but I'm confused on how to build the GCC cross compiler. It says to install the source code for stuff like bintuils, GCC, GNU GMP etc, ...
1
vote
0answers
36 views

Error while installing R's chron package

I am running R in ubuntu 14.04. Trying to install the package "chron" I get the following message: gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector ...
0
votes
1answer
20 views

How do I know if GCC produced warning inside a shell script?

I am writing a gcc wrapper that will invoke gcc on my source file with the -Wall compile flag set. If there is no errors or warnings, it will execute the output binary. The exit status off gcc will ...
1
vote
1answer
135 views

Building AppRTCDemo failed in LINK md5sum_bin_host

I have done all instructions to build AppRTCDemo on Ubuntu 15.10 in this link http://webrtc.org/native-code/android/ and when I'm trying this command "ninja -C out/Debug AppRTCDemo" i get this result ...
0
votes
0answers
21 views

can't able to update GCC 4.9 [duplicate]

When i am trying to update GCC to 4.9 I am getting error, when i try to install new version of GCC. But getting below error Reading state information... Done E: Unable to locate package gcc-4.9 E: ...
0
votes
2answers
157 views

How do I install gcc-4.6 on Ubuntu 15.10 (32bit edition)

When I try to install gcc-4.6 on Ubuntu15.10 (32bit edition) using apt-get, but I can't. I tried it, but Ubuntu displayed these error messages: $ sudo apt-get install gcc-4.6 Reading package ...
0
votes
0answers
48 views

Unable to install gcc-3.4 on Ubuntu 14.04.3 LTS Trusty

I want to install gcc-3.4 on Ubuntu 14.04.3 LTS trusty. I tried adding deb http://archive.ubuntu.com/ubuntu/ hardy universe deb-src http://archive.ubuntu.com/ubuntu/ hardy universe to my ...
0
votes
0answers
29 views

Which file in gcc generates object file after compiling?

I want to print something at the compile time but only if successful compilation occurs. As .o file is created only if there are no errors, where can I place the echo statement? I've already built ...
0
votes
0answers
54 views

gcc did not create cxxmain.c in steps of installing simplescalar

i am trying to install simplescalar on ubuntu. i do all the steps of installing it correctly but in the last step (installing gcc compiler) i face to a problem. make LANGUAGES="c c++" CFLAGS="-O" ...
2
votes
3answers
308 views

Compiling Mame 0.170 on Ubuntu 15.10

when trying to compile mame 0.170 I get the following error: m1xalis@m1xalis-HP-Compaq-6830s:~$ cd .mame m1xalis@m1xalis-HP-Compaq-6830s:~/.mame$ make GCC 5.2.1 detected Compiling ...
0
votes
0answers
57 views

which gcc version

I have ubuntu 14.04 and I want to install a program that asks enter code here me this What is your C++ compiler? [] so I am wonder how to answer and I used this command to know my version gcc -v ...
0
votes
0answers
14 views

Install older GNU toolchain

I need to compile my project using older version of GLIBC (GLIBC 2.15). For this reason I decided to install separate machine with older toolkit. Usually I do sudo apt-get -y install g++ But how I ...
0
votes
1answer
44 views

Linking IDE with right compiler for ARM cross compiling

I have installed Eclipse as IDE and gcc-4.7-arm-linux-gnueabihf: sudo apt-get install gcc-4.7-arm-linux-gnueabihf to be able to develop code for ARM and cross compile it on my Ubuntu. But I don't ...
2
votes
2answers
704 views

sudo apt-get install libstdc++

When i try to install libstdc++ using: sudo apt-get install libstdc++ I am getting the below error in ubuntu. Do you have any idea about it? The following packages have unmet dependencies: ...
0
votes
1answer
297 views

VMWare Player not working with Linux kernel 4.2.5

I m using Ubuntu Desktop 14.0.4. Due to some reasons I need to upgrade to kernel 4.2.5. But after that VMWare Player(i believe version 12.x 64 bit linux) is not working. At the time of start up it is ...
1
vote
1answer
748 views

Downgrade GCC from 5.2.1 to 4.9 Ubuntu 15.10

Because of program compatibility issues I need to downgrade GCC to at least 4.9 How do I do this? Thanks. EDIT: The program is Blender and am trying to do GPU rendering. The specific error the ...
2
votes
1answer
117 views

GCC --disable-nls, --enable-languages, --without-headers Unrecognized

I'm trying to make a bash script that will install a gcc cross-compiler for i686-elf on a Debian computer, but I keep getting the same error: configure: creating ./config.status config.status: ...
2
votes
1answer
45 views

Installed headers don't exist according to GCC

I want to compile Pike with the GTK library. To do this, I need the gtk headers installed. $ tee test.cpp test.c #include<gtk/gtk.h> #include<gtk/gtk.h> $ g++ test.cpp; gcc test.c ...
-1
votes
1answer
685 views

how to install gcc [duplicate]

Issue with install, searched gnu.org - unfortunately manual is more than 810 pages thick without instruct for install; https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc.pdf Plus manual pages in ubuntu is ...
-1
votes
1answer
22 views

Undefined reference to 'CRYPT_NUM_LOCK'

I am new to ubuntu and currently i am using 12.04 version of ubuntu. i am trying to compile a program using openssl libraries using gcc compiler. But it is giving errors: Undefined reference to ...
0
votes
1answer
143 views

Not able to install VLC program from .tar.xz file

I successfully uncompressed the .tar.xz file and then I also ran the ./configure command and I think it also worked. But the problem comes when I try to execute make command. The given INSTALL file ...