Questions tagged [gcc]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
115 views

Compile error for hifiberryos

I am trying to compile hifiberryos. I cloned the Git repository, followed the instructions and everything was OK until I compiled it when it gave me this error. **arm-buildroot-linux-gnueabihf-g++....
0 votes
1 answer
4k views

VirtualBox guest additions crashes and fails to fully install on Ubuntu 20.04 guest

My virtualbox 6.1.4 vm with Ubuntu 20.04 guest on Windows 10 Pro fails to install: Verifying archive integrity... All good. Uncompressing VirtualBox 6.1.4 Guest Additions for Linux........ VirtualBox ...
9 votes
1 answer
3k views

build-essential is not installed by default in 18.04. How to install network drivers offline?

We have a serious problem with new installations on laptops that have only a wireless network device requiring some network drivers, like bcmwl-kernel-source. Many laptops don't have an Ethenet port ...
0 votes
1 answer
1k views

/usr/bin/ld: cannot find -lXinerama [duplicate]

I am trying to build dmenu but I got this error. dmenu build options: CFLAGS = -std=c99 -pedantic -Wall -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -...
1 vote
1 answer
7k views

Cannot execute binary file: Exec format error: (Compiling 32 bit code on 64 bit machine)

I want to execute a 32-bit assembly code, and I am using gcc for linking my object file (created by NASM) to an executable. I have already tried methods stated in the post Linking an assembler program:...
1 vote
0 answers
56 views

Trouble installing basic packages

I'm having difficulty installing the dependent packages required to install a r8125 driver. I have one machine with Ubuntu 20.10 installed fresh. The network card requires the r8125 driver to function....
0 votes
1 answer
3k views

Unable to compile Omnet++ in Ubuntu 16.04 - make errors

I've followed installation instructions mentioned in: https://omnetpp.org/doc/omnetpp/InstallGuide.pdf Then followed the instructions mentioned in: http://vikashmainanwal.blogspot.co.il/2014/10/...
0 votes
0 answers
185 views

Do I have GCC somewhere? (Ubuntu 20.04.1 LTS). Sudo apt-get is not an option (no driver for ethernet)

I can't sudo apt-get because I need an ethernet driver. I can't install the driver because I apparently don't have gcc. "cat /proc/version" tells me that I have gcc version 9.3.0 but how do ...
7 votes
1 answer
10k views

CUDA 10.1 Update 2 is compatible to gcc 7.3.0, mine is 7.4.0, is this the cause the installation failed?

I downloaded the cuda installer from here. I ran the installer on Ubuntu 18.04 LTS (Bionic Beaver) with gcc 7.4.0. and I got this error. [INFO]: Driver not installed. [INFO]: Checking compiler ...
2 votes
1 answer
395 views

Compiling QEMU in ubuntu 20.04 by command `make -j` makes system hang

I want to build qemu from source in my Ubuntu 20.04. It seems ordinary to build QEMU by following the official instruction. Execution of command make -j works well at the beginning, and slows down ...
0 votes
1 answer
4k views

Change gfortran version on ubuntu

I want to change gfortran version on ubuntu 20.04. The current version of gfortran on my system is 9.3.0 but I want to switch it to 7.5 please suggest me how to do it
-1 votes
1 answer
420 views

Where do i extract strcasestr.3.gz to for gcc, gnu compiler on ubuntu 18.04?

I have Ubuntu 18.04 and gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, GNU Compiler on a desktop computer. I want to use strcasestr in c. But gcc does not find it. gcc gives me: warning: implicit ...
1 vote
0 answers
533 views

Debugging Assembly with DDD

I have a problem when debugging Assembly code with DDD (also tried GDB). When I compile my program and make executable file with gcc -g -o program program.S I need to add -m32 to make 32-bit ...
1 vote
2 answers
588 views

ac600 driver dont compile

I need to get driver for tp-link ac600. And I write this commands: git clone https://github.com/ulli-kroll/mt7610u.git cd mt7610u make after make command I get this errors: In file included from /...
0 votes
1 answer
802 views

GCC is showing "pow" as an undefined directory

I'm using Code::Blocks on Ubuntu 18.04. However, I'm unable to compile the following program successfully. #include <stdio.h> #include <string.h> #include <math.h> int main() { ...
0 votes
1 answer
83 views

Is "Ubuntu Desktop for Developers" different from "Ubuntu Desktop"?

Is "Ubuntu Desktop for Developers" different from "Ubuntu Desktop"? If so, how do I download the Developers' version. I want to make sure that I get things like gcc, g++, gdb, ...
1 vote
0 answers
18 views

