Skip to main content

Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

Filter by
Sorted by
Tagged with
3 votes
0 answers
81 views

I want to show how does it work under X11 with Xshm etc = OK fine if you resize window without flickering problem. Example: Code main.c ( X11 version ) #include <X11/Xlib.h> #include <X11/...
Jens Eckervogt's user avatar
2 votes
1 answer
137 views

I was trying to install MinGW onto my system, and it seems I've bricked many of my headers by doing this. I'd run configure (../configure --host=x86_64-w64-mingw32) then sudo make install for mingw-...
Coarse Rosinflower's user avatar
4 votes
2 answers
895 views

How can I take snippets from the Linux kernel drivers' code, for example this drm_fb_helper_hotplug_event function inside drivers/gpu/drm/drm_fb_helper.c, and compile a binary file that I can run to ...
feearent's user avatar
0 votes
1 answer
130 views

I’m trying to compile the Linux 5.4.1 kernel to a bzImage using an older GCC version I built from source (gcc 8.2.0 and binutils 2.31.1), with: make CC=<path_to_old_gcc> LD=<path_to_old_ld>...
ALEXIS LAZANAS's user avatar
0 votes
0 answers
130 views

After having deactivated ASLR, with: echo 0 | sudo tee /proc/sys/kernel/randomize_va_space I used ldd /path/to/binary to get the address of the shared library that my binary (written in C) was using, ...
rustymanito's user avatar
0 votes
0 answers
91 views

I wanted to get a C++ backtrace on Raspbian 9, where there is gcc-6 available, and found https://stackoverflow.com/questions/72341483/how-can-i-generate-a-c23-stacktrace-with-gcc-12-1 : You need to ...
sdbbs's user avatar
  • 590
0 votes
2 answers
173 views

Reference: Weak symbol In the link the following linker option is mentioned: cc main.o -L`pwd` -Wl,-R`pwd` -lpowerslow -o main2 The purpose of all of the above flags have been documented in the GCC ...
Vinod's user avatar
  • 167
0 votes
2 answers
536 views

I am currently using Ubuntu 24.04 (22.04. sorry, wrong) but frustrated that I can't load the latest GCC compilers. I have GCC 14.2 but want to install 14.3 and then 15.1 when available. Ubuntu won't ...
Rud48's user avatar
  • 99
1 vote
0 answers
95 views

I am working on an embedded Linux system (kernel-5.10), and the cross GCC only supports -fsanitize=address for address sanitizer. Then I built a testing program with -fsanitize=address and -lasan. ...
wangt13's user avatar
  • 651
0 votes
0 answers
355 views

I'm trying to build GCC 12.4.0 on Oracle Linux 9.4 (sorry about that... not my choice of distribution), as a non-root user. So, I've downloaded and built my relevant prerequisites: gmp, mpfr, mpc, isl,...
einpoklum's user avatar
  • 11.1k
0 votes
0 answers
50 views

I am trying to use the cm3-unix64le-d5.11.1-20210610 from the Modula 3 github. i am running the .cpp file and I get a virtual memory exhausted: Not enough space error. I have 16GB of RAM and I'm ...
alex miranda's user avatar
1 vote
3 answers
2k views

I've been stuck on this issue for too long. Basically I have a node v20.x app that I'd like to run on a CentOS 7.9 server. For reasons, we do not wish to upgrade the OS now but I'm sure there must be ...
Z0q's user avatar
  • 631
0 votes
1 answer
120 views

There's a handful of programs like GCC that not only require two different passes when setting up LFS, but as is the case with GCC, it is also used for Libstdc++. When going thru this setting up for ...
watchy's user avatar
  • 71
2 votes
1 answer
331 views

I read in Advanced Programming in Unix Environment this: Line buffering comes with two caveats. First, the size of the buffer that the standard I/O library uses to collect each line is fixed, so I/O ...
SekstusEmpiryk's user avatar
0 votes
0 answers
162 views

I did a system upgrade on manjaro using yay -Syu. It appears it upgraded gcc to some experimental version. I tried reinstalling gcc13 but it didn't fix the problem: export LDFLAGS="${LDFLAGS/-...
Ben's user avatar
  • 101
0 votes
1 answer
408 views

On Debian 12 with KDE cat /proc/version returns: Linux version 5.10.0-17-amd64 ([email protected]) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 ...
mYnDstrEAm's user avatar
  • 4,980
2 votes
1 answer
595 views

I am trying to install the NVIDIA driver and Cuda toolkit but it expects gcc10. Using p2.xlarge which has Tesla k80. And Tesla k80 supports Cuda toolkit 11.4 (https://www.nvidia.com/en-us/drivers/). ...
PSKP's user avatar
  • 131
0 votes
0 answers
1k views

Coding newbie, I'm a researcher trying to get an air quality program to run. It requires GCC9.1.0, but during the make step I keep getting an error line: make[1]: Leaving directory '/home/(my name)/...
tmm's user avatar
  • 1
0 votes
1 answer
421 views

/* dlsym-main.c */ #include <stdio.h> void doSomething(char const *msg) { fprintf(stderr, "Main program is doing %s\n", msg); } void (*fnptr)(char const *) = doSomething; int ...
user3384486's user avatar
0 votes
2 answers
451 views

I need to get gcc compiler version 4.9.0 exactly for its standard library to use with specific version of intel compilers. I figured out debian 8 has almost the desired version of gcc. I made a ...
leboombum's user avatar
0 votes
1 answer
121 views

According to comments and accepted answers linked below, gcc and g++ are the same executable. Because they are the same, the value of argv[0] will determine behavior, whether the argument is "gcc&...
PhillNo's user avatar
2 votes
1 answer
195 views

If I compile a simple test program, I get environment symbols defined (and exported) in the executable itself: root@4ef8c4a55769:/# clang --version Debian clang version 11.0.1-2 Target: aarch64-...
Artefacto's user avatar
  • 255
0 votes
1 answer
294 views

I'm having a bit of trouble with compiling the Coral AI PCIe drivers for my Terramaster NAS. Terramaster support has been no use at all. However, one other user has managed to compile some modules to ...
Andy E's user avatar
  • 469
0 votes
1 answer
970 views

I've been trying to cross compile the source code to build GCC 12.2.0 for my RaspberryPi 4 B running Ubuntu 22.04. SO far I've tried doing this while configuring the project: ../gcc-12.2.0/configure --...
MetalAllegiance's user avatar
0 votes
0 answers
228 views

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

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
  • 651
0 votes
0 answers
413 views

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
  • 371
0 votes
1 answer
231 views

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
  • 651
0 votes
1 answer
176 views

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
  • 274
0 votes
0 answers
219 views

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 ...
Madagascar's user avatar
0 votes
2 answers
381 views

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
  • 7,540
0 votes
1 answer
3k views

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
5 votes
1 answer
2k views

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

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
6 votes
4 answers
15k views

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

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

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
  • 11.1k
0 votes
1 answer
261 views

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
1 answer
223 views

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
  • 450
1 vote
1 answer
407 views

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
  • 552
2 votes
2 answers
3k views

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

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

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
  • 791
1 vote
0 answers
162 views

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
4k views

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

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

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

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

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

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

1
2 3 4 5
16