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
1 vote
1 answer
3k views

Install gcc/g++ 6 on Ubuntu 21.04

I am trying to compile Cuda 10.2 and predictably gcc-10 will not work to compile it. When using 20.04 it was simple, add bionic repo, update, install, update-alternatives. Using 21.04 I cannot get ...
baudneo's user avatar
  • 19
4 votes
2 answers
13k views

I am using ubuntu 20.04 LTS trying to get from GCC 9.4 to gcc 10 or higher

sudo apt-get install gcc-10 g++-10: Reading package lists... Done Building dependency tree Reading state information... Done g++-10 is already the newest version (10.3.0-1ubuntu1~20.04). gcc-10 ...
thesavagen's user avatar
0 votes
0 answers
215 views

Docker failed with [Makefile:192: imagick_file.lo] Error 127

I try to install php in docker of w2orking project with header in Dockerfile : FROM composer:1 AS composer FROM php:7.4-fpm-alpine COPY --from=composer /usr/bin/composer /usr/bin/composer ENV ...
mstdmstd's user avatar
  • 173
0 votes
0 answers
749 views

Unable to correct problems, you have held broken packages while installing gcc [duplicate]

i can't install this on my Ubuntu 20.04 LTS :~$ sudo apt install gcc Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be ...
Ziyad Saeed's user avatar
0 votes
0 answers
636 views

'cc1obj': execvp: No such file

I'm trying to install cider by using the command pip3 install cider but got x86_64-linux-gnu-gcc: error trying to exec 'cc1obj': execvp: No such file or directory what should I check ? or install ?...
sam's user avatar
  • 1,323
1 vote
0 answers
219 views

GCC compiling problem

I just downloaded the GCC compile for C/C++. After compiling with the command gcc main.c -c -lGL -lGLU -lglut I get a permission error which can be fixed by changing the permissions. I then get this ...
Dequog's user avatar
  • 55
0 votes
1 answer
1k views

Upgrade gcc version in Ubuntu 18,04

I'm running Ubuntu 18.04 in WSL, which I use to compile my c++ programs. I need to write a program that gets the name of all the files in a certain directory and adds them into a vector of strings. ...
Mateoglzc's user avatar
0 votes
1 answer
227 views

While trying to install RegCM I get configure: error: C compiler cannot create executables after executing ./configure

used configure: error: C compiler cannot create executables and got this checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print ...
jnava1612's user avatar
0 votes
0 answers
79 views

bioptools compilation problem (make)

