Questions tagged [compiling]

Compiling is the process of transforming source code into byte codes for a particular computer architecture.

Filter by
Sorted by
Tagged with
2 votes
1 answer
14 views

Remake included makefile only when needed

Let's say that I have a Makefile that has two “main” targets: foo.o and clean. The former one has a recipe to create the foo.o file. The latter one removes all the temporary files. To remove the need ...
user avatar
  • 772
0 votes
0 answers
27 views

Windows 10 error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1 [migrated]

I am struggling to fix error: linking with 'x86_64-w64-mingw32-gcc; failed: exit code: 1, I have installed TDM-GCC-64 and Cygwin and added them to PATH as well as updating the c++ 2019 redistributable....
user avatar
2 votes
1 answer
54 views

Existing .so file cannot be loaded even though it exists, seems to depend on Docker host OS

I have built Qt6 in an Alma8 based Docker container, with the Docker host being Fedora 35. Under some circumstances (described below), all Qt libs cannot load libQt6Core.so[.6[.2.4]]. But that file ...
user avatar
0 votes
1 answer
10 views

KASAN config in 32 bits architecture?

I am trying to compile linux kernel (version 4.4) with KASAN support on a 32 bits machine, but i can't enable it. It seems that it depends on 64 bits architecture only. So my question is about the ...
user avatar
  • 17
0 votes
0 answers
27 views

How to build the kernel correctly on its tinyconfig configuration?

I have A68N-5600E motherboard. Through the Live Linux image, I got a list of downloaded modules for this PC. amdgpu gpu_sched joydev radeon i2c_algo_bit drm_kms_helper ahci crct10dif_pclmul ...
user avatar
0 votes
1 answer
39 views

How to set a new version number in a .deb package I've built

I've just completed a simple source code modification & rebuild on a Raspberry Pi OS - bullseye machine. Because this is new to me, I'll list the steps I followed in an effort to avoid ambiguity: $...
user avatar
  • 2,079
1 vote
1 answer
38 views

Can't compile Kernel module with KBUILD_CFLAGS_MODULE

I'm having trouble to compile kernel modules with KBUILD_CFLAGS_MODULE with new kernel. The compiler shows me a weird error. Such builds used to work with my older kernel (5.5) but does not work ...
user avatar
  • 133
0 votes
0 answers
71 views

Ubuntu 21: Compiling BT module gives compilation errors

Sorry for the incomplete title, not sure what should be the exact one. I am trying to compile the bluetooth module from Kernel 5.17-rc4, and I am running: uname -r 5.4.0-99-generic I want to compile ...
user avatar
0 votes
0 answers
33 views

Compressing AMD graphics include directory "asic_reg" saves up to 230MB Linux Kernel storage size. Can cloned downloads be partly unpacked by git?

Cloning a current kernel (e.g. 5.17-rc1 ) to a source directory requires around 1.4GB and a total of 2GB (debug kernels up to 4GB) free storage for compiling a default kernel configuration. While AMD'...
user avatar
0 votes
0 answers
58 views

cmake unable to find CC

I am newbie in Linux, I am using WSL ubuntu 20.04. I am trying to build a project using cmake file. I am getting following error:- CMake Error at /usr/local/share/cmake-3.20/Modules/...
user avatar
  • 458
1 vote
1 answer
45 views

Build Linux Kernel with randomized struct fields

I'm attempting to build the Linux Kernel (version 5.16). I know that there's a compile-time option to randomize various structure fields (indicated by macros like randomized_struct_fields_start). ...
user avatar
0 votes
0 answers
19 views

LaTeX pdf screen not appearing and pdf file not compiling after removing /usr/local

