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

Bash treats some files as non-existent files

The Problem I have a lot of gcc i686 cross-compiler executable files in a custom bin directory, i previously placed them on default bin folders, but no matter what, i cant open them. I tried to open ...
user avatar
0 votes
0 answers
19 views

Unable to install build-essential package on Kubuntu 22.04 LTS [duplicate]

After running sudo apt-get install build-essential I got Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be ...
user avatar
0 votes
0 answers
68 views

How to downgrade gcc 9.4.0 to 9.3.0 in Ubuntu20.04

I just installed ubuntu 20.04 and gcc. The default gcc version is 9.4.0. How to downgrade it from 9.4.0 to 9.3.0? Thanks.
user avatar
  • 1
1 vote
0 answers
128 views

Install gcc7 on ubuntu 22.04

I would like to install gcc-7 on Ubuntu 22.04. I used: sudo apt-get install gcc-7 g++-7 But got the error: Reading package lists... Done Building dependency tree... Done Reading state information... ...
user avatar
  • 11
0 votes
0 answers
27 views

unable to compile libraries in Ubuntu22.04 - issue with c compiler

I was trying to compile some libraries such as hdf5, netcdf and mpich, but was getting error saying "C compiler cannot create executables". configure: netCDF 4.7.1 checking build system type....
user avatar
1 vote
0 answers
156 views

How can I install gcc-7 for Ubuntu 22.04?

I've just installed Ubuntu 22.04, and I'm struggling installing gcc-7. I've already tried with sudo apt install gcc-7 but it says there is no installation candidate. I tried to find a PPA for this ...
user avatar
0 votes
0 answers
23 views

Please check why ubuntu is giving error

