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
18 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" ...
1
vote
1answer
40 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
29 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
18 views

How can I redirect my system to /usr/include/x86_64-linux-gnu/sys [on hold]

I'm compiling some software - RTEMS to be more specific -with "make all" command and the compilation fails saying ../../../../cpukit/../../../erc32/lib/include/rpc/svc.h:46:37: fatal error: ...
-1
votes
0answers
18 views

opencores installation

I am trying to install opencores kernel onto my Linux operating system; while I was installing the GNU tool chain at binutils from this link, I have tried to use the make command, which has worked ...
0
votes
0answers
11 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
13 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
9k views

Installing missing package that provides Xm/Xm.h

I'm compiling a software package that requires a header file. The header file is missing from my Ubuntu 11.10 (64-bit) installation. During the compilation using make, gcc and gfortran, I receive ...
2
votes
1answer
12k views

fatal error: avr/io.h: No such file or directory compilation terminated

How to load avr/io.h header files in the gcc compiler..I'm using 12.04 version of Ubuntu.. When ever i run a AVR program this kind of error is generating fatal error: avr/io.h: No such file or ...
2
votes
2answers
76 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: ...
2
votes
1answer
59 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: ...
0
votes
1answer
64 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 ...
2
votes
1answer
19 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 ...
0
votes
0answers
18 views

I need help with an error I keep getting while trying to install MIT's scheme with Ubuntu 14.04

So I run the top command and all goes well until I get the error message at the end, and then I try to compile the microcode and I just can't get it to work. Any help would be greatly appreciated. ...
0
votes
0answers
106 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 ...
3
votes
2answers
4k 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 ...
0
votes
1answer
8k 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 ...
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 "/" ...
-1
votes
1answer
110 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
vote
4answers
11k views

How do you fix a gcc compile 127 error? sudo apt-get install g++ doesn't work

*emphasized text*when I try to run a program I get the following error. ubuntu@ubuntu-VirtualBox:~/Desktop$ make g++ -Wall -Wno-switch -I. -g -c -o pass.o pass.cpp make: g++: Command not found ...
-1
votes
1answer
16 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
70 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 ...
0
votes
2answers
359 views

Can't Compile A Simple C Program

I installed the last version of Ubuntu. I tried to compile and run simple c program. I was get error: fatal error: stdio: No such file or directory I installed and updated gcc compiler few times, ...
0
votes
0answers
25 views

Ubuntu Touch compile error

I'm having a few errors building the Touch images. Haven't found an answer to this yet. I've posted below the error during compiling the Ubuntu Touch source. Any help would be greatly appreciated as ...
4
votes
3answers
5k views

How to disable -Werror=date-time/macro “__DATE__” might prevent reproducible builds

I am trying to compile a driver for a Netis WF2190 adapter. Yes, I just downloaded the latest from them. How can I disable the -Werror=date-time in the build? I can't find it anywhere in the build ...
2
votes
2answers
258 views

Why a single cross compiling doesnt work? Error: bash: ./test1: No such file or directory

I'm using my Ubuntu 14.10 x64 PC to cross compile to run my programs in my Beaglebone Black but I'm getting a strange error when I try to run the compiled program in my BBB. The command lines bellow ...
0
votes
0answers
26 views

Error while compiling F77 program

