Questions tagged [compiling]
Compiling is the process of transforming source code into byte codes for a particular computer architecture.
1,490
questions
0
votes
0
answers
21
views
Can data be recovered from a directory wiped out by a compiler's install task?
I cloned gradle from https://github.com/gradle/gradle and worked on building it on linux x86_64 (Fedora 37). I did not modify any of the configuration files. As gradle finished building, it erased/...
0
votes
0
answers
25
views
Can't find `C/C++: gcc build and debug active file`, when trying to compile C program in vscode classic on manajro
When I click the arrow button:
I get these options:
I'm looking to get the C/C++: gcc build and debug active file option.
This is a freshly installed manjaro and vscode.
Vscode was installed via ...
-1
votes
0
answers
77
views
How to locally read and write a C file [migrated]
How can I read and write a C file locally?
I want to be able to input from a file and output to a file locally in ArchLinux. I'm using GNU Emacs text editor to write my code and I'm submitting my ...
0
votes
1
answer
20
views
BlockSolve.o Error in Makefile
I am trying to run Enzo Project simulation and have followed the steps listed on the website here: https://enzo.readthedocs.io/en/latest/user_guide/bootcamp.html . I have been getting an error and ...
0
votes
1
answer
25
views
gcc doesn't find output fine and therefore cannot compile my c program (vscode)
As the title suggests it is the output file it cannot find, not sure why this is an issue here is my c_cpp_properties.json:
{
"configurations": [
{
"name": &...
0
votes
1
answer
24
views
Uploading compiled .tex file (.pdf) to the root repo in Gitlab
I need your help with the following problem. I'm trying to compile a .tex document in GitLab and put my compiled .pdf file in the root repo. I have created a .gitlab-ci.yml file which has the ...
0
votes
0
answers
23
views
How to build kernel after modifying specific files?
I'm new in kernel development and I modified two kernel files for a research project. Now, I already know how to do a fresh building of the kernel source code and that is what I did. I'm asking if I ...
0
votes
0
answers
130
views
How fix "No rule to make target 'arch/arm64/boot/dts/kona-rumi.dtb', needed by '__build'. Stop
Previously, I had the same error related to the file: arch/arm64/boot/dts/qcom/apq8016-sbc.dtb, but I solved it by deleting the line subdir-y += qcom from the arch/arm64/boot/dts/Makefile.
Now a new ...
0
votes
0
answers
114
views
unrecognized option '-EL'
I'm trying to build an android kernel.
On every build I get a few errors:
/usr/bin/as: unrecognized option '-EL'
clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)
...
0
votes
0
answers
51
views
Nvidia GPU driver won't compile from RPM
I recently update from OpenSuSE 15.3 to 15.4 including a GPU update to be able to use the new drivers (beyond version 490). Since this upgrade the kernel module is not updated by any RPM base install. ...
0
votes
1
answer
17
views
Using same unpacked tarball to configure to install software into multiple different spots on server
Working on rebuilding some AWS linux servers. I see my company's server has Apache Portable Runtime (APR) downloaded within our Apache webserver instance as well as Tomcat.
What are the implications ...
0
votes
0
answers
23
views
RHEL 9 stuck trying to compile LXapearance. gtk +- 2 not found 2.12.0 installed (i think)
hello so my configure file yields me the following result.
configure: error: Package requirements (gtk+-2.0 >= 2.12.0 gthread-2.0) were not met:
Package 'gtk+-2.0', required by 'virtual:world', ...
0
votes
1
answer
78
views
./<filename> No such file or directory
I'm trying to run a binary. But when I'm trying to run the file I'm facing the following error.
pegasus@pegasus:~/Documents/Courses/heaplab-main/house_of_force$ ./house_of_force
bash: ./...
2
votes
0
answers
67
views
build Debian package "chromium 108" on Debian Buster
I am trying to build chromium 108 for Debian Buster. The package only exists for Debian Bullseye, so on my Debian Buster build machine, I need to change the /etc/apt/sources.list to bullesyse and ...
0
votes
1
answer
135
views
what target flag should I set to cross compile arm 32 bit code in gcc?
I'm trying to build a cross compiling build server for some 32 bit arm devices, where the architecture is:
(from uname -m) "armv5tejl"
I have to specify the target for binutils, and gcc, ...
0
votes
1
answer
26
views
Cmake on Linux Lite 3.6
I am trying to build "Transmission" on my machine with Linux Lite v3.6, but cmake is needed. Successfully installed it with sudo apt install cmake, but it installed only cmake 3.5.1. And ...
-1
votes
1
answer
58
views
Relocation error when running NTPv4 (cross-compile) on ARM device
The error message I am getting when running ntp-keygen (or ntpd) on my ARM device is:
./ntp-keygen: relocation error: ./ntp-keygen: symbol DSA_generate_parameters_ex, version OPENSSL_1_1_0 not defined ...
0
votes
1
answer
70
views
my clock doesnt work
My RTC clock doesn't work, on a particularly old piece of hardware, with equally old software. this messes with various processes like /proc/stat and ps, but it also throws errors ever time I try to ...
1
vote
0
answers
65
views
I need help building a kernel
I have some TS-7600 single board computers and I want to recompile the linux kernel to version 3.14 where I will gain some easy of use for the hardware clock, and compatible devices.
There is a ...
0
votes
0
answers
12
views
Freeswitch compiling code
I need to change some behavior in sofia stack under freeswitch , for that we need change C code under sofia stack module , I'm looking for procedures to validate my changes without compiling all ...
1
vote
1
answer
37
views
How to provide library path to ./configure script
I was trying to install a library called Openslide which failed during the ./configure step because it could not find a dependency (libjpeg).
I thought I would proceed to build libjpeg and then ...
0
votes
1
answer
61
views
Why compiling Fortran code with include is different from #include?
I can't understand why including a text file that contains some C lines in a fortran77 code gives me a warning if I do not use #include. I wrote an example of a code that is supposed to read some text ...
0
votes
2
answers
634
views
What are the Xlib header files and how can I install them?
Wanted to try out st terminal. In the Requirements section in its README:
Requirements
------------
In order to build st you need the Xlib header files.
What are 'Xlib' & 'Xlib header files'?
...
-2
votes
4
answers
178
views
How to disable GUI when compiling the linux kernel?
So I'm compiling the 6.0.3 kernel in Debian 11, and I've been given the task of getting the smallest kernel possible that boots and has Internet connection.
I find myself at a point where I've ...
1
vote
0
answers
37
views
What exactly does the command 'make reconfig' do when build Vim?
I try to build VIM but I have a few question about make command and its options (now on Ubuntu 22.04).
For building VIM I follow the official documentation, first download the source files from its ...
1
vote
0
answers
27
views
DVD recorder based on freebsd, how to edit service disc
I am trying to understand what is written here and how it can be done. Maybe someone will be able to help and understand this:
https://forum.videohelp.com/threads/306345-some-problem-with-DVR560H-s-...
0
votes
0
answers
29
views
Can't compile program written for gcc 3.2.2, Stubb 2.1
I need to compile an older software, Stubb 2.1 https://github.com/UIUCSinhaLab/Stubb, using the earliest available gcc (3.3) along with numerous warnings I get this error:
/usr/bin/ld: skipping ...
0
votes
1
answer
85
views
gpgme-1.18 fails to compile
I'm trying to compile gpgme-1.18 from source according to the instructions at https://linuxfromscratch.org/blfs/view/systemd/postlfs/gpgme.html
The compile fails, with the below error:
Making all in ...
0
votes
1
answer
205
views
Installing real-time kernel on gnu/linux(EndeavourOS/Arch)
I'm trying to install a real-time kernel on EndeavourOS without any success. I tried different method... the first one, downloading it from yay repository as suggested by the Arch Linux wiki but ...
0
votes
0
answers
26
views
building geeqie on arch: ninja error undefined reference to lua_settop
I am trying to build geeqie from https://github.com/BestImageViewer/geeqie.git.
Following instructions in the README.md
`meson setup build`
`ninja -C build install`
The meson runs without error but ...
0
votes
0
answers
79
views
How do I add a module when compiling a kernel for a new installation of Arch Linux?
I cannot find a lot of information on hardened_malloc except for copying over the module files or running a program using it. I want to integrate the module to my kernel. I will copy the kernel over ...
0
votes
1
answer
91
views
Good practices when installing from sources on Linux
I'm wondering what are good practices about compilation and manual installation of software on Linux systems.
I mean getting, building and installing code by this usual way :
git clone https://a-repo/...
1
vote
0
answers
70
views
promscale-extension fatal error: 'libintl.h' file not found
I'm attempting to compile promscale-extension for PostgreSQL 14.5 on FreeBSD 13.1, but I keep getting fatal error: 'libintl.h' file not found. I've verified that the file /usr/local/include/libintl.h ...
1
vote
0
answers
26
views
Shall I full recompile after .config modification?
After compiling a kernel I've found that I want to touch certain .config constants.
I'm aware that these constants are used by source files from:
drivers/hdi/
drivers/net/wireless/realtek
So, I'm ...
2
votes
2
answers
309
views
when crosscompiling this source why do I receive "No rule to make target" error on one host but not the other
I have the following linux kernel source repo cloned to a couple different hosts (my local machine and a Github Actions runner)
https://gitlab.conclusive.pl/devices/linux/-/tree/master
I'm using the ...
1
vote
0
answers
129
views
Why is the Image file a PE executable
I've been trying to compile a linux kernel on my own machine with the source linux-6.0-rc5, which is the latest. Everything goes well yet something haunts me. When I get the Image file under arch/...
-1
votes
1
answer
281
views
Error trying to compile kernel 5.15
I am trying to compile the linux kernel 5.15.64 but it fails. I have the config and use make -j4 && sudo make modules_install -j4 but this is the error I get.
make[1]: *** [kernel/Makefile:160:...
29
votes
3
answers
5k
views
Do C compilers discard unused functions when statically linking to .a file?
Say I have a C program main.c that statically links to libmine.a. Statically linking to a library causes library functions to be embedded into the main executable at compile time.
If libmine.a were to ...
0
votes
1
answer
37
views
Best practice for building, installing and running temporary executables
I'm writing a Python script which performs creates and modifies several files in a directory specified by the user. As part of the process, my script will download and build a toolchain used by my ...
0
votes
0
answers
160
views
mkinitcpio: command not found. Trying to build arch kernel from Ubuntu
I am currently on Ubuntu, and is following this tutorial: https://wiki.archlinux.org/title/Kernel/Traditional_compilation as I wanted to make my own Arch distro. It gives me the
mkinitcpio: command ...
1
vote
1
answer
69
views
Why this script stuck at "can't execute" branch?
I'm using this tool-chian provided by a manufacture of control boards.
I followed the instruction step by step but when I tried to compile example code, the compilation process got stuck at "$...
0
votes
0
answers
458
views
Segmentation Fault when entering chroot for LFS
I have been compiling an LFS [Linux From Scratch] operating system, and thus far there were no errors. However, when I was compiling the Linux Kernel, I accidentally tripped on the power cord to my PC ...
0
votes
1
answer
33
views
How do I compile gtypist-2.9.5 on Alpine Linux?
GNU Typist is a well-known typing practice program for the terminal. I wanted to use it so I downloaded the .tar.gz from https://ftp.gnu.org/gnu/gtypist/?C=M;O=D. But when I untarred it and ran ...
0
votes
0
answers
21
views
How to compile JSVM reference implementation in 2022?
I need to compile the JSVM reference implementation. The code can be found here: https://vcgit.hhi.fraunhofer.de/jvet/jsvm
The instructions included say one should use gcc version 4:
# Building the ...
0
votes
0
answers
36
views
How to fix forget the "make modules_install" step when building kernel?
I build a kernel from the source, but I forget executing the "make modules_install" step and run the "make install" directly, after I rebooted the machine, it cannot boot up and ...
0
votes
1
answer
44
views
How can I install danshell, a cross-compiled program, on Linux?
I'm trying to install this shell: https://sourceforge.net/projects/danshell/
http://danshell.sourceforge.net
And it is saying that it is cross-compiled on Linux and Windows. I am kind of a noob and am ...
1
vote
1
answer
300
views
Why is the flag `CONFIG_DEBUG_INFO` reset when building the Linux kernel?
I have built the Linux kernel, but I wanted to do it without building the debug package.
I know that it's possible to disable the flag CONFIG_DEBUG_INFO, via scripts/config (with either --set str &...
0
votes
0
answers
39
views
Updating and compiling a Kernel module for the latest Kernel version
I would like to update a kernel driver to be compatible with the latest Linux Kernel.
The driver has been working for an older kernel version 5.2.20 from 2019 running on an embedded device. Many ...
0
votes
1
answer
118
views
Compilation taking too much RAM?
I'm trying to compile a custom Linux Kernel but when I get to the last step and compiling VMLinux.o, the make process gets killed and shows error137, which means that I'm out of memory.
I'm on 4gb RAM,...
0
votes
1
answer
414
views
Invoking "make -j16 -l16" failed
I want to simulate Tiago robot in Gazebo and I am using ROS available package. Before, I simulated it without problem but right now I can not. I am using ROS melodic and ubuntu 18.04 on KVM virtual ...