Will default gcc version change in 20.04 [duplicate]

I'm writing a book that discusses the assembly language generated by gcc. I'm using Ubuntu 20.04. The default version of gcc is 9.3.0. The latest version of gcc in the repositories is 10.2.0. It's an ...
23 votes
5 answers
78k views

How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc/g++ 4.7 (I am looking for C++ 0x support) How to update using Ubuntu Package Manager: apt-get upgrade/...
0 votes
0 answers
111 views

vowpal_wabbit library does not build on ubuntu 20.04

I am trying to build vowpal_wabbit library version 8.1.1 on Ubuntu 20.04 and get the following error while building the Java JNI lib. mkdir -p target; g++ -shared -o target/vw_jni.lib src/main/c++/...
0 votes
0 answers
1k views

How can I install GLUT with GCC?

I know similar questions exist, but I have pretty much looked at all of them and I couldn't find an answer that worked. Here are the commands I have tried so far. sudo apt-get install freeglut3 sudo ...
0 votes
0 answers
193 views

I can not find coredump

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic ***** Source ****** // This is a disposable program for ...
0 votes
1 answer
6k views

cmake cannot find c compiler even though gcc and g++ are installed

I am using Ubuntu 18.04 and I am trying to install cmake by executing the command: ./bootstrap But I am getting an error: Error when bootstrapping CMake: Cannot find appropriate C compiler on this ...
0 votes
1 answer
4k views

Vmware - gcc version (null) was not found

I couldn't install my VMware on Ubuntu. Whenever I execute sudo vmware, I receive a popup asking me to choose the version of gcc. However, unlike other errors similar to this, I am faced to choose a ...
0 votes
0 answers
1k views

How to install gcc without internet connection?

I am trying to install the software necessary for a wifi adapter on my linux machine. In order to do so I need gcc, which I can't download because I don't have wifi access. I have tried installing ...
2 votes
0 answers
326 views

Compiling hello world in Ubuntu fails

I have a hello world c++ file and When I compile I get some bogus error. It seems something is off with c++ setup. Here is what I get: root@localhost:/home/student/tmp/gios/pr4/part1# g++ -o hello ...
1 vote
2 answers
6k views

Having 2 versions of gcc [duplicate]

I have just installed gcc 4.7 from ppa repository. Ubuntu 12.04 already comes with 4.6. When I use command: gcc --version It tells me it is 4.6.3 to be exact. I have no idea of how to launch the 4....
0 votes
1 answer
210 views

How do I put a c lib on ubuntu to make extension to gcc?

I have a file named "h1.c", which contains this line of code #include <stdio.h> I can run this command gcc h1.c in any directory on Ubuntu, as Ubuntu puts the stdio.h file in /usr/...
0 votes
0 answers
666 views

How to go back to default GCC version of Ubuntu 18.04?

$ gcc --version gcc (Ubuntu 10.1.0-2ubuntu1~18.04) 10.1.0 $ type -a gcc gcc is /usr/bin/gcc $ update-alternatives --query gcc Name: gcc Link: /usr/bin/gcc Slaves: g++ /usr/bin/g++ Status: auto Best:...
1 vote
1 answer
262 views

Getting error while trying to run ./configure --prefix=/tools so to install systemc

I am trying to install systemc-2.3.3 on ubuntu 18.04LTS. Previously I tried with 20LTS that didn't work for some reason.I am following these instructions :Installation of SystemC-2.3.3. I am a newbie ...
0 votes
0 answers
785 views

Unable to install GCC in Ubuntu 20.04.1 [duplicate]

I am using Ubuntu 20.04.1. The output of apt-cache policy gcc: gcc: Installed: (none) Candidate: 4:9.2.1-3.1ubuntu1 Version table: 4:9.2.1-3.1ubuntu1 500 500 http://repos.del....
1 vote
2 answers
7k views

How to fix unmet dependencies on gcc? [duplicate]

I recently upgraded to Ubuntu 20.04 LTS. After the upgrade, I've seen that GCC is broken. My guess is that my GCC related packages were installed from another PPA. I removed all the extra PPA to my ...
5 votes
1 answer
7k views

How can I install g77 on Ubuntu 19.04?

I just downloaded Ubuntu 19.04. I want to install a program that needs the g77 compiler to run. I followed the instructions explained in Install G77 on Ubuntu >=14.04, but when typing the command ...
2 votes
1 answer
2k views

mingw-64 GCC is broken under Ubuntu

I'm trying to cross-compile SFML from Linux to Windows for a project of mine. Prebuilt SFML packages are not an option. So, I installed the mingw-w64 package,and set up a toolchain file, and went ...
1 vote
1 answer
4k views

