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
41 views

"make" command not working

I'm currently trying to install graphics.h to do C programming, but I've been having a problem that I've been unable to solve so far. Every tutorial explaining the process is the exact same, and they ...
BlunterWeb's user avatar
0 votes
1 answer
21 views

Some gcc background operation clogs my CPU

My system is a ThinkPad T14 Gen 1 with an AMD Ryzen 7 pro 4700u, running Ubuntu 22.04.3 LTS. Gnome is Version 42.9 on Wayland. Please see the following screenshot from Gnome System Monitor: Some ...
Fred's user avatar
  • 171
0 votes
0 answers
17 views

gcc <brace-enclosed initializer list> error on Ubuntu 22.04

static unordered_map<string,RoadType> const road_type_string_map = { { "unclassified", RoadType::unclassified }, { "service", RoadType::service }, { "residential&...
alexbk66's user avatar
  • 101
0 votes
0 answers
34 views

Ubuntu on wsl always "fails to fetch" whenever I'm trying to download to it. How can i fix this?

I'm just starting out on Linux (working on WSL since it's probably the simplest option for me), as I'm trying to run the Community Multiscale Air Quality modeling system. This requires a compiler, but ...
Hector Viruega's user avatar
0 votes
0 answers
55 views

ld: library not found for -lgsl

I am trying to run a c code in Mac for the first time. My GSL libraries are stored in the path: /opt/homebrew/Cellar/gsl/2.7.1/include/gsl. So, I was trying to go with: gcc-13 -I/opt/homebrew/Cellar/...
user199253's user avatar
1 vote
0 answers
76 views

How to set enviroment to use older gcc g++ version without changing default?

When trying to launch application I get this error: /libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /lib/x86_64-linux-gnu/libGLU.so.1) now this is certainly because I'm using Ubuntu 20....
onepound's user avatar
  • 111
1 vote
0 answers
42 views

Why is this bus error occurring when reading through a shared memory object?

Version: Ubuntu 22.04.3 GCC: 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) Hi, I'm trying to create a program with a very large shared memory object. This is being done on an AWS EC2 instance with 130GB of ...
geenweb's user avatar
  • 29
0 votes
0 answers
81 views

Wrongful error on version mismatch - gcc 11.4.0 kernel nvidia-cuda-515

There was an update in my Ubuntu 22.04.03 LTS OS last week, and my nvidia-515 with cuda 11.7 broke. On reinstalling, it fails. I'm stuck, tried to debug and inspect logs - which points to version ...
Vishal Anand's user avatar
0 votes
1 answer
115 views

Getting error on WiFi driver installation on upgrading to Ubuntu 22.04.3LTS

My WiFi worked fine with Ubuntu 18.04 on my HP-ab516tx laptop. Then I updated to 20.04 and my WiFi didn't work. My visible network list was empty. I found the now deleted from Github, rtlwifi_new ...
nupro's user avatar
  • 3
0 votes
0 answers
70 views

can't download gcc 11.3.0

I have gcc 11.4.0 in my Ubuntu 22.04 LTS machine with kernel 5.19.0-32-generic. I want to install NVIDIA CUDA. But in the official supported versions table, it says that: cuda ubuntu supported ...
Nuri Ziya KIRTEPE's user avatar
0 votes
0 answers
137 views

Can't find gcc-11 11.3.0 for ubuntu 22.04

I'm trying to downgrade my version of gcc-11 from 11.4 to 11.3, but when I check the packages repository, I only see 11.2 and 11.4. Is there a way to safely install version 11.3 for Ubuntu 22.04?
mehsheenman's user avatar
0 votes
0 answers
232 views

How to use an old version of gcc-11 in Ubuntu 22.04

I tried to install CUDA 11.7 tookit on Ubuntu 22.04.3 LTS. I followed the steps on NVIDIA website: wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin ...
EnkiduGilgamesh's user avatar
0 votes
0 answers
31 views

code compilation issues

I am working on a project related to jet physics. For that, I am using a Linux terminal in my Ubuntu 22.04 LTS. I use libraries of Pythia, Fastjet and fastjet-contrib in my code. When I recently used ...
Shivangi Singh's user avatar
0 votes
1 answer
68 views

is there a command to install all the developer tools like gcc etc all at once? [duplicate]

is there a command to install all the developer tools like gcc etc all at once?
alexl's user avatar
  • 111
0 votes
0 answers
84 views

Hi, I'm new to Ubuntu. I'm using Ubuntu 22.04 and I want to install an older version of gcc -gcc-7

which gcc gives - /usr/bin/gcc gcc version shows - gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) update-alternatives --query gcc gives - no alternatives for gcc sudo apt-get install g++-7 gives - ...
Humaira's user avatar
2 votes
1 answer
2k views

Install a specific gcc version to match the version the kernel was compiled with (I have 11.4.0 need 11.3.0)

In an effort to fix issues with nvidea graphics where it briefly flickers black (after upgrade), I am trying to install an older driver. However the nvidea driver complains the compiler version used ...
Luke's user avatar
  • 21
0 votes
0 answers
20 views

MIPS cross-compile package, libc6-dev-mips-cross, is missing libcrypt

