Questions tagged [gcc]
Questions regarding GNU Compiler Collection Suite.
756 questions
3 votes
0 answers
60 views
Problem with xcb with shm and image = it works fine [closed]
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/...
4 votes
2 answers
853 views
Compiling stand-alone function binaries from the Linux kernel
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 ...
0 votes
0 answers
114 views
ldd not showing actual shared libraries address
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, ...
0 votes
2 answers
150 views
cc/gcc -R flag to linker
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 ...
1 vote
0 answers
84 views
Weird behavior: Does libasan consume system memory constantly in Linux?
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. ...
0 votes
0 answers
44 views
Solaris 10 g++ virtual memory exhausted
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 ...
0 votes
1 answer
105 views
Do I need to extract a source tar file for each pass in LFS, or does creating a seperate named "build" folder suffice (like "build", "build2")?
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 ...
0 votes
0 answers
159 views
cannot install yay -S --noconfirm bambustudio-git after yay -Syu to local/gcc 14.2.1+r134+gab884fffe3fc-1
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/-...