Skip to main content

Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

Filter by
Sorted by
Tagged with
3 votes
0 answers
60 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
4 votes
2 answers
853 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
0 answers
114 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
2 answers
150 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
1 vote
0 answers
84 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
44 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
0 votes
1 answer
105 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
0 votes
0 answers
159 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
2 votes
1 answer
576 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
1 answer
409 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
1 answer
105 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
0 votes
1 answer
277 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
0 answers
223 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
0 answers
397 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
157 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
2 answers
358 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
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
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
1 vote
1 answer
867 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
212 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
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
0 votes
1 answer
209 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
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 vote
1 answer
404 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
1 answer
716 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

1
2 3 4 5
16