227,072 questions
Score of -5
1 answer
114 views
How does ldd select which lib.so file to load?
On my computer I have 2 libraries with the same name - one is proprietary and one is open source.
In my project I explicitly link to the open source one, however during the runtime the other one loads....
Score of 2
1 answer
81 views
What is the minimal LLVM/Clang directory structure needed to compile C and C++ on Linux?
I downloaded the prebuilt LLVM/Clang binaries from the official GitHub Releases page. After extracting the archive, it occupies more than 11 GB of disk space.
I only need Clang to compile C and C++ ...
Advice
1
vote
4
replies
66
views
Is __vmalloc(size, GFP_NOWAIT) really guaranteed not to sleep?
I'm working on a kernel module where I need to allocate a few gigabytes of memory. I want the allocation to fail rather than sleep if it cannot be satisfied immediately.
However, I haven't been able ...
Score of -4
1 answer
76 views
Change naming scheme for copied files [closed]
This question is for Linux Mint 22.1 (Ubuntu 24.04) specifically but it may apply in general.
When a file is copied and pasted into the original directory, the new files are named with the following ...
Score of 0
0 answers
88 views
Flutter application won't relaunch after Gdk-Message: Unable to load from the cursor theme on WSL
I'm running Windows Subsystem for Linux (WSL). There I run Visual Studio Code (VSC).
C:\Users\user>wsl --version
WSL: 2.6.3.0
core: 6.6.87.2-1
WSLg: 1.0.71
MSRDC: 1.2.6353
Direct3D: 1.611.1-...
Advice
0
votes
9
replies
180
views
How can I create a Linux Container in C?
I was looking for something fun to do in C and I saw this one post where someone made a Linux Container in C. Now, I didn't know much about containers (I've used a little bit of Docker before).
From ...
Score of -1
0 answers
38 views
Perf records corrupt traces when running from a Bun scripts
I'm trying to run perf from my Bun script on Ubuntu to record a trace. The problem is if I'm using the SIGKILL signal, the trace come out corrupt. So I need to use the SIGINT signal. But when I do so, ...
Tooling
1
vote
4
replies
192
views
cant find arc and csky compilers
I’m looking for working versions of csky-gcc and arc-gcc (synopsys arc700) toolchains for Linux.
I’ve already tried building the csky compiler from GitHub, but the build process takes several hours ...
Score of -3
0 answers
79 views
why are there 2 ELF note formats and one of them is undocumented?
https://man.archlinux.org/man/core/man-pages/elf.5.en#Notes_(Nhdr) and https://netbsd.org/docs/kernel/elf-notes.html describe only 1 note format (I will call it format 4):
uint32 name_size;
uint32 ...
Advice
0
votes
2
replies
86
views
My CPU usage is more than 100% showing in htop
Check screenshot of image
I am using Debian in GCP. I was testing my own application to check how much RAM and Storage is uses. To check that I used htop and my application was using more than 100% ...
Score of -1
1 answer
96 views
SAS - IMS in Linux [closed]
I am trying to send IMS records from Mainframe to Linux and process using SAS.
But when i read the file using SAS it shows the minimum record length was 6 and maximum was 800 whereas in mainframe ...
Best practices
3
votes
2
replies
124
views
how to protect PC against supply chain attacks?
Trying to hear about different patterns/methods users protect their systems against opportunistic supply chain attacks on their PCs, not servers.
One major exposure that I -- and I assume many others -...
Score of 1
1 answer
124 views
"Could not find a version that satisfies the requirement libfreenect (from versions: none)" when trying to download libfreenect with pip
I am following instructions on how to install gravbox v1.0. In the instructions, it says to download several python packages, which all worked except for libfreenect. libfreenect instead gave an error ...
Advice
0
votes
18
replies
356
views
Do C++ projects break when trying to launch on other distros?
I'm making a C++ project on Linux Mint, which is based on Ubuntu, which is based on Debian.
If I, for example, run this on Manjaro Linux, which is based on Arch, would this run on it?
I know, rookie ...
Score of 2
0 answers
162 views
Why are my gettext translations not appearing?
I am learning gettext and trying to use it from first principles (no make files, configure.in files etc).
I have this C program.
#include <locale.h>
#include <libintl.h>
#include <stdio....