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

How can I solve the issue undefined reference to error after Geant 4 compilation?

CMakeFiles/cyliSD.dir/src/ExN01PhysicsList.cc.o: In function `ExN01PhysicsList::ConstructEM()': ExN01PhysicsList.cc:(.text+0x32a): undefined reference to `G4LowEnergyCompton::G4LowEnergyCompton(...
-1
votes
0answers
26 views

What does '/bin/bash: line 2: 30063 Killed' mean? [closed]

I'm trying to install ps2dev a homebrew playstation 2 development toolchain and SDK But I'm having trouble compiling gcc 11.1.0 it stops at make[2]: Entering directory '/home/david/ps2toolchain-ee/...
0
votes
1answer
35 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# ...
0
votes
0answers
27 views

Not able to install gcc

When running sudo apt install gcc give following output: Err:1 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libc-dev-bin amd64 2.27-3ubuntu1.4 Could not resolve 'in....
0
votes
0answers
29 views

Running Full Node Ravencoin

I am trying to make a full node Ravencoin on ubuntu 16.04 and i did install everything below sudo apt-get update sudo apt-get install build-essential libtool autotools-dev automake pkg-config ...
0
votes
0answers
31 views

g++ cant be installed, but it also isnt corrupt [closed]

Hi I have this problem trying to install g++. Im using Linux Mint. I checked for: $ which gcc g++ /usr/bin/gcc $sudo apt-get update $ sudo apt-get install g++ The following packages have ...
0
votes
0answers
18 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
26 views

undefined reference to `__assert_fail' (ubuntu 20.04 arm64)

How can i fix it? parallels@ubuntu-linux-20-04-desktop:~/Desktop/Laboratorio/workspaces/srrg2_labiagi/src/srrg2_orazio/srrg2_orazio/srrg2_orazio/firmware_build/atmega2560$ make orazio.hex avr-gcc -...
1
vote
1answer
74 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$ /...
0
votes
0answers
25 views

compilling with gcc and g++: vp8_multi_resolution_encoder - compiling with gcc showing so many error but g++ showing only one

First of all, i have built libvpx for x86_64-linux-gcc. then Trying to use examples/vp8_multi_resolution_encoder.c. I need to convert a a video file into multiple resolution using vp8 encoder. I have ...
0
votes
1answer
30 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 ...
1
vote
1answer
39 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 ...
0
votes
0answers
31 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....
1
vote
1answer
33 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 ...
0
votes
1answer
55 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 ...
1
vote
1answer
69 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&...
0
votes
0answers
137 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 ...
0
votes
0answers
43 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, ...
0
votes
0answers
41 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 ...
0
votes
1answer
66 views

After downgrade gcc Nvidia driver doesen't work,fallback to default gcc doesn't work

As I downgrade the gcc to 4.4 I changed the symlinks to the 4.4 Version. This doesen't work and now my System (kubuntu 20.04 64bit) doesen't boot. As I learned now the Nvidia driver need the gcc ...
0
votes
0answers
34 views

how to custom ubuntu live CD with gcc installed

I want to make an Ubuntu image with gcc so that I can run gcc directly after the system is installed. The version of Ubuntu is Ubuntu Server 20.04.2 LTS. How can I package the gcc related installation ...
0
votes
0answers
46 views

Unrecognised arguement in Build the Linux® kernel source code Latest Ubuntu

im learning some linux development for an STM MP1 board and got stuck at this part https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Develop_on_Arm%C2%AE_Cortex%C2%AE-...
1
vote
0answers
25 views

Installing of graphics.h library

when i try to install following packages using this command. sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev . It shows Reading package lists... Done Building dependency tree Reading ...
0
votes
0answers
23 views

How to use gcc -7 if a have build essential installed (ubuntu 16.04)

I'm on Ubuntu 16.04 and installed build-essential because I need gfortran, gcc, g++. I'm trying to run Nek5000 but I get an error with makenek: gcc: error: unrecognized command line option ‘-fno-plt’ ...
1
vote
0answers
38 views

Cannot compile aircrack-ng [closed]

Downloaded the tarball for aircrack-ng and then followed the instructions to compile and then install it. The first step it asked me to do was to run autoreconf -i so I did. It gave the following ...
0
votes
0answers
146 views

About files in /usr/include/x86_64-linux-gnu

I see libc6-dev have files installed in /usr/include/x86_64-linux-gnu. It seems that files in /usr/include/x86_64-linux-gnu/sys are pointed by symlinks from /usr/include/sys. And it seems that /usr/...
0
votes
0answers
27 views

How to set higher version of gfotran (>4.8.5) as the default complier

I am using windows subsystem linux. By using gfortran --version, I see GNU Fortran (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5. I tried to install higher version of gfortran, follows How do I install ...
0
votes
0answers
28 views

gcc version change using update-alternative

i wanted a lower version of gcc to be installed for an old GPU and used gcc-opt to install and changed the gcc auto to the lower version using update-alternatives the following error showed up gcc-...
0
votes
0answers
219 views

/usr/bin/ld: cannot find -ly (flex and bison, Ubuntu 20.04.2)

I just switched from Windows10 to Ubuntu 20.04.2, and after installing Flex and Bison using these commands : sudo apt-get update sudo apt-get flex bison I get an error after running gcc lex.yy.c ...
0
votes
2answers
279 views

Experiencing gcc 5 failure running poetry install on Ubuntu 20.04

Multiple error: command 'gcc-5' failed: No such file or directory.. gcc version: 9.3 poetry version: 1.1.4 python: 3.9.1 Ubuntu 20.04
1
vote
1answer
231 views

gcc/g++ 10 is installed but I can not use it on Ubuntu 20.04.2 LTS [duplicate]

I used the information here How to install g++ 10 on Ubuntu 18.04? to install gcc/g++ 10 on Ubuntu 20 and when I try to do it again: sudo apt install g++-10 Reading package lists... Done Building ...
0
votes
0answers
24 views

Having a problem with installing Nachos, and don't know which gcc compiler to install

Currently, I was trying to install Nachos-3.2 form https://homes.cs.washington.edu/~tom/nachos/ and having a problem with installing it. And I'm following install guide on http://operatingsystems-fime....
0
votes
0answers
32 views

configure: error: Cannot enable MemorySanitizer ubuntu18.04

make powerdns in ubuntu18.04 server by this option ./configure --enable-msan and I install 100+ packages but it could resolve error checking whether to enable MemorySanitizer... yes checking whether ...
0
votes
0answers
195 views

gcc: error trying to exec 'cc1plus': execvp: No such file or directory

i am trying to run the ovs faucet tutorial. One of steps is to compile the faucet container package. I am getting the following error when I tried to run it gcc: error trying to exec 'cc1plus': execvp:...
0
votes
0answers
26 views

gcc: error trying to exec '/usr/lib/gcc/x86_64-linux-gnu/7/cc1': execv: Input/output error [duplicate]

I've searched for an attempted fix for this problem but it seems that people haven't had this problem. When I try to compile a C program with gcc (Ubuntu 18.04, GCC 7.5.0) I get the error as said in ...
0
votes
1answer
270 views

How to install guest addition in Ubuntu 20.04 LTS?

Today, i installed Ubuntu 20.04 LTS on latest virtualbox. everything is fine except fullscreen. I tried to install guest addition by clicking on " Insert guest addition CD image ". At first ...
1
vote
1answer
257 views

C++ not able to install 32-bit gcc-9/g++-9-multilib on Ubuntu 18.04

I have multiple version of c++ compilers installed on my laptop. I am trying to build my code using g++-9.3 with a 32-bit compiler. So I tried to install the multilib by using sudo apt-get install gcc-...
0
votes
1answer
71 views

gcc usb.h not found

I'm trying to compile a little program with GCC, but the command make ./temper gives me this error: gcc -Wall temper.c pcsensor.c -o temper -lusb In file included from temper.c:8: pcsensor.h:25:10: ...
0
votes
1answer
39 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
1answer
625 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 ...
0
votes
1answer
141 views

/usr/bin/ld: cannot find -lXinerama

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 -...
0
votes
0answers
78 views

how to set alternatives for gcc command sets gcc, gcc-ar, gcc-nm, .. (when installed with different methods)

ckim@chan-ubuntu:~/N1SDP/yocto_based_20201228/bsp/build-poky$ gcc --version gcc (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; ...
0
votes
0answers
19 views

How to install dependencies when packages are missing 20.04 [duplicate]

How can I install dependencies on 20.04 when required packages versions are missing from https://packages.ubuntu.com? I'm stuck in situation when I need to install network drivers for PC, but I can't ...
1
vote
0answers
44 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
1answer
85 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
0
votes
0answers
52 views

Include additional library while cross compile building

I have installed GCC cross compiler for Raspberry Pi to my Ubuntu 20.04 to opt folder. Now When I create new cross compile project I have list of include in my Eclipse project explorer: /opt/gcc-arm-...
0
votes
0answers
52 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 ...
0
votes
0answers
37 views

Cross-compiler cannot detect header files

I have moved some binaries, namelly the or32-uclinux binutils and gcc into my Ubuntu 20.04 machine and although they are working, I mean you can execute them without problem when I try to compile an ...
0
votes
1answer
377 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
2 3 4 5
21