I tried to compile one of my Fortran program (f77 -o file file.f) and end up with an error. /usr/lib/gcc/i686-linux-gnu/4.8/../../../../lib/libf2c.so: undefined reference to `MAIN__' collect2: ...
0
votes
0answers
24 views

I want to edit gcc compiler code to print hostname with a message at compile time. how can I do that?

I've downloaded the gcc source code, I don't know what all files to edit in order to print the hostname along with a message at the compile time.
2
votes
1answer
4k views

error in installation of gcc on ubuntu Ubuntu 12.04

I want to install gcc on a ubuntu machine but got the following errors: t@lab45:~# apt-get install build-essential Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
34 views

How to install ubuntu packages offline from installation CD

I have a server with no internet access. I am trying to install the build-essential package on the server offline. I read on the internet that some packages should be installed from the CD. using ...
0
votes
1answer
53 views

error trying to exec 'cc1': execvp: No such file or directory (possible SAGE/python issue)

I see that there are a number of topics on this error message, but I've tried every solution I have found to no avail. This is my first question here, but I'm going to try and include all of the info ...
6
votes
7answers
18k views

Can I use a C/C++ compiler?

I shifted to Ubuntu 10.10 now I am facing problem to have C/C++ compiler. What are the possible ways so that I can use C/C++ compiler using all the libraries (like graphic, math, conio, stdlib, etc) ...
2
votes
3answers
153 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
0answers
11 views

Unknown Psudo-op '.p2ali' error while building LibreOffice

I'm trying to build LO first time, and my build is failing with error 'unknown psudo-op '.p2ali' Ubuntu 15.10 / GCC version 5.2.1 20151010 How to solve this problem? Thank you in advance!
0
votes
1answer
96 views

How to use gcc 4.9 when it's installed in same directory as newer gcc

I've got installed both gcc 5 and gcc 4.9 in same directory (/usr/bin). Using nvcc with --compiler-bindir is impossible since both gccs are in same directory. I need to run command nvcc ...
70
votes
3answers
130k views

Choose gcc and g++ version

So I have installed gcc-4.4 and gcc-4.3 (same for g++). Now as far as I remember there is a tool in Ubuntu which sets the symlinks for you if you just tell it which version you want. However it does ...
1
vote
0answers
20 views

how to configure: error: C compiler cannot create executables [duplicate]

I'm installing Gawk-3.1.3 and used ./configure --prefix=/usr --libexecdir=/usr/lib and the output was this or this checking for a BSD-compatible install... ./install-sh -c checking whether build ...
0
votes
1answer
15 views

How to install flexlay editor

I have got problem with installing program named flexlay editor. when I type ./configure there not making makefile. message from configure shell script: checking for a BSD-compatible install... ...
0
votes
2answers
425 views

How to install library that uses g77

I am trying to install "TAUCS" (http://www.tau.ac.il/~stoledo/taucs/) library. However, I am getting following error: /usr/bin/ld: skipping incompatible external/lib/linux/libmetis.a when searching ...
3
votes
3answers
2k views

Bochs Compiling Error AGAIN

I'm trying to compile bochs with this command: ./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci it works, ...
0
votes
1answer
33 views

14.04.01 32-bit: Missing g++ 64-bit include files when cross-compiling

So, I've got 32-bit Xubuntu 14.04.1 installed. We have some interface code where we intend to release SOs for the various platforms we support, and Windows DLLs. (Yes I know, binary release bad, but ...
0
votes
0answers
23 views

configure: error: C compiler cannot create executables: wxPython 3.0.2.0

Trying to install wxPython 3.0.2.0 When trying to build wxPython, I get a compilation error of: configure: error: C compiler cannot create executables I'm following the steps from this page: ...
0
votes
0answers
8 views

Ubuntu-keyboard, : error: cannot find -lubuntu_application_api

I branched the ubuntu-keyboard from launchpad, made some changes to the layout of the icelandic key-board but when I try to build it I get the following error: g++ -m64 -Wl,-O1 -Wl,--as-needed ...
0
votes
1answer
168 views

Error while loading shared library libz.so.1 while cross compiling for arm-linux

I'm trying to cross compile an opencv app on Ubuntu 14.04 to run on an ARM core. I can compile the open cv app fine on Ubuntu with g++ test.c -o test -I /usr/include/opencv -I /usr/include/opencv2 -L ...
2
votes
0answers
1k 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 ...
2
votes
1answer
985 views

Where are header files for gcc located?

I want to manually add some header files like math.h and graphic.h for gcc but don't know where to put them.
0
votes
1answer
108 views

Unable to run cudaminer on jetson

After downloading and running ./autogen.sh and ./configure execution of the make command gives the following error on my Jetson TK1 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread ...
13
votes
3answers
36k 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: ...
1
vote
1answer
165 views

Exec format error of gcc-compiled Hello World c++

I know there are many similar questions with this error message here. But I cannot find any solution yet. On AWS ubuntu server, I wrote c++ Hello, World program #include <iostream> using ...
0
votes
0answers
13 views

Mingw32 with gcc 4.8+

I'm working on crossbuildable project that needs mingw32 in order to be compiled for win32 under Linux. I used default mingw32 from ubuntu repositories and that's was OK. But now I need to compile ...