Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Failed to build GCC with uClibc-ng-1.0.48

I am trying to build a cross compiler of GCC for mips32 with uClibc. I downloaded GCC-10.3.0 and uClibc-ng-1.0.48, the system environment is setup as follows, export ARCH=mips export TARGET=mips-linux-...
wangt13's user avatar
  • 431
0 votes
0 answers
12 views

Linux From Scratch 12.1 GCC testsuite failing and timing out

I'm currently building Linux From Scratch 12.1 with the book, I've followed the instructions line by line. I'm struggling with the GCC testsuite, I have lots of FAIL and timeout. In addition to that, ...
noxen's user avatar
  • 1
0 votes
1 answer
10 views

How to validate self-build GNU toolchain and newlib?

I am working on an embedded system, where there is ARM SOC and RTOS. I have built GNU toolchain with newlib for this embedded system, and did very basic testing. Now before I can be sure to use the ...
wangt13's user avatar
  • 431
0 votes
0 answers
49 views

RPM libgcc package conflicts with installed libgcc version newer

I am installing gcc4 (http://v14700.1blu.de/aix/index.php?n=Main.Gcc#v4.8.3) on aix. One of the dependencies is libgcc 4.8.3-1.I install it via rpm -i libgcc-4.8.3-1.aix7.1.ppc.rpm and get the error: ...
ibse's user avatar
  • 301
0 votes
1 answer
32 views

Failed to build GNU toolchain and newlib 4.4 for ARM from scratch in X86 Linux

I am working on an embedded RTOS on ARM, now I am going to build the GNU toolchain for the ARM in my X86 Linux host (ubuntu-20.04), so I did followings by referring to https://gnutoolchains.com/...
wangt13's user avatar
  • 431
0 votes
0 answers
15 views

Trying to install specific gcc/g++ version on OpenSuse Leap 42.3

I am using a docker container base image for opensuse/leap:42.3, I want to install c,c++ compiler, and I use the command zypper install gcc7-g++ This does not install the gcc binary, but if I do ...
1994's user avatar
  • 141
0 votes
1 answer
38 views

Building and installing GCC 12 in a parallel/sub prefix on heavily modified Ubuntu 14.04

One of my systems that I still use a lot runs a kind of "Frankenbuntu" 14.04 that has received lots of additional updates via PPAs and software I build and install to /opt/local (using an ...
RJVB's user avatar
  • 254
0 votes
0 answers
39 views

Failure to bootstrap GCC 13.2

I am trying to install the latest version of GCC 13.2 on my system: Linux minty-virtual-machine 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux ...
Harith's user avatar
  • 111
0 votes
2 answers
171 views

I'm Using Distribution $X That was shipped With Compiler $Y, but I Need Compiler Version $Z

Issue This question, and answers containing various approaches to solving it comes up many times almost daily on our exchange here. If a search result brought you here Welcome! If a comment I left in ...
eyoung100's user avatar
  • 6,420
0 votes
1 answer
568 views

Debian Bullseye: Install gcc-11.4.0 and dependencies

I need to install gcc-11.4.0 + dependencies on Debian Bullseye. I downloaded gcc-11.4.0 from: http://ftp.de.debian.org/debian/pool/main/g/gcc-11/gcc-11_11.4.0-7_amd64.deb However, if I try to install ...
binaryBigInt's user avatar
4 votes
1 answer
692 views

How to robustly determine which version of GCC was used to build the kernel from bash shell

What is a robust way in a bash shell to determine the version of GCC used to compile the currently running kernel? I need it in the form of major.minor.patch so that I can compare it with the last ...
Adam Sperry's user avatar
0 votes
0 answers
38 views

Unable to build a cpp program on AIX with gcc fsanitize address

I'm trying to build a cpp program on AIX 7.2 using gcc with address sanitizer (-fsanitize=address) but this errors out with: cc1plus: warning: '-fsanitize=address' not supported for this target ...
Sanchit Gupta's user avatar
4 votes
4 answers
5k views

Unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ when building kernel module

I have very little experience with kernel module development. Despite this I have been tasked with maintaining an old driver for a Sensoray 626 DAQ card. I am using a very simple dkms setup to build ...
Adam Sperry's user avatar
0 votes
0 answers
52 views

configure: error: C compiler cannot create executables ERROR on FreeBSD 14.0-RELEASE

I'm not able to install sudo on my FreeBSD 14.0-RELEASE-p3 amd64 marietto:/usr/ports/security/sudo # make ===> License sudo accepted by the user ===> sudo-1.9.15p4 depends on file: /usr/...
mister_smith's user avatar
1 vote
1 answer
140 views

How can I build an older GCC version (8.5.0) on a newer Linux distribution (Devuan Excalibur/Debian Trixie)?

If I download and try to build GCC 8.x on a newer machine, e.g. Devuan Excalibur GNU/Linux (i.e. Debian Trixie without systemd) - this fails, with the error going something like this: libstdc++.so.6: ...
einpoklum's user avatar
  • 9,605
0 votes
1 answer
64 views

gcc build error

when I configure gcc I got a error message could anyone help me ? plz.. messages.. checking whether the C compiler works... no configure: error: in `/home/kjs0625/gcc/gcc-13.1.0': configure: error: C ...
Rahul Nitin's user avatar
0 votes
0 answers
106 views

building gcc-13.2.0 cross compiler, generated makefile causes errors

I am trying to build a cross compiler for my Raspberry Pi Zero that runs on a Raspberry Pi 4. I used ../configure --build=x86_64-pc-linux-gnu --disable-multilib --disable-fixincludes --enable-...
Amiibo Alec's user avatar
1 vote
1 answer
42 views

Is there a machine interface (CLI) to GCC that emits errors in a way easy for a library to parse?

I searched google for "libgcc", but that seems to be a non-standalone gcc private library. Does anybody know what I'm looking for? At least, is there a reliable parser for gcc error output ...
mo FEAR's user avatar
  • 192
0 votes
1 answer
53 views

Allowing just switch ranges in gcc

I'm trying to clean up some C code and build a Debian package. The makefile was set to use -Wall but debuild uses -Wpedantic . As it happens this was "a good thing" as the code was casting ...
GraemeV's user avatar
  • 148
1 vote
1 answer
194 views

Compiling GCC failed on Openbsd 7.4 (configure: error: .... libgomp)

I'm yak shaving: to compile gcc (especially with libgccjit for ultimately compiling emacs with native-comp) on openbsd 7.4. The reason behind is libgccjit isn't available via pkg_add. Thus I'm trying ...
Garid Z.'s user avatar
  • 542
1 vote
1 answer
1k views

Before you can run VMware several modules must be compiled (vmmon and vmnet)

I just restarted my Pop!_OS and when trying to open vmware it says I have to compile several modules. It then goes onto trying to compile vmmon and vmnet, which fails. and gives me an error log file. ...
Jagemann's user avatar
1 vote
1 answer
208 views

make command doesn't produce any executable

My Makefile contains the following: CC=gcc CFLAGS=-Wall main: hello.o hello_fn.o clean: rm -f main hello.o hello_fn.o It should have produced an executable file main (I've read that in ...
Rodion Iskhakov's user avatar
0 votes
1 answer
76 views

is it possible to link the zlib when genreate so with gcc

I need to invoke the c method from rust. Fisrt step, I am using gcc to generate a so file like this: gcc -shared *.o -o libsynctex_parser.so But when I build the rust project, it shows that the c ...
Dolphin's user avatar
  • 607
1 vote
0 answers
105 views

Behavior of running ldconfig with a directory argument

I have installed some shared libraries to the non-standard directory /usr/lib64/mylib. Then I run sudo ldconfig /usr/lib64/mylib. I can assert by running ldconfig -p that my libraries are indeed ...
Nick's user avatar
  • 111
1 vote
2 answers
2k views

Error building GCC 9: version `GLIBCXX_3.4.30' not found

I've been trying to install GCC 9.5 on Debian Bookworm (12) using gcc-12 which is available in the Debian repos. The build fails at make citing it couldn't find GLIBCXX_3.4.30. The relevant part of ...
RogUE's user avatar
  • 207
-1 votes
2 answers
110 views

How can we edit the source code of GNU's gdb debugger?

I am on a Linux(Ubuntu 22) machine with gcc installed. We know that gcc comes with gdb as debugger. There are many commands in gdb and I want to change the behaviour of some inbuilt commands(disp). ...
Matthew kale's user avatar
1 vote
1 answer
234 views

make menuconfig hangs when trying to compile linux kernel 6.1.44

I am trying to compile linux kernel 6.1 on Debian 12. I have installed the build environment: apt-get install build-essential bc libncurses-dev libssl-dev libelf-dev bison flex Now when I run make ...
Martin Vegter's user avatar
0 votes
0 answers
299 views

Compile git for /lib/ld-linux-armhf.so.3 from vm that links with /lib/ld-linux-aarch64.so.1 by default

I'm building git from source from a debian 10 vm that has /lib/ld-linux-aarch64.so.1, which ends up linked in the git binary after a basic NO_TCLTK=true make prefix=$(pwd)/2.41.0/arm make all and ~ ...
bpstrngr's user avatar
  • 101
0 votes
1 answer
286 views

Why is debug flag in GCC abbreviated "g"?

In GCC the debug flag is "-g". I have not been able to find why "g" was chosen for this. Does anyone know?
BipedalJoe's user avatar
0 votes
0 answers
202 views

How do I determine the GCC version in /proc/version on Ubuntu?

my core problem is that I can't find what version of GCC was used to compile my kernel on an Ubuntu machine. I've tried cat /proc/version, but the result is the following: Linux version 5.19.0-46-...
hrjkknox's user avatar
0 votes
0 answers
56 views

How to cleanup unnecessary intermediate build results (like .o files) after compiling GCC from source?

I have built GCC 13.1 from source code. The source folder after building (with all the parameters at their defaults) is 6.9 GiB in size. In total my free space reduces by 11 GiB after compiling (not ...
Violet Giraffe's user avatar
0 votes
1 answer
28 views

"cannot open @@: No such file" building atf with Linaro/Libre Computer toolchain

I'm attempting to recompile the bootloader for the Libre Computer AML-S905X-CC in this git repo per the listed instructions, on a Debian 11 virtual machine. The build is throwing some errors when it ...
BMac's user avatar
  • 101
0 votes
1 answer
86 views

Differences between gcc and gcc-X

I'm using Ubuntu 18.04.6 LTS and when I use dpkg -l command, the result contains the following entries: ii gcc 4:7.4.0-1ubu amd64 GNU C compiler ii gcc-7 7.5.0-3ubunt ...
Yiyang Yan's user avatar
0 votes
3 answers
3k views

Installing GCC 13.1.0 on x86_64 Debian

Did anybody here manage to install GCC 13.1.0 on their computer? When I try to build it from source on my 64-bit Debian Linux, I get the following error message: /usr/bin/ld: .libs/hwasan.o: ...
FlatAssembler's user avatar
0 votes
1 answer
39 views

What is "Ar.1" in glibc-2.17-324.el7_9.Ar.1.x86_64

For some reason my system has glibc-2.17-324.el7_9.Ar.1.x86_64 installed. Not sure what that Ar.1 is doing there. I need to install glibc-devel, which complains because it requires glibc-2.17-324....
Mo Fatty's user avatar
  • 143
0 votes
2 answers
589 views

How to pipe an object file into GCC for linking?

My custom compiler for a toy language uses Cranelift to generate object code, that I can write into a file main.o. To make this object file into an executable file, I invoke GCC with gcc -o main main....
Altareos's user avatar
  • 103
0 votes
1 answer
57 views

gcc doesn't find output fine and therefore cannot compile my c program (vscode)

As the title suggests it is the output file it cannot find, not sure why this is an issue here is my c_cpp_properties.json: { "configurations": [ { "name": &...
Manfred's user avatar
  • 25
1 vote
0 answers
1k views

unrecognized option '-EL'

I'm trying to build an android kernel. On every build I get a few errors: /usr/bin/as: unrecognized option '-EL' clang-16: error: assembler command failed with exit code 1 (use -v to see invocation) ...
JohnTit's user avatar
  • 11
0 votes
0 answers
58 views

What is the bootstrapping technique in terms of building cross-gcc and cross-glibc?

Some tutorials for building linux from ground do in first step building the cross compiler toolchain. They do this by invoking so called bootstrapping technique. First they build cross-gcc statically, ...
ptiza_v_nebe's user avatar
1 vote
1 answer
260 views

gcc nonexist directory: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../x86_64-linux-gnu/include

https://stackoverflow.com/questions/17939930/finding-out-what-the-gcc-include-path-is output: ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent ...
jian's user avatar
  • 577
5 votes
1 answer
4k views

How to build GCC 13 on M1 MacBook pro?

I want to build gcc-13 on my M1 MacBook Pro. Following official document, I download source code using git, configure and make. For configure, I refer to the way of Homebrew configure gcc-12 on link. ...
徐保钰's user avatar
  • 191
2 votes
1 answer
781 views

GCC linker search path when cross-compiling

I have various tool chain directories on my linux machine for compiling under specific compiler versions. I have a problem where the linker (in the tool chain dir) is selecting a library file from ...
kfank's user avatar
  • 21
0 votes
1 answer
765 views

what target flag should I set to cross compile arm 32 bit code in gcc?

I'm trying to build a cross compiling build server for some 32 bit arm devices, where the architecture is: (from uname -m) "armv5tejl" I have to specify the target for binutils, and gcc, ...
j0h's user avatar
  • 3,639
0 votes
1 answer
340 views

Why compiling Fortran code with include is different from #include?

I can't understand why including a text file that contains some C lines in a fortran77 code gives me a warning if I do not use #include. I wrote an example of a code that is supposed to read some text ...
Giorgio Maria Cavallazzi's user avatar
1 vote
0 answers
116 views

Testing gcc command in Linux From Scratch?

Linux From Scratch tells me to run these commands to test that the new toolchain is working: echo 'int main(){}' | gcc -xc - readelf -l a.out | grep ld-linux So since I am testing the new toolchain, ...
IPmanfkawde's user avatar
2 votes
1 answer
2k views

gcc-12 not updating despite newer versions being available from jammy-security

I am running Ubuntu 22.04 and I am trying to update gcc-12 and all its related dependencies (currently version 12.1.0-7) to the latest version available in jammy-security (12.1.0-2ubuntu1~22.04) but ...
user781728's user avatar
3 votes
0 answers
56 views

Minimizing disk usage with parallel calls to GCC

I am experimenting with testing GCC in parallel. My setup will run 96 tests before giving me the test report. If I run these tests sequentially it will invoke GCC once, run the executable, gather ...
Rewbert's user avatar
  • 131
0 votes
1 answer
81 views

Upgrading gcc (+jit) outside of any package manager help : What else to rebuild?

Currently using now-unsupported ggc 9 on a Linux-5.4, I need to upgrade to at least gcc 10. A/ For whatever let's say historical reason, this upgrade must be carried on without relying on whatever ...
MC68020's user avatar
  • 8,211
0 votes
1 answer
806 views

error trying to build/make from source

I'm trying to build opendingux from github repo/source. https://github.com/OpenDingux/buildroot OpenDingux is an embedded Linux distribution focused on (retro) gaming. I cloned the repo and then ran ...
AeroMaxx's user avatar
  • 189
4 votes
0 answers
847 views

installing latest version of gcc in ubuntu 20.04

I installed build_essential on Ubuntu 20.04 and it installed GCC version 9.x But the latest version of GCC is 11.x. How can I install the latest version of gcc into Ubuntu 20.04? I already tried these ...
user654019's user avatar
  • 2,327

1
2 3 4 5
15