[ubuntu 20.04.3] Im trying to install program (https://github.com/ACRMGroup/bioptools) and have this error when im run make (following the installation instructions) (base) marcin@marcin-Lenovo-...
MTG's user avatar
  • 113
2 votes
1 answer
2k views

Cross compile C/Cpp application for target ARM arch support ubuntu18.04 32-bit, on host machine i.e. ubuntu 18.04 64-bit machine using cross compiler

Trying to achieve the below task Cross compile C/Cpp application for target ARM architechture supports ubuntu 18.04 32-bit on a host machine i.e. ubuntu 18.04 64-bit machine using cross compiler. ...
Harsh's user avatar
  • 25
1 vote
2 answers
16k views

gcc: fatal error: no input files compilation terminated

I'm new to linux environment. I created a file s1.c in a folder named 'program' which is present in desktop. When I try to compile my code using "/program gcc s1.c " it's showing "gcc:...
user1398416's user avatar
0 votes
0 answers
34 views

gcc 11.2 package in Ubuntu Hirsute? [duplicate]

Is it planned to add package for gcc 11.2 for Ubuntu Hirsute please? I see it exists for Ubuntu Impish as listed in https://packages.ubuntu.com/impish/devel/gcc-11 but not for Ubuntu Hirsute which is ...
Joseph's user avatar
  • 1
1 vote
1 answer
360 views

UADE complilin. Make produces fatal error: glib.h no such file or directory

Well. I'm trying to compile UADE. I downloaded sources, go int directory and then ./configure. After this I see this: Data directory : /usr/local/share/uade2 Uadecore ...
OSH's user avatar
  • 11
0 votes
1 answer
299 views

gcc-10 (10.3.0) does not handle anonymous struct correctly?

$ gcc-10 --version gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 $ cat test.c struct A { int a; }; struct B { int b; struct A; }; int main(void) { struct B c; c.a = 0; c.b = ...
A L's user avatar
  • 1
0 votes
1 answer
651 views

Add gcc option to meson

For example, I need to add the following compiling switches (options) to gcc when meson makes the build directory: -fmax-error=1 -Wall How is it possible? OS: Ubuntu 20.04
hamidi's user avatar
  • 245
0 votes
1 answer
490 views

GCC compiler does not recognize in the CodeBlocks IDE (Set variable: LD_LIBRARY_PATH=.:)

I am using Ubuntu 20.04 LTS and I have been trying to get up and run the C programs in codeblocks IDE and it keeps getting me this following error. Checking for existence: /media/darkpheonix/dptech/...
Pulasthi Aberathne's user avatar
0 votes
1 answer
371 views

Install a specific version of an older package by adding an old mirror

I'm attempting to install a specific version of gcc to Ubuntu 18.04. By default the version of Ubuntu at the time of this writing is 18.04.5. Installing it with sudo apt-get install gcc-7 results in ...
TheMeaningfulEngineer's user avatar
1 vote
0 answers
971 views

Ubuntu 21: sudo apt install failed, causing by gcc-11-base unmet dependencies on libgfortran5 :(

My sudo apt install encountered problem when trying to install OpenCV. It fails on package libgfortran5, which OpenCV and libopencv-dev needs. The output is The following packages have unmet ...
Terry W's user avatar
  • 11
2 votes
1 answer
834 views

Can't install specific version of gcc-mingw

I need gcc-mingw-w64 version 9.3.0 for a project to compile correctly. I am running hirsute. For this release the gcc-mingw-w64 version is 10.0 something. I already added archive.ubuntu.org focal to ...
Count_Omega's user avatar
1 vote
0 answers
263 views

nvcc/gcc broken in Ubuntu 20.04/21.04: how to patch gcc (installed via apt)?

Question: What is the step-by-step solution to apply a gcc patch, in particular when it is installed via apt? (I want to apply the one mentioned here) I tried following multiple guides on how to patch ...
fromGiants's user avatar
1 vote
0 answers
3k views

libstdc++.so.6 is linking to the wrong version

In the past, my ignorance has led me to messing around with gcc/g++ version. As of current, I'm using Ubuntu 18.04 and running gcc --version gave me this: gcc (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0 ...
Anh Tran's user avatar
1 vote
1 answer
576 views

How can I make the C++ compiler support template for STLin order to install hpctoolkit?

I am trying to install hpctoolkit using Spack. In order to do that, I executed : git clone https://github.com/spack/spack.git cd spack/share/spack source setup-env.sh spack fetch -D hpctoolkit spack ...
hakimo2's user avatar
  • 11
0 votes
2 answers
3k views

errors when compiling with gcc

I'm using ubuntu18.04 on the server. I have already installed gcc-4.9 under the root, but now I want to install gcc-7.4 under my own directory, so I did the following things. First I downloaded gcc-7....
Kyrie Erving's user avatar
0 votes
1 answer
3k views

main.cpp:1:10: fatal error: Sort.h: No such file or directory

I want to write makefile to compile my C++ codes. The tree of my files is this: . ├── include │   └── Sort.h ├── lib │   └── Sort.cpp └── src ├── main.cpp ├── makefile └── obj And this is ...
Milad's user avatar
  • 163
0 votes
0 answers
169 views

Mapnik installation error in ubuntu 16.04

I am trying to install mapnik in ubuntu 16.04 64-bit machine, following this tutorial https://github.com/mapnik/mapnik/wiki/UbuntuInstallation but when I enter ./configure I am getting error like this ...
Adithya's user avatar
  • 131
-1 votes
1 answer
490 views

How to include a generic library when calling the headers

this code gives me error #include <linux/mman.h> no such file or diretory while this works #include </usr/include/linux/mman.h> how do i change in order so i can use the first option?
Andri Nic's user avatar
0 votes
1 answer
14k views

Unable to find the development tool `cc`

i tried to install nvidia file using this command sudo sh NVIDIA-Linux-x86_64-450.80.02.run and got ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the ...
user3188912's user avatar
1 vote
1 answer
3k views

Ubuntu building Qt 6.1 from source

I just moved from Windows to Ubuntu and it's a shame things don't seem to work quite so easily as in Windows. I built Qt from source on Windows and didn't have problems. On Ubuntu building is ...
FROST SKIPPER's user avatar
-1 votes
1 answer
217 views

Run easy c++ program with Anjuta -> compiler cannot create executables?

I'm currently trying to use Anjuta to get familiar with C++. I tried to run a simple Hello World program in the main.cc-file: #include <iostream> int main() { std::cout << "Hello ...
Pazu's user avatar
  • 111
-1 votes
1 answer
1k views

Having trouble building ardour, can anyone help me with dependencies? I have tried reinstalling everything to no avail

I'm having trouble building Ardour. Can anyone help me with dependencies? I have tried reinstalling everything to no avail. luis@Luis-Macbook:~/Downloads/music/DAW/ardour/ardour$ ./waf configure ...
user1282075's user avatar
1 vote
2 answers
13k views

Cannot find appropriate C compiler on this system

i got this error when using ./bootstrap command for installing cmake --------------------------------------------- CMake 3.18.0, Copyright 2000-2020 Kitware, Inc. and Contributors ---------------------...
prog 's user avatar
  • 69
3 votes
1 answer
272 views

Error while compiling C program

I am new to ubuntu programming. When I Try to compile a C program it shows this kind of error fowler_nordheim_current.c:27:10: fatal error: gsl/gsl_sf.h: No such file or directory #include <gsl/...
Sourav's user avatar
  • 33
1 vote
1 answer
5k views

aarch64-linux-gnu-gcc: error trying to exec 'cc1plus' : execvp: No such file or directory

I am trying to build a C++ file with aarch64-linux-gnu-gcc for Raspberry Pi 3 64 bit and I am running this command : aarch64-linux-gnu-gcc -mcpu=cortex-a53 test.cpp But I am getting this error: ...
Bochra Akrout's user avatar
0 votes
3 answers
5k views

C compiler cannot create executables Ubuntu 16.04 gcc v9.3.0

I am trying to run the ./configure command for the cmph_2.0 library I downloaded. The gcc and g++ versions are 9.3.0 and I am using Ubuntu 16.04. However, I am getting the below error: This file ...
marwagaser's user avatar
1 vote
1 answer
9k views

Error: Unable to locate package gcc-10 while updating GCC and G++

Hi i am trying to update gcc and g++ on my Ubuntu 18.04. I currently have version 7.5 of both gcc and g++. I found this article where it is written that we can install a gcc and g++ version via a ...
user12002570's user avatar
0 votes
1 answer
1k views

GCC Version inside Docker

May I know how to know the version of GCC installed inside a docker? when I tried cat /proc/version It returned with gcc version 4.2.0 20170510 (Ubuntu 4.2.0-6ubuntu1~14.04.12) When I used gcc -v ...
John's user avatar
  • 101
0 votes
1 answer
66 views

How to compile multiple all testbench components of Systemc

I have been trying to simulate all my testbench components of hierarchiral full adder systemc program. Previously, to simulate a simple systemc filenamed(hello_world.cpp) I have used: $ g++ -g -Wall -...
SWETHA CHILVERI's user avatar
0 votes
1 answer
1k views

Problem when compiling linux using sudo make

I have a serious problem when compiling linux when putting sudo make, I get this quite unknown error that I could not find in Google pikachuandeevee2000@Ubuntu-PC:/usr/src/linux-headers-5.11.0-17# ...
EeveeandVulpix2000's user avatar
0 votes
0 answers
178 views

Cmake build from source gives problems on make (probably c++14 standard not used)

I just updated my Cmake to the version 3.19 (previously 3.10) from sources. For this I now have two cmake versions the one from before in /usr/bin/cmake and the new one in /usr/local/bin/cmake which ...
Marcel_marcel1991's user avatar
0 votes
0 answers
5k views

cannot find crt1.o and crti.o

I'm trying compiling a code and I'm stuck on the following error: /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory collect2: ld ...
meocomandate's user avatar
0 votes
1 answer
4k views

assert.h no such file or directory (Ubuntu 20.04 arm64)

I tried to solve this problem by installing the various libraries but still nothing. Advice? I checked the include path: parallels@ubuntu-linux-20-04-desktop:~$ locate /assert.h | grep assert.h$ /...
NICCOLO ERASMI's user avatar
1 vote
1 answer
2k views

XGBoost fails with GLIBCXX_3.4.26 not found error on Ubuntu 18.04

I'm attempting to run some code that calls into XGBoost on a Ubuntu 18.04 machine. This code fails with AttributeError: 'XGBoostCostModel' object has no attribute 'pool', with the root cause: Error ...
Aleksey Bilogur's user avatar
3 votes
1 answer
10k views

gcc: error: /usr/lib/libusb-1.0.so: No such file or directory

I'm getting this error when I try to build (using make) my system. gcc: error: /usr/lib/libusb-1.0.so: No such file or directory I installed this package using this command $ sudo apt-get install ...
Bithead's user avatar
  • 31
1 vote
0 answers
283 views

How to use graphics.h in ubuntu 20.04?

I'm trying to use graphics.h in my ubuntu 20.04 with gcc and I don't know why it's not working. It's showing Unknown sequence number while processing queue error. Here's my code: #include <graphics....
the_razz03's user avatar
2 votes
1 answer
4k views

#include <sqlite3.h> Not working with GCC - C programming

I have just started with C programming and am originally a python programmer so please try and not use very advanced words I wont understand much. So when I try using gcc as my compiler as I get an ...
The Terminal's user avatar
0 votes
1 answer
185 views

Getting /usr/local/gcc-8.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1), why?

Getting /usr/local/gcc-8.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/x86_64-linux-gnu/libjsoncpp.so.1) why? I keep getting this error. Most recently I tried to ...
marienbad's user avatar
  • 151
1 vote
1 answer
3k views

How can I solve this erorr "/usr/bin/ld: cannot find -libpthreads collect2: error: ld returned 1 exit status" if i already install pthread library?

**I write this c code and I already install a pthread library writting this command **sudo apt-get install lpthread-stubs0-dev #include <stdlib.h> #include <pthread.h> #include <stdio.h&...
Areej's user avatar
  • 21
0 votes
1 answer
3k views

fatal error: linux/compiler-gcc9.h: No such file or directory

I am trying to compile a Linux kernel. I followed instructions and installed tools. But I am stuck at this. GCC is installed and the version is 9 but still, it says cannot find the header. I am ...
Nadir's user avatar
  • 1
0 votes
0 answers
631 views

How to install older gcc package using APT from a repository?

I have GCC v9. But I'm trying to install a GCC 4.8.1 version to test a library compilation on that very old version of GCC. The version is not available in the official Ubuntu repos,it is deprecated, ...
darkgaze's user avatar
  • 101
0 votes
0 answers
342 views

How to install gcc 5.3.1 in Ubuntu 18.04 LTS

I want to install CUDA 8 in my Ubuntu 18.04 which needs gcc 5.3.1. If I use sudo apt install gcc-5.3 g++-5.3 then it gives me the following error: Reading package lists... Done Building dependency ...
Ajinkya Bankar's user avatar

1 2 3
4
5
24