Questions tagged [compiling]
Compiling is the process of transforming source code into byte codes for a particular computer architecture.
1,558 questions
1
vote
1
answer
39
views
Do I need to define an absolute path to be able to compile the DRM / Panfrost subtree code of JSM on the RockPro64 / Khadas Edge-V / RK3399?
I'm trying to compile the drm-subtree of JSM because I want to enable the panfrost driver on the RockPro64 / KHADAS EDGE-V / RK3399. The code is here:
https://github.com/jsm222/drm-subtree
He improved ...
0
votes
2
answers
85
views
Where (i.e. under what path) should we place non-root-user build files? [closed]
On a system I'm considering, there are multiple users. Users' home directories are mounted from some server on the network, which offers those same home directories to multiple machines (with the same ...
2
votes
1
answer
59
views
Error while building app qman from source with meson
I'm not used to build apps from source and when I do, it's not free from hiccups.
While trying to build the app qman, I was met with this error code:
[1/11] Generating src/config.h with a custom ...
1
vote
0
answers
42
views
How to convert project buildscript into debian package?
Attempting to package i3lock-color project for debian.
The project includes a build.sh script that successfully compiles the project. How could we convert these instructions into something to build ....
0
votes
1
answer
50
views
Unable Compile libubus, wpa_supplicant and hostapd for Armv7
Disclaimer: im not a linux expert and the only reason im posting is because i looked everywhere (hopefully) so please be gentle if you are going to flame me.
-Attempting to compile libubus, ...
1
vote
1
answer
53
views
dpkg-shlibdeps: missing symbols in libasteriskpj.so.2 [asterisk]
I’m trying to build Asterisk packages for Ubuntu 22.04 LTS, and I’m encountering the same issue with both version 22.4.x and 22.5.0. During the build process, I get the following warnings:
dpkg-...
0
votes
1
answer
118
views
Trying to compile a tinycore linux kernel leads to Error 2
EDIT 1 - Following instructions from : https://github.com/on-prem/tinycore-kernel
EDIT 2 - after trying make os, it fails giving an Error 2 compiler error. i know that it has something to do with the ...
0
votes
1
answer
116
views
Which GCC version to use for compiling Linux 5.4.1 to bzImage without strlcpy errors?
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>...
0
votes
1
answer
273
views
How much disk space is needed to compile a Linux kernel in a VM?
I just coded two system calls using the Linux 6.12.1 kernel, and I transferred the kernel to a Lubuntu virtual machine with 25 GB space (on Virt-Manager/KVM), but when I compile the new kernel, I get ...
0
votes
0
answers
143
views
NVENC encoder missing in OBS, AUR package fails to compile on Arch Linux
I have an Nvidia GeForce RTX 4090. I am trying to use the NVENC encoder on OBS. Currently, only the software option, x264, appears in the settings. I attempted to install NVENC using the AUR. However, ...
1
vote
1
answer
111
views
How do I build a statically linked copy of xz-utils?
I'm trying to build a statically linked copy of xz-utils, such that the xz do not have dependencies on libc.
I tried the usual way, which is to set LDFLAGS=-static, and works for most other packages ...
1
vote
0
answers
126
views
Cannot compile kernel modules on TrueNAS Scale
I have a Ugreen DXP 6800 Pro and the OS disk died. No actual NAS data was lost but I cannot figure out how to get the OS back to the same state. I was previously able to compile modules and add them ...
0
votes
2
answers
52
views
Recompiling my custom kernel and my .config is set to old config every time
I am trying to recompiling my kernel. I did a small change in drivers/media/usb/uvc/uvc_driver.c and put a pr_info() only to see in dmesg if its working.
I changed the .config file too in ...
-1
votes
1
answer
50
views
What packages will be upgraded after upgrading from Ubuntu 16.04/20.04 to 22.04?
Our IT suggests we upgrade the Ubuntu 16.04/20.04 VM to Ubuntu 22.04 since Ubuntu 20.04 will be EOS after April 2025.
Because we use the VM to build the code and the package compatibility is important ...
0
votes
1
answer
105
views
How can I compile fdisk for UEFI shell
I am hoping someone would be able to help me with the following. I have been trying to compile fdisk for UEFI shell the files are provided at
https://sourceforge.net/projects/uefi-fdisk/
as per the ...
0
votes
1
answer
68
views
how does Visual Studio Code resolve includes & macros for autocomplete & build?
If using only the C/++ Extension from Microsoft in Visual Studio Code, then how does preprocessing of includes & macros for autocomplete work? Many include headers (such as sys/statvfs.h), depend ...
0
votes
0
answers
31
views
How to set new features to N during kernel compilation from an old .config file?
I am compiling a custom linux kernel for a compute cluster. The cluster is currently running on kernel version 4.4.47 since last 5 years. I need to upgrade the kernel to a more recent version. I've ...
0
votes
0
answers
186
views
How can I get libc-client.so.2007?
I downloaded the source code for UW-IMAP/imap-2007f_upstream from the URL below.
https://github.com/uw-imap/imap/archive/refs/tags/imap-2007f_upstream.tar.gz
I compiled it, but libc-client.so.2007 was ...
0
votes
0
answers
46
views
Running py2debi for ffsubsync, I get: "No such file or directory: 'requirements.txt'"
I'm trying to follow the advice here:
Install a Python package on Debian/Devuan when apt has no package for it
and create a Debian/Devuan package for the ffsubsync Python package. All the dependencies ...
0
votes
2
answers
442
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 ...
0
votes
0
answers
341
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,...
0
votes
1
answer
797
views
Is it possible to build an up-to-date version of the g++ (14/13) on Raspberry Pi running Debian 12 arm64?
I am puzzled. There is seemingly no newer Debian image for Raspberry Pi than the current stable version 12 (bookworm). I have downloaded and installed it just when it went out without issues, I ...
0
votes
0
answers
78
views
Passing Makefile Variables into Kernel Modules
I'd like to grab information from the shell and pass it into a kernel module through the makefile. I can do this with user space programs using -D.
Is there a similar mechanism for kernel modules? For ...
0
votes
0
answers
73
views
Getting these make command errors while compiling an android kernel
──(root㉿kali)-[~/Documents/kernel-source-alioth-stock]
└─# make -j2 CC=clang O=output/ $config
make[1]: Entering directory '/root/Documents/kernel-source-alioth-stock/output'
....
HOSTLD scripts/...
0
votes
0
answers
232
views
Setting up OpenPrinting CUPS and brlaser on Raspbian
I have a Brother HL-L2300D monochrome laser printer I'm trying to interface with a Raspberry Pi as a print server. Using Apple CUPS 2.2.10-6+deb10u7 and printer-driver-brlaser 4.1 from APT, the ...
0
votes
0
answers
96
views
(How) can I set source path (in debuginfo) when building debian package
I need debuginfo for some libraries, for example gstreamer (which are not available in debian repo), but can be built using source packages. However it turns out that the source paths in the debug ...
1
vote
1
answer
239
views
Building Kernel - Invalid Symbol Value
I'm building a customized OpenWRT image for a Teltonika RUT241 Modem/Router. My build is based off the 'SDK' from the manufacturer with a few extra addons.
When I build it on my local development PC (...
0
votes
1
answer
246
views
Updating GRUB; ./configure doesn't make a makefile. Step 5 of INSTALL guide missing?
I am trying to update GRUB from 2.06 to 2.12, following the instructions in the INSTALL textfile included in the tarball (and at the bottom of the post). I am missing some dependencies, so I run:
sudo ...
1
vote
1
answer
662
views
Compling kernel in CentOS 9
When I was compiling kernel I faced with this error:
** No rule to make target 'certs/rhel.pem', needed by 'certs/x509_certificate_list'. Stop.
I ran these commands:
scripts/config --disable ...
2
votes
1
answer
176
views
when is the environ symbol defined in the executable?
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-...
0
votes
1
answer
277
views
Compiling kernel modules for a Terramaster NAS
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 ...
0
votes
0
answers
223
views
Linux From Scratch 12.1 GCC testsuite failing and timing out
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, ...
0
votes
1
answer
104
views
Problem adding onnxruntime python package to a yocto build
I'm trying to add the meta-st-x-linux-ai to my yocto build setup so that I can have the onnxruntime python package available on my linux, but I get the following errors :
Notice that all my layers ...
0
votes
1
answer
308
views
CMake error: In the make step, compiler is unable to see header file that does exist. Exporting pasth to CPATH doesn't help
On Pop!_OS 22.04 LTS x86_64, I am trying to install libLAS-1.8.1 from source (downloaded as a targz2)(as a dependency of ESRI - 3DForests. I am following the official? tutorial but am stuck.
"...
3
votes
3
answers
678
views
Global vs package specific USE — best practice
I'll be installing Gentoo for the first time and as a preparation I am crawling Gentoo wiki for packages I'll need and what USE flags those packages use.
What I am not sure about is at what level I ...
-2
votes
1
answer
130
views
Where is meson? build-essential or python3, python3-pip, python3-setuptools, python3-wheel, ninja-build packages are installed but it isn't here
According to installation guides, having executed on my Debian 12:
sudo apt-get install python3 python3-pip python3-setuptools python3-wheel ninja-build
sudo apt install build-essential
meson should ...
3
votes
1
answer
256
views
Is there any way to compile C++ code by g++ without any disk-writing? [closed]
I have a special Linux environment: all files and folders are read-only and G++ is installed. I am also unable to run sudo. I can just run a C++ program on it. I want to compile another piece of C++ ...
0
votes
1
answer
265
views
Calculation of relocation address; ELF
I am learning about the relocation from the ELF reference and this blog, but I can't get my head around calculating the relocation address.
Suppose we have two files A and B of type ET_REL, we want ...
0
votes
0
answers
202
views
Failure to bootstrap GCC 13.2
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
...
0
votes
1
answer
57
views
drm-kmod-20220907_2 not supported for this configuration / NVIDIA : Failed to initialize the NVIDIA kernel module
I need to conduct some tests on top of the FreeBSD 13.1.
So,I've installed it on one of my disks. I've installed xfce4 and KDE,Xorg and from the ports (after having upgraded them).
I've installed the ...
1
vote
1
answer
2k
views
Makefile:12: *** missing separator. Stop [duplicate]
In trying to compile my makefile, I keep getting the same error message repeatedly:
Makefile:12: *** missing separator. Stop
I've removed the tabs, removed the spaces, deleted the makefile entirely ...
1
vote
0
answers
131
views
What safety CFLAGS does the Linux kernel use?
I have seen it said that the Linux kernel is built with -fwrapv to define signed integer overflow as wraparound, potentially sacrificing a tiny bit of performance in return for preventing the ...
0
votes
1
answer
119
views
CentOS 7.9 not reporting full version number after recompiling kernel
I needed to enable SCSI support in CentOS 7.9 so I followed the instructions here:
https://wiki.centos.org/HowTos(2f)I_need_the_Kernel_Source.html
to add SCSI support and recompile, which worked as ...
0
votes
2
answers
358
views
I'm Using Distribution $X That was shipped With Compiler $Y, but I Need Compiler Version $Z
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 ...
1
vote
1
answer
205
views
ADCIRC - Cannot find -lhdf5_fortran: No such file or directory
Trying to compile ADCIRC, a Fortran program with NetCDF support, and I hit the following error.
/usr/bin/ld: cannot find -lhdf5_fortran: No such file or directory
collect2: error: ld returned 1 exit ...
0
votes
1
answer
414
views
Help with Makefile for C program
I'm trying to generate a new library that includes another one I have created previously.
In my current folder I have my source files inside a src folder and my headers inside an include folder.
This ...
1
vote
1
answer
1k
views
How to install SAGA GIS 9.3.0?
I need to install SAGA GIS for some interpolations. Sadly, sudo apt-get install saga will only install version 7.3.0, but I need version 9, preferably 9.3.0.
The SourceForge repo doesn't contain Linux ...
0
votes
1
answer
1k
views
Difficulty resolving "fatal error: charconv: No such file or directory"
I am having difficulty resolving the error below:
$ g++ -std=c++17 -fno-exceptions -Wno-deprecated-declarations -DHAVE_CONFIG_H -I./../include -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.cc ...
0
votes
0
answers
110
views
configure: error: C compiler cannot create executables ERROR on FreeBSD 14.0-RELEASE
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/...
0
votes
1
answer
58
views
Error "undefined reference to" when building package seafile-client on manjaro
My seafile-client on Manjaro stopped working. So, I removed it and tried to reinstall it. However, when I tried to build the seafile-client from AUR, the installation always aborts. The installation ...