code: char index2key(u64 index, char* key, u32 l_min, u32 l_max, const char* charset, u32 n_charset) { u32 l_key = l_min; u64 n_key = pow(n_charset, l_min); while (index >= ...
user avatar
-1 votes
1 answer
125 views

Compile gcc 7.4 failed for ubuntu-22.04

I tried to compile gcc 7.4 for my ubuntu-22.04 so that I could use the glmnet for my R package. I tried everything from the internet and it did not work. The error I have is : #Error1 ...
user avatar
5 votes
0 answers
217 views

How to install gcc-8 on Ubuntu 22.04?

Since the apt sources in 22.04 doesn't include gcc-8, is there a good way to install it? I have been googling all day for this..
user avatar
1 vote
0 answers
228 views

how to install libpython3.6m.so.1.0 on ubuntu 20.04?

I tried updating my cross tools for arm64 on my x86-64 ubuntu 20.04 machine. The installed cross tools gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf from arm. When I run the aarch64-none-elf-gdb, it ...
user avatar
  • 1,247
0 votes
0 answers
39 views

building make,gcc,buildessential packages

As we don't want to install build-essential make 4.1 and gcc-9.4.0 via apt-get install. we need to compile source build-essential make 4.1 and gcc-9.4.0 in ubuntu. may I know where do I get these ...
user avatar
0 votes
0 answers
63 views

Installing gcc-4.8 on Ubuntu 21.10 in 2022

I am trying to install GCC-4.8 on Ubuntu 21.10. First, I tried installing from a repository, but failed probably because version 4.8 is too old: >sudo apt-get install python-software-properties >...
user avatar
  • 1
0 votes
0 answers
101 views

Linking Zlib with source compilation

I have compiled Libz using these steps: wget -c --no-check-certificate https://zlib.net/zlib-1.2.12.tar.gz ./configure --prefix=/home/zlib1/ make make install Similarly I have compiled OpenSSL and ...
user avatar
0 votes
0 answers
43 views

How to install SASM correctly on arm64 Ubuntu m1 silicon? I don’t have a macro.o file…

I installed SASM on Linux (Ubuntu with arm64) on my M1 Mac. When I try to Build my NASM code, I get the following error: gcc: error: /tmp/SASM/macro.o: No such file or directory gcc: error: ...
user avatar
1 vote
1 answer
36 views

How to use an older version of GCC (2.7.2 or 2.95)?

I need an older version of GCC on Ubuntu 20.04. I am not sure if its even possible to install such old versions. I have tried multiple commands but none of them are working, e.g. sudo apt-get install ...
user avatar
0 votes
1 answer
35 views

Download Linux native x86_64 GCC toolchain?

I'd like do download the GNU GCC package toolchain for Ubuntu, and not install it (sudo apt install build-essential) - just download. There are toolchains for cross-building for Arm targets, but I ...
user avatar
  • 272
0 votes
1 answer
44 views

Cross Compilation ARMHF or Compilation for Android from Debian or Ubuntu package?

I have two options to compile, Option1: Cross-compile using a x86_x64 ubuntu or debian system for armhf package compilation, Option2 Image of ubuntu or debian armhf in Qemu. The problem I have is that ...
user avatar
1 vote
1 answer
27 views

Ubuntu generating some core dumps but not others

I set ulimit -c 8 and ran this small C program: #include<stdio.h> #include<assert.h> int main() { int x = 4; int y = 7; assert(x == 5); printf("\n Hello! \n\n&...
user avatar
  • 123
-2 votes
1 answer
433 views

unable to correct problems, you have held broken packages on ubuntu 20.04 [duplicate]

I am trying to install gcc to run a C/C++ program in Visual Studio Code, but I am not able to install gcc. I tried sudo apt-get update sudo apt install build-essential And it shows an error Unable to ...
user avatar
2 votes
1 answer
292 views

Ubuntu 20.04 gcc report wrong version

When trying to install nvidia proprietary driver on my 20.04 LTS host I ran into a problem that it would not install when using DKMS. It complained about mismatach between gcc version used for the ...
user avatar
0 votes
0 answers
8 views

How to keep 2 versions of the gcc compiler in the local environment

I need to change the gcc version in my local environment of a remote server. However I have no access to the root directory. Is there anyway I can keep 2 versions of gcc in my local environment so ...
user avatar
  • 1
0 votes
1 answer
101 views

Can't install gcc, you have held broken packages [duplicate]

I'm trying to install gcc, but I keep getting this message: ~$ sudo apt install gcc make gdb valgrind git Reading package lists... Done Building dependency tree Reading state information... ...
user avatar
0 votes
1 answer
74 views

What is the general process and timeline for providing latest gcc compiler versions in an LTS release? [duplicate]

For example Ubuntu 20.04 provides gcc-10 packages but it is still missing gcc-11. Both Ubuntu 21.04 and 21.10 provide gcc-11 packages. When does 20.04 get gcc-11? I am aware there are other ways to ...
user avatar
2 votes
0 answers
276 views

C++ fmt library not working

Hi guys I'm a C++ beginner and I just found that the fmt lib is really interesting. But I ran into a problem when trying to use it. I used homebrew to install fmt lib brew install fmt .I check the fmt ...
user avatar
0 votes
0 answers
125 views

Why is GCC missing from Ubuntu 20.04?

I know that gcc is listed in the manifest files for 20.04, however, it seems that nearly all installations are missing it by default. For some extra context, I work on a small OSS web project and ...
user avatar
0 votes
0 answers
62 views

&& gcc file name &&

Every time I run some codes on VS Code,cd "file location" && gcc file name.c -o file name && "file location"file name appears after the device's name and before the ...
user avatar
0 votes
0 answers
147 views

Make command not working - relocations in generic ELF

I am new to ubuntu, I am trying to use make to compile code for an assignment, however the make command is not working, and deletes some of the files that are needed for my assignment. The Makefile ...
user avatar
  • 1
0 votes
0 answers
23 views

How to update GCC to 11.2 [duplicate]

Today I installed Ubuntu 20.04 (first time using Linux) and I'm having trouble with updating GCC to 11.2 (latest stable version). I checked another question and tried it but after updating it, it's ...
user avatar
0 votes
0 answers
78 views

Error while using Make for Gihub Repocitory

I tried to make this repository from my linux, git clone https://github.com/jeremyb31/rtl8192eu-linux-driver when i enter the command make it shows error like this, make ARCH=x86_64 CROSS_COMPILE= -...
user avatar
0 votes
1 answer
999 views

Another no such file or directory? But the file exists!

i am facing a problem that consumed a lot of my tine. i am trying to link my object file (small program compiled with nasm) with ld linker and using c functions. I searched a lot and i found that the ...
user avatar
5 votes
2 answers
638 views

What does the output of gcc --version mean

Here is the output of gcc --version : ./gcc --version gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 I understand this is version 7.5.0 but why is there the word "Ubuntu" before the version and ...
user avatar
2 votes
2 answers
134 views

I would like that my Kinect 2 is recognized by Ubuntu 21.10 as a webcam,but gcc 10 is not accepted for compiling libfreenect2 with nvidia 470+CUDA 11

Hello to every linux/ubuntu lover all around, I'm trying to run my Kinect 2 on my Ubuntu 21.10. The commands that I've issued one by one are the following : marietto-BHYVE:/home/marietto# nvcc --...
user avatar
  • 349
0 votes
0 answers
1k views

"/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory" when compiling HTK

I'm trying to compile the HTK library, but run into issues: $ make all (cd HTKLib && make HTKLib.a) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/...
user avatar
  • 79
0 votes
1 answer
285 views

Errors in installing the WIFI driver

I have the Tenda W311MI Wireless Nano USB Adapter. On Windows it automatically installs and works. On Ubuntu there's no wifi networks available. I downloaded the drivers from the Tenda website https://...
user avatar
0 votes
0 answers
105 views

problem in running c++ 17 code

With these two commands sudo apt-get update sudo apt install build-essential I install c++ compiler and it has GCC/g++ version 10,than I install VS-Code and install two extensions code-runner and c++ ...
user avatar
1 vote
0 answers
118 views

C compiler cannot create executables (install netcdf using icc and ifort)

I have installed intel oneAPI on ubuntu 20.04, further ifort and icc. The following command on terminal shows saras# which icc /opt/intel/oneapi/compiler/2021.4.0/linux/bin/intel64/icc saras# which ...
user avatar
0 votes
0 answers
78 views

GCC cross compiler - what are the "none", "elf", and how to know which version to download?

I usually get lost when I need to download a cross-compiler. I know it might be a broad subject, but I'd appreciate a few guidelines/tools so I know what I'm doing instead of guessing and hoping for ...
user avatar
  • 27
2 votes
0 answers
101 views

gcc-multilib-arm-linux-gnueabihf used to install on disco, missing on impish

I have a Dockerfile to build a cross compiling environment for Rust. In the past I have only support musl builds for static executables. When I upgraded from disco to impish I am missing the important ...
user avatar
  • 121
2 votes
1 answer
254 views

Versions of libgcc-s1 and gcc-base vs. default GCC version in 20.04 LTS

Ubuntu 20.04 LTS (at least the core docker image) is distributed with libgcc-s1 and gcc-10-base version 10.3.0(-1ubuntu1~20.04), see, e.g., the manifest at https://partner-images.canonical.com/core/...
user avatar
  • 73
0 votes
0 answers
467 views

Undefined reference to libraries while building

I am trying to install tgs2apng in Ubuntu on WSL. As instructed I installed the 3 libraries- rlottie, libpng and apngasm. However When I run make I get undefined references to rlottie and apngasm Here'...
user avatar
0 votes
1 answer
215 views

Why is there no cross-compiler in Arm64 version of Ubuntu?

In the Amd64 version of Ubuntu, there's the gcc-{version}-{architecture}-linux-gnu packages that I can use to build binaries for different architectures, of which, the built binaries can be tested ...
user avatar
  • 117
1 vote
1 answer
69 views

PeerGuardian building from source [closed]

I have been trying to get PeerGuardian on my Ubuntu 21.04 system, but the PPA maintainer is not updating the package, and the project seems to be abandoned. When I try to compile on my laptop, I get ...
user avatar
  • 11
0 votes
0 answers
15 views

How do I install libobjc-9-dev on Ubuntu for ARM? [duplicate]

I'm trying to install Clang on Ubuntu 20.04 for ARM, which needs libobjc-9-dev. The Ubuntu 20.04 ARM repositories only have a version that needs GCC 9.3 but I currently have GCC 9.4 (trying to ...
user avatar
  • 1,042
0 votes
0 answers
141 views

cannot find compiler-gcc9.h

I have not seen an answer for this make file error. It cannot find the linux/compiler-gcc.h or linux/compiler-gcc9.h? Trying to build "build root" embedded linux. Additionally it is stating ...
user avatar
0 votes
0 answers
61 views

Why won't Ubuntu 20.04.3 LTS copy con.c to external USB drive?

I upgraded from Ubuntu 18.04 LTS to Ubuntu 20.04.3 LTS on my desktop on 11-12-2021. I compiled con.c on the new gcc version 9.3.0-17 compiler and it gave me warnings on using sprintf(). I converted ...
user avatar
  • 97
0 votes
0 answers
210 views

VMware Player launch - GNU compiler missing

I've followed many step by step howtos and it seemed that the installation went well (from here: https://linuxize.com/post/how-to-install-vmware-workstation-player-on-ubuntu-20-04/). Unfortunately, I ...
user avatar
  • 1
2 votes
1 answer
247 views

How to install libg2c.so.0 on Ubuntu 18.04 64bit

I'm using: Linux ip-172-31-28-209 5.4.0-1059-aws #62~18.04.1-Ubuntu SMP Fri Oct 22 21:51:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux I encounter an error while running a program: while loading shared ...
user avatar
  • 162
0 votes
1 answer
47 views

Error with Cloudy's make command on WSL2

I'm using a WSL2 (windows subsystem Linux) with Ubuntu 20.04 LTS. I want to use the Cloudy package, a Linux based simulation tool https://gitlab.nublado.org/cloudy/cloudy I have installed the package ...
user avatar
2 votes
0 answers
137 views

problem with making a c++ project with G++

I am trying to build cascade library using G++ 8.3.0. In the documentation they mention that it was tested on G++ 4.7.2. My question is, is it necessary to downgrade to 4.7.2? if so could you please ...
user avatar
2 votes
0 answers
296 views

How to build gcc-mips-linux-gnu from source

I've been using the gcc-mips-linux-gnu package, and now I want to make a small modification to the compiler. How can I build the exact same package locally? I already tried using apt-get source based ...
user avatar
  • 121

1
2 3 4 5
23