Skip to main content

Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

0 votes
0 answers
52 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, ...
rustymanito's user avatar
0 votes
0 answers
12 views

getting libstdc++_libbacktrace in gcc-6 on Raspbian?

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
  • 578
0 votes
2 answers
42 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 ...
Vinod's user avatar
  • 167
0 votes
2 answers
136 views

Suggestions on Linux distro that allows updates ot C++ to latest compiler releases

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
51 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. ...
wangt13's user avatar
  • 591
0 votes
0 answers
149 views

Building GCC 12.4, I get: libisl.so.23: ... No such file or directory

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
  • 10.4k
0 votes
0 answers
35 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 ...
alex miranda's user avatar
1 vote
2 answers
678 views

How to run node v20.x on CentOs 7.9?

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
60 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 ...
watchy's user avatar
  • 71
0 votes
0 answers
59 views

avoiding __uint128_t in libc when cross compiling for 32-bit targets

I'm attempting to build a 32-bit toolchain in a docker container with an aarch64 architecture. I have explicitly called --without-long-double-128 in my first pass of gcc but glibc is failing compile ...
mreff555's user avatar
  • 131
2 votes
1 answer
190 views

Automatic flush of stream when reading input

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
80 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/-...
Ben's user avatar
  • 101
0 votes
1 answer
182 views

Why was gcc-10 used in Debian12? (cat /proc/version)

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,598
0 votes
0 answers
90 views

How to build gcc10 from source in Amazon Linux 2023? Getting version `GLIBCXX_3.4.29' not found

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
  • 121
1 vote
1 answer
321 views

How can I install gcc10 in amazon linux 2023?

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
  • 121

15 30 50 per page
1
2 3 4 5
51