Installing gcc-8 g++-8 on ubuntu 18.04

Hi I tried installing gcc-8 and g++-8. It is giving below error $ sudo apt-get install gcc-8 g++-8 -y Some packages could not be installed. This may mean that you have requested an impossible ...
-1 votes
1 answer
1k views

makefile shows error in g++ how to solve it

I am following the instructions in this tutorial https://github.com/tukl-msd/DRAMPower. When I do make -j4 an error message appeared to me g++ -O -W -pedantic-errors -Wextra -Werror -Wformat -Wformat-...
0 votes
1 answer
3k views

GCC Issue with Building an Old Linux Kernel

I am trying to build from source version 2.6.37 of the Linux Kernel compiled for ARM. The reason I need to do so is related to work; I need that specific version. I am able to build the most recent ...
0 votes
1 answer
293 views

accessing libraries using gcc -l option

/usr/lib/x86_64-linux-gnu contains over 1000 useful libraries. One expects to be able to access them using the -l option in gcc where -lfoo means "insert library libfoo.so". But many common ...
1 vote
0 answers
102 views

GCC C code compiling

I have a problem regarding gcc. Although I have a background programming in C, I have never actually used gcc. Until now that is. I have a Go program I am creating, that uses a library (Fyne) that in ...
21 votes
2 answers
59k views

cannot find -lgcc_s

I am attempting to compile a program with g77 and I keep getting the following error: /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status I saw on another forum that this is related ...
0 votes
1 answer
179 views

ln -s fails to create símbolic to a file

I am trying to install arm toolchain and my programming teacher gave me instructions how to do it. I extracted the downloaded libraries in /opt and I tried to create links in /usr/local/bin pointing ...
0 votes
1 answer
447 views

Dependency error installing build-essential

In recently istalled Ubuntu 18.04.4 on SSD hard disk and Intel Core i5-6500 I've try to install build-essential with this error: The following packages have unmet dependencies: build-essential: ...
0 votes
0 answers
463 views

help compiling gcc-10-source with debian patches on ubuntu 20.04

After extracting gcc-10-source_10.2.0-8ubuntu1_all.deb, I entred into dir usr/src/gcc-10, then issued the command: $ debian/rules control I downloaded the prerequisites in the folder src/ then ...
4 votes
0 answers
4k views

Package 'g++-4.8' has no installation candidate [duplicate]

So i recently updated to Ubuntu-20.04 and my g++-4.8 compiler got deleted when i tried to reinstall it using "sudo apt-get install g++-4.8" i get an error: "Package g++-4.8 is not available, but is ...
10 votes
1 answer
47k views

Install OpenMPI from repository with GCC instead of Intel

I would like to install openmpi from repository and need to use it with GCC. The problem is I have installed intel libraries too and it causes problems like this: mpicc.openmpi --version mpicc....
0 votes
0 answers
330 views

Cannot install old versions of gcc

I need gcc-6 and g++-6 to compile a specific program (related with CUDA), I am tried to follow these instructions but for some reasons I get the following: > sudo apt-get install gcc-6 g++-6 -y ...
0 votes
1 answer
116 views

I got errors with gcc and ./install

I'm triying to download and install droidcam from https://www.dev47apps.com/droidcam/linux page oficial gcc make linux-headers-`uname -r` cd /tmp/ wget https://files.dev47apps.net/linux/...
0 votes
1 answer
627 views

Problem Installing Network Simulator 2 in Ubuntu 18.04

A university course on Computer Networks requires to have Network Simulator 2 installed. But I struggle a lot to make this install happen. What I Have Done So Far Have downloaded the ns2 binaries ...
8 votes
3 answers
69k views

How to compile and run C programs avoiding "bash: ./a.out: Permission denied" [duplicate]

I have installed GCC compiler by installing the build-essential package. After the installation I wrote a simple C program. I tried to run it with the following command: gcc First.c ./a.out but I'm ...
7 votes
4 answers
5k views

14.04 to 16.04 LTS gcc-5-base downgrade

I don't know if anyone can help me with gcc-5-base issue. Ever since I upgraded my 14.04 LTS to 16.04 LTS, I have packages with unmet dependencies. The following packages have unmet dependencies: ...
0 votes
2 answers
10k views

How to set path to newly built GCC

I just built and installed gcc6.3.0 for MATLAB, but I can't set the path to it. I tried export PATH=/home/mo/GCC-6.3.0:$PATH but this still gives the path to default gcc9.3.0. Ubuntu20.04.

1
5 6
7
8 9
24