I'm running on macOS Big Sur 11.4. Recently, I wasn't able to compile R packages properly, so it was suggested to me to remove all file from /usr/local via sudo rm -rf /usr/local/* Now my packages ...
user avatar
0 votes
1 answer
177 views

Recompile kernel after editing .config in Debian

TL;DR: Once I already compiled the Linux (Debian) kernel with "make deb-pkg", how to generate a new one after minor changes in .config? Hello, I'm trying to compile the kernel following ...
user avatar
0 votes
1 answer
113 views

How to download and compile source code from Fedora

There is an very old game (named "six") that is still available on Fedora as package six.x86_64 that I want to use in a hobby project of mine. I have more recent source from the original ...
user avatar
0 votes
1 answer
23 views

as .*s does not work like gcc .*c

when i run gcc -c *.c, it runs:- gcc -c file1.c -o file1.o gcc -c file2.c -o file2.o gcc -c file3.c -o file3.o ... but as *.s runs:- as file1.s -o a.out as file2.s -o a.out as file3.s -o a.out ... ...
user avatar
0 votes
1 answer
136 views

How do i install atinout on linux

I am new to linux and ran into this issue. I am trying to run USSD commands and i was recommended to use atinout, however checking from their page, I can;t seem to find how to install it. I downloaded ...
user avatar
0 votes
1 answer
78 views

Using checkinstall in place of sudo cmake?

I've been trying to compile digikam and as part of that process needed to compile jasper. Jasper developers use cmake, I wanted to make a .deb package -- in fact was trying to learn how to make a ...
user avatar
  • 333
0 votes
0 answers
39 views

what are the kernel options for usb console debugging?

I would like to attach an USB to Serial Adapter on my laptop to read out the errors while putting the computer into suspension mode. I am on Pop!_OS, so the closest instructions I could find where in ...
user avatar
  • 161
0 votes
1 answer
29 views

media-libs/libogg package won't install because lack of certificate

Intro/Context - https://ibb.co/8jkBNLy. What I am trying to do: I want to install kde-plasma desktop enviroment, on my gentoo machine that works only in text mode now. emerge --ask kde-plasma/plasma-...
user avatar
2 votes
2 answers
105 views

What's the correct format for MAKEFLAGS when using Fish shell?

To improve compile times, the Arch wiki states, Users with multi-core/multi-processor systems can specify the number of jobs to run simultaneously. This can be accomplished with the use of nproc to ...
user avatar
1 vote
1 answer
95 views

How does apt keep track of BUILD (source) dependencies?

I want to download all (recursive) build dependencies to be able to build apt (debian) package from source. However, when I apt-get install path/*.debs with debs that I got by apt build-dep --download-...
user avatar
3 votes
2 answers
1k views

Export Multiple LDFLAGS, CPPFLAGS, PKG_CONFIG_PATH in a zshrc File

In my .zshrc file I have existing exports for OpenSSL. export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include" export ...
user avatar
0 votes
0 answers
104 views

Undefined reference to libraries while building

I am trying to install tgs2apng in Ubuntu on WSL. As instructed I installed the 3 libraries- rlottie, libpng and apngasm. However When I run make I get undefined references to rlottie and apngasm Here'...
user avatar
2 votes
1 answer
145 views

how to compile linux 0.01?

as i came across recompiling the linux kernel, i got a bit interested in the topic. so to go more deep and observe the output, i downloaded the linux kernel 0.01 from github (https://github.com/...
user avatar
0 votes
1 answer
34 views

How to compile graphicsmagick with webp support

So I'm trying to compile graphicsmagick with webp support... I've run yum install libwebp libwebp-dev I've added the libwebp.a library from google. And I add the --with-webp flag to the ./configure ...
user avatar
0 votes
0 answers
61 views

I cannot compile gnome-calculator

I have a problem with my compilation process of gnome-calculator. The ninja doesn't detect libhandy which is installed, and it's in /usr/include folder. ninja: Entering directory `build/' [1/22] ...
user avatar
  • 9
-2 votes
1 answer
101 views

How do I install NodeJS on GuixSD?

How do I install NodeJS on GuixSD?
user avatar
1 vote
1 answer
45 views

Unable to build Linux kernel module out of static driver code

I am trying to build a kernel module (.ko) out of a driver that doesn't have module configuration by default. I want to avoid having a built-in driver because I get firmware loading errors. I did the ...
user avatar
0 votes
0 answers
19 views

Building SAC 101.6a

Has anyone tried to build Seismic Analysis Code? http://ds.iris.edu/ds/nodes/dmc/software/downloads/sac/ I am trying to build SAC 101.6a, but getting gcc -I/home/hagbard/Opstk/src/sac/sac-101....
user avatar
  • 31
0 votes
1 answer
38 views

Compilation order when cross compiling Linux

I've been following the Linux From Scratch book and just need to fill some gaps in my understanding of cross compiling Linux. Where a toolchain has already been built for the target machine, is the ...
user avatar
  • 101
0 votes
0 answers
17 views

I want to package up a multistage install. How can I track file system changes for dependancies?

Here is my scenario. So I'm using Make/CMake and Apt-get. What I want to build is a suit of packages 2600hzORG. its open source but for a new admin like me its has been a bit of a nightmare. The ISO ...
user avatar
  • 101
0 votes
0 answers
60 views

how to compile and run on different Linux (Debian) versions

Compiled on debian 10 with gcc 8.3 : root@debian:/home/mongo# ldd /home/mongo/build/opt/mongo/db/mongod linux-vdso.so.1 (0x00007ffe9f1c0000) libcurl.so.4 => /lib/x86_64-linux-gnu/...
user avatar
0 votes
1 answer
53 views

Using PKGBUILD to build after hacking/changing sources?

I'm trying to hack a MSYS package, so I found https://www.msys2.org/wiki/Creating-Packages/ - as an example: git clone "https://github.com/msys2/MSYS2-packages" cd MSYS2-packages/flex ...
user avatar
  • 360
0 votes
0 answers
28 views

Set up a container for building (or developing) an application

The short version: How do I set up a container where I can build something from source, with its code, tools, dependencies, etc. isolated from the rest of the system? The long version: So let’s say I’...
user avatar
0 votes
0 answers
381 views

Compile error DSO missing from command line

I am trying to install TraceR, and I am getting the following error. make[1]: Leaving directory `/g/g92/bhowmik1/installTF/TraceR/tracer/elements' mpicxx -g `otf2-config --ldflags` p2p-events.o coll-...
user avatar
  • 35
0 votes
1 answer
250 views

Add multiple options in cmake flag in a shell script and run the shell script

I want to run a set of commands from a bash script. How ever I don't know how to put the quotation in a bash script. The following is the bash script which I want to run, how ever in the cmake -...
user avatar
  • 35
3 votes
2 answers
181 views

How to put multiple -I, -L and -l flags in ./configure?

I am trying to build using ./configure. I have Three include directories -I/path1/include -I/path2/include -I/path3/include Two link directories -L/path1/lib -L/path2/lib Two -l flag options -...
user avatar
  • 35
0 votes
1 answer
424 views

stdint.h: no such file or directory

I am trying to compile coremarks to benchmark one of my CPU cores I generated (from here: https://gitlab.com/incoresemi/core-generators/benchmarks/-/tree/master). I get the following error: In file ...
user avatar
0 votes
1 answer
60 views

Is it possible to prepare an environment that the application will see as having more cores, the ones of other LAN hosts for distributed/parallel?

I have 4 PCs, they all are 8+ years old. I can connect them all thru LAN cable or WIFI. I will run it from my desktop PC. I was trying to read about parallel but there seems to have a lot of confusion ...
user avatar
0 votes
1 answer
307 views

v4l2loopback installation. Not working on 5.14 kernel

Running the 5.14.1 kernel. Tried using this repo to install v4l2loopback by compiling and installing(make; make install). It reported success. As per this recommendation, installed the 5.14.1 headers ...
user avatar
3 votes
1 answer
72 views

building Debian package without associated packages that are bundled together

When I am building a debian package, often many related packages that are bundled together are being build, and also the foo-dbgsym-* versions and foo-doc packages. For example, even relatively simple ...
user avatar
1 vote
1 answer
62 views

Remove all traces of D-Bus when running Mousepad in Debian

I am trying to rebuild Debian package mousepad without D-Bus on Debian 10. First, I try building the package without any change. apt-get source mousepad cd mousepad-0.4.1 dpkg-buildpackage --build=...
user avatar
0 votes
2 answers
940 views

ldd returns "not a dynamic executable"

I have compiled binaries on my computer with GCC 4.9.1 and transferred them to the server I want to run them on (on which I don't have the required permissions to install packages, so I can't install ...
user avatar
1 vote
2 answers
34 views

Determine the emplacement of a shared library dependence at compile time

Is it possible to tell at compile time a binary to be built the paths where a given library is going to be found at runtime? For example, when I link against a shared library in a non-standard ...
user avatar
0 votes
0 answers
24 views

Why showing the dynamic library path to both the linker and the loader

To build and run an application in .cpp, I understand that the linker and the loader both need to know the path to the dynamic library (lib*.so). But, since in the linking steps the dynamic library is ...
user avatar
  • 1
0 votes
1 answer
60 views

Installing different C compiler messed up system header files

Today I installed scc, which is a different C compiler. (Link) After realizing that scc was not mature enough for my use, I uninstalled it. Installing scc apparently replaced many C header files such ...
user avatar
0 votes
1 answer
72 views

Build package for debian stable on old-stable

I'm running Debian Buster where I build some packages with the devscripts package. I want to build these packages for the current stable Debian release (bullseye) without upgrading my system. I'm not ...
user avatar
  • 3
0 votes
1 answer
81 views

Properly compile OpenDKIM on Alpine

Background Hello, OpenDKIM is available on the official apk repository, but does not include important configuration flags I need such as --with-odbx and --with-sql-backend. I was able to compile it ...
user avatar
  • 123
0 votes
0 answers
59 views

Unable to link Postgres libraries while compiling PHP

I am attempting to compile, make and install PHP 7.3.27 alongside Apache 2.4.39 using this set of commands: ./configure --enable-fpm --disable-fileinfo --enable-bcmath --enable-calendar --enable-...
user avatar
  • 183
2 votes
1 answer
774 views

How do I install the driver of Medaitek RT3070 in Debian Linux?

I didn't understand the build instructions and the "make" command returns errors: ┌──(**mohammedmehditber㉿DESKTOP-U9KKGTJ**)-[**~/Downloads/DPO_RT5572_LinuxSTA_2.6.1.3** _20121022] └─**$** ...
user avatar

1
2 3 4 5
29