Questions tagged [compiling]
Compiling is the process of transforming source code into byte codes for a particular computer architecture.
1,541
questions
0
votes
0
answers
16
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 ...
0
votes
0
answers
13
views
Cannot find mqic library when compiling Mqueue-sending C program
On our linux dev server for an application at work, we have an in-house C program called sendFile to, well, send files to the Mqueue. The program has seemingly not been changed since its creation in ...
1
vote
1
answer
17
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
0
answers
46
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 ...
0
votes
1
answer
74
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 ...
1
vote
0
answers
28
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
0
answers
24
views
How to compile and install PaPs software from Github onto LMDE 6?
I intend to install PaPs software from Github onto LMDE6. The webpage https://github.com/dov/paps/blob/master/INSTALL.md indicates dependencies, all of which are installed on the target system. I have ...
0
votes
1
answer
59
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
91
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
0
answers
21
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
75
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.
"...
0
votes
0
answers
11
views
can't install gmdb2 using macports on Sonoma
I can't install gmdb2 using MacPorts on Sonoma 14.4.1
I try
aladino@pc-23 ~ % sudo port install gmdb2
but I get
---> Computing dependencies for gmdb2
The following dependencies will be ...
3
votes
3
answers
132
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 ...
0
votes
0
answers
13
views
How to build Pagespeed PSOL binaries from source for ARM64 (aarch64) Raspberry Pi 4 on Ubuntu Server?
I am running Ubuntu Server 22.04 (aarch64) on my Raspberry Pi 4. It is a web server.
I am trying to build the Nginx Pagespeed Module for the Raspberry Pi 4 with modern PSOL binaries.
I have written a ...
-2
votes
1
answer
52
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
115
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
0
answers
66
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
23
views
Build Debian Kernel Package from particular commit with modified configuration
So far I figured how to build the kernel (I think) from the fork from particular commit as Raspbian OS .deb package. It's more less:
Clone the fork, switch to commit I want
Populate debian content ...
0
votes
0
answers
87
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
32
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
481
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 ...
0
votes
0
answers
62
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
70
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
216
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
104
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
126
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 ...
0
votes
1
answer
471
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
455
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
62
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
47
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 ...
0
votes
0
answers
9
views
How do build GNOME apps of a SLES15 machine with few/no GNOME development libs?
I want to build a GNOME-ish app on a SLES15 machine I'm working on. I can download the source, but the app relies on multiple GNOME-related libraries - for which I only have the libfoo packages, not ...
1
vote
1
answer
303
views
How can I build an older GCC version (8.5.0) on a newer Linux distribution (Devuan Excalibur/Debian Trixie)?
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: ...
0
votes
0
answers
157
views
Trouble in compiling GCC for LFS
I wanted to compile the LFS and in GCC-13.2.0 Pass 1 but in the make step i encourted the error
done
make[4]: Leaving directory '/mnt/lfs/sources/gcc-13.2.0/build/x86_64-pc-linux-gnu/libgcc'
make[3]: ...
0
votes
1
answer
104
views
gcc build error
when I configure gcc I got a error message
could anyone help me ? plz..
messages..
checking whether the C compiler works... no
configure: error: in `/home/kjs0625/gcc/gcc-13.1.0':
configure: error: C ...
0
votes
0
answers
38
views
Cannot compile critic2 using libxc. cmake says different compiler
$ cmake -DCMAKE_BUILD_TYPE=Release -DLIBXC_DIR=/usr/lib/x86_64-linux-gnu/libxc.so ..
-- A library with BLAS API found.
-- Could NOT find NUMDIFF (missing: NUMDIFF_EXE)
-- Found libxc (lib=/usr/local/...
0
votes
0
answers
135
views
Upgrading NVIDIA L4T (Linux 4 Tegra) GPU modules from 3.10 to Something Newer (Like 4.19 LTS)
I'm an owner of an ARM (armv7h) ChromeBook, in particular, it is the Acer ChromeBook 13 with an NVIDIA Tegra K1 GPU. I've recently have been successfully able to run Ubuntu 22.04 (Jammy Jellyfish) ...
1
vote
1
answer
241
views
Compiling GCC failed on Openbsd 7.4 (configure: error: .... libgomp)
I'm yak shaving: to compile gcc (especially with libgccjit for ultimately compiling emacs with native-comp) on openbsd 7.4.
The reason behind is libgccjit isn't available via pkg_add. Thus I'm trying ...
-1
votes
2
answers
586
views
glibc preconfiguration error: libc shouldn't be installed in /usr/local
.
.
.
checking for kernel header at least 3.2.0... ok
*** On GNU/Linux systems the GNU C Library should not be installed into
*** /usr/local since this might make your system totally unusable.
*** We ...
0
votes
0
answers
278
views
ld error with clangs when compiling vdso
i am trying to compile a kernel but it always return this error:
LD arch/arm64/kernel/vdso/built-in.o
ld.lld: error: cannot find linker script -r
make[2]: *** [scripts/Makefile.build:507: arch/...
0
votes
0
answers
97
views
How to compile and transplant samba-4.19.0 as small as possible?
I am compiling samba-4.19.0 on Debian12 and then porting the compiled content to other systems. At first, I wanted to compile it into a static executable file as much as possible, but I couldn't find ...
1
vote
0
answers
120
views
Behavior of running ldconfig with a directory argument
I have installed some shared libraries to the non-standard directory /usr/lib64/mylib. Then I run sudo ldconfig /usr/lib64/mylib. I can assert by running ldconfig -p that my libraries are indeed ...
0
votes
1
answer
706
views
Linux kernel build fails with sed: can't read modules.order: No such file or directory
I am trying to build Linux Kernel for the first time and I am facing below issue while trying to make modules_install
sed: can't read modules.order: No such file or directory
make: *** [Makefile:1483: ...
1
vote
2
answers
3k
views
Error building GCC 9: version `GLIBCXX_3.4.30' not found
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 ...
0
votes
1
answer
324
views
Shift the address in the hex file with Offset
I want to update the hexfile start address with offset. For example, i have a hex file name abc.hex and start with address 0x0000 to 0xFFFF. But I want to shift the context in the hexfile to the ...
0
votes
0
answers
224
views
LFS libstdc failed - make: *** No targets specified and no makefile found. Stop
I am on chapter 5 of LFS. I am trying to compile LibSTDC. After cd'ing into the build directory I created and running:
../libstdc++-v3/configure \
--host=$LFS_TGT \
--build=$(../config.guess) \
--...
0
votes
1
answer
144
views
How to update programs compiled from source (from Github)?
I'm using Debian 12. I recently followed this guide (https://stopanddecrypt.medium.com/running-bitcoin-lightning-nodes-over-the-tor-network-2021-edition-489180297d5#13c5) to install some software, and ...
1
vote
1
answer
226
views
building Debian package from Buster fails on Bookworm
I need to use older version of linphone on Debian 12.
The version in bookworm is 4.4.10-3, and I actually need 3.12.0, which is available in Buster.
On my bookworm build machine, I changed the sources,...
1
vote
1
answer
431
views
Linux build with custom config using all RAM (8GB)?
I am trying to compile the mainline Linux kernel with a custom config. This one!
Running on a 64 bit system.
At the last step, when linking the Kernel, it fails because it goes OOM (error 137).
[...]
...
1
vote
2
answers
3k
views
failed: load btf from vmlinux: invalid argument make on CONFIG_DEBUG_INFO_BTF=y
I just got the following error when compiling linux-5.14.2.tar.gz and patch-5.14.2-rt21.patch
on CONFIG_DEBUG_INFO_BTF=y:
AS arch/x86/lib/iomap_copy_64.o
arch/x86/lib/iomap_copy_64.S: ...
0
votes
2
answers
459
views
No rule to make target `scripts/extract-cert' when building Linux Kernel - Centos 7, devtoolset-9
I'm trying to debug my build environment for compiling a linux kernel with some patch sets.
I installed devtoolset-9 in my CentOS 7 environment to satisfy the minimum gcc version requirement of the 5....