I am trying to cross-compile a program for the MIPS architecture that requires libcrypt. It works on a machine that has the Ubuntu Focal release, and that make sense since I can find libcrypt in the ...
Hector Colon's user avatar
1 vote
0 answers
163 views

amdgpu-dkms not building due to lack of cc1 though cc1 cannot be reinstalled?

I am currently trying to update my AMD drivers on Ubuntu/also downloading the HIP drivers for blender cycles rendering. Problem is that when I install it using the latest amdgpu-install script (with ...
user14951114's user avatar
-1 votes
1 answer
221 views

Identifier cout is undefined

I am compiling below code with GCC-12 compiler on Ubuntu 22.04 LTS. I have 2 different versions of GCC installed on my machine 11 and 12. #include <iostream> using namespace std; int main() { ...
pratham's user avatar
  • 13
0 votes
1 answer
49 views

Configuring Julius : C compiler cannot create executables

I am sure this question has been asked many times on this forum, yet I am asking this because my context is different. I was trying to install Julius speech recognition on my Windows 10 PC. Of course ...
AWE JHA's user avatar
1 vote
1 answer
155 views

GNU compiler below the required version

I'm obtaining this error message: GNU 7.5.0 compiler is below the minimum required version 8.0.0 even though when I type "sudo apt install gcc-8 g++-8", I obtain an output saying that gcc 8 ...
Mariam Hachem's user avatar
0 votes
0 answers
83 views

After I fixed a kernel panic I keep getting "E: Sub-process /usr/bin/dpkg returned an error code (1)"

So I have been getting this error after I had a kernel panic and decided to follow this article: https://www.geekswarrior.com/2019/07/solved-how-to-fix-kernel-panic-on-linux.html From what I have ...
Alexander's user avatar
0 votes
0 answers
27 views

Trying to compile with make but missing functions like offsetof

So im trying to create an SRT server to test things out with livestreams etc and i found srt-live-server and cloned that from github. I already installed SRT and compiled and make'd installed that. ...
Melonendk's user avatar
0 votes
0 answers
44 views

cc1: error: unknown value ‘haswell’ for ‘-march’

I'm trying to run but it gives an error: gcc -Wall -Wpedantic -std=c17 -march=haswell -c array_sum.S -o array_sum.o cc1: error: unknown value ‘haswell’ for ‘-march’ cc1: note: valid arguments are: ...
677k's user avatar
  • 1
0 votes
0 answers
145 views

fatal error: bits/libc-header-start.h: No such file or directory when cross compiling an ARM project on 64bit under WSL

I am trying to compile the Actiontec T3200 Firmware meant for ARM on a 64bit machine using WSL using the ARM toolchain. I am building using make PROFILE=963138BGW SHELL=/bin/bash The error is /usr/...
Lucy Zukor's user avatar
0 votes
0 answers
32 views

Cuda Error std::integral

I am new to cuda programing and after many erors of nvcc final I can install cuda tool kit but I got a eror mesage the output of nvcc and my code is #include <stdio.h> #include <stdlib.h> #...
Deniz's user avatar
  • 1
0 votes
0 answers
122 views

Question about compiling Sound Driver

Im trying to configure, complile audio drivers- lsa-driver-RTv5.18rc8 I get this error. make -C /usr/src/linux-headers-5.15.0-72-generic SUBDIRS=/home/mike/Downloads/0002-LinuxPkg_5.18rc8/Rt-Linux-...
idsoftware's user avatar
0 votes
1 answer
609 views

Ubuntu 23.04 C Compiler cannot create executables - C compiler works no

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by liberasurecode configure -, which was generated by GNU ...
imran mehdi's user avatar
0 votes
0 answers
23 views

gcc-12.2 dpkg-buildpackage need 32bit libs why?

Can someone please explain why gcc-12 src requires 32-bit packages? I need to apply a patch to GCC-12.2 to upgrade it to 12.3, I don't want to build from src, so I just put a patch file to Debian/...
Johnny Bonelli's user avatar
0 votes
1 answer
61 views

is there another method to install gcc in a linux environment?

I installed linux environment with ubuntu feature on my windows computer. After that I installed make from the terminal(which was successful). So i wrote my first code in vs code editor but make could ...
Henry Dillon's user avatar
0 votes
1 answer
9k views

/usr/bin/ld: cannot find -ll: No such file or directory

make -C expl make[1]: Entering directory '/home/hitesh/myexpos/expl' gcc -g -fcommon -w -c ltranslate.lex.c gcc -g -fcommon -o ltranslate ltranslate.lex.o make[1]: Leaving directory '/home/hitesh/...
phantom3lue's user avatar
0 votes
0 answers
84 views

Command '-gcc' not found

Building an LFS for a school assignment got stuck on the gcc part of ch 5. I already checked to make sure that gcc is installed and ran sudo apt install build-essential and both are working properly. ...
dave delarosa's user avatar
0 votes
0 answers
148 views

Vmware asking for gcc 9.4.0 while i have 11.3.0

VMware requires GCC version 9.4.0 to be installed on the system, but the available GCC version on the Ubuntu 22.10 system is 11.3.0.
augurkenzijnhetkwaad's user avatar
0 votes
1 answer
146 views

No man page for strcpy_s

I don't have the man page for some c11 string functions such as strcpy_s and strncpy_s. I have the most updated version of gcc but somehow it doesn't recognize gcc -std=c11 -D_DEFAULT_SOURCE -Wall -...
Nicholas Humphrey's user avatar
0 votes
0 answers
66 views

permission denied on ubuntu ( ubuntu and windows 10 dual boot system on a M.2 NVME ssd and another harddrive used for storage)

I have a 250GB m.2 nvme ssd and a 1TB hdd. I boot ubuntu and windows on my ssd by creating 2 partition and I use my hdd for storage only. I recently install gcc on my ubuntu. but can't run c++ file on ...
Md Saiedur Rahman Saied's user avatar
1 vote
1 answer
96 views

Using GTK4 to build a small window app [closed]

Once the small program is compiled, I run it by double clicking the executable in Nautilus. When I have a second but completely different windowed app and double click on it while the first windowed ...
JamworksPro's user avatar
1 vote
1 answer
741 views

How to undo command in terminal?

Command: sudo apt install software-properties-common sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt install gcc-9 g++-9 sudo update-alternatives --...
StackProger's user avatar
0 votes
0 answers
333 views

trying to install gcc and g++ on ubuntu 22.04.2 is failing due to 404 not found

trying to install gcc and g++ on ubuntu 22.04.2 is failing due to 404 not found from http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_5.15.0-25.25_amd64.deb Please help
nevil cac's user avatar
0 votes
0 answers
133 views

gnome-terminal and zenity will not install

I was tasked to update an nvidia jetson nano from Ubuntu 18 to 20.04. I followed this (https://qengineering.eu/install-ubuntu-20.04-on-jetson-nano.html) guide step by step, but while I was following ...
Phar's user avatar
  • 1
0 votes
0 answers
185 views

No rule to make target '/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h (after installing g++-8 on ubuntu 20.04)

On my ubuntu 20.4 machine, to try building a Makefile based program, I tried 'make' but found it needs g++-8. So I added 'universe' repository following this and installed g++8 by sudo apt install gcc-...
Chan Kim's user avatar
  • 1,725
0 votes
0 answers
82 views

Install gcc-9-arm-linux-gnueabi and make it default

for cross-compilation, I want to install gcc-9-arm-linux-gnueabi on a Jammy Amd64 machine. Installing gcc-arm* will only give me version 11 of the compiler. However, I want to install arm gcc and g++ ...
Desperado17's user avatar
0 votes
1 answer
419 views

Netcdf-Fortran Installation -CC not executable

I am trying to install netcdf module for fortran. I am following steps from this link http://albeniz.eng.uci.edu/software/WRFCMAQ/NetCDF_installation_for_C_and_Fortran_libraries-HPC.pdf I am getting ...
Bareera Mirza's user avatar
0 votes
0 answers
31 views

Does IGN affect downloaded modules from occurring? [duplicate]

sudo apt-get update After inputting that command, the following occurs: Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure ...
WickedAndrew1's user avatar
0 votes
1 answer
2k views

gcc compiler can't find include file stdio.h

The gcc compiler can't find the include file stdio.h. $ batcat test.c ───────┬────────────────────────────────────────────────────────── │ File: test.c ───────┼──────────────────────────────────...
Anup's user avatar
  • 1
2 votes
1 answer
101 views

Problem with linking with lapack

I have a problem with lapack on my new ubuntu machine (edit: Ubuntu 20.04.5 LTS). I installed liblapack-dev and libblas-dev using apt-get. I used a following code which works normally on different ...
T. Skora's user avatar
0 votes
0 answers
195 views

problem installing CLooG

I tried installing CLooG after reinstalling Ubuntu and i runned the following command :sudo apt install libcloog-isl-dev but it returned me : Package libcloog-isl-dev is not available, but is ...
Zly's user avatar
  • 1
2 votes
1 answer
2k views

Need gcc and g++ 4.8 in Ubuntu 22.04.1

I am currently in Ubuntu 22.04.1 version, but I use a software which strictly needs gcc 4.8 (as per installation guide). How can I install it? sudo apt-get install g++-4.8 Reading package lists... ...
Anirudh Salgundi's user avatar
0 votes
0 answers
397 views

How to install i686-elf compiler?

I'm starting out writing a (very basic) operating system, using the Osdev wiki. It recommends that I use the i686-elf toolchain, but I've had trouble installing it on my system. I'm running Ubuntu 22....
Tyler Selden's user avatar
0 votes
0 answers
16 views

Installing GCC in an air-gapped environment [duplicate]

I have an ubuntu 20.04 VM with conda installed on top of it. Some of the packages I am using need GCC, I am trying to install it using multiple documentations and forums but with no luck. Tried ...
Yonatan Golick's user avatar
0 votes
0 answers
450 views

cc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found

Hello to everyone and happy new 2023. This question starts with a problem strictly related to the FreeBSD world,but ends with a problem strictly related to the Linux world. You will see,so don't start ...
Marietto's user avatar
  • 515

1
2 3 4 5
24