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
1
vote
1answer
21 views

Quick & easy ways to compile binaries for Debian/Ubuntu from Arch Linux

I use Arch Linux as my main OS. Sometimes (in CTFs), I need to compile a program for a Debian/Ubuntu OS and upload it to the target machine since they may not have a compiler binary (sand-boxed, not ...
0
votes
0answers
13 views

compiling the nstat utility in Linux so that debugging information is available for Valgrind

I'm kind of new to picking up C and I want to know if there's a way that I can compile the nstat utility in Linux so that there's debugging information that can be used with Valgrind?
21
votes
3answers
3k views

Are compiled shell scripts better for performance?

After some googling, I found a way to compile BASH scripts to binary executables (using shc). I know that shell is an interpreted language, but what does this compiler do? Will it improve the ...
0
votes
2answers
55 views

Compiling 2 c files into one program and permission is denied

My mission is to complile 2 c files into one executable program. The purpose of this program is when called from within the terminal followed by 2 numbers the output should display the sum of these 2 ...
0
votes
0answers
12 views

where to load vmlinux image on arm64? and how to set the load address?

For arm64, when we compile the kernel, we get vmlinux file. The entry point seems to be 0xffff800010080000 (virtual address ) but where should I load the vmlinux file (I mean physical address) and ...
-4
votes
1answer
26 views

How can I name the output of a compiled source file in a certain way?

In terminal, I have compiled a source file named "file.C". I did this by typing g++ file.C -o file. Now, I'd like to know how can I use Unix commands to name the output as "helloworld....
-2
votes
0answers
30 views

install error usb wireless tp-link archer t4u 1300ac in kali linux

root@kali:~/Downloads/archer-t4u-master# make "******************************************" "NO SKRC,we will use default KSRC" "******************************************" ...
0
votes
0answers
10 views

Profiling Docker using gcov, no .gcno file gets generated

I am trying to profile the Docker daemon using gcov. I am interested in seeing which lines of kernel code get executed while running Docker. I am building Docker from source (from https://github.com/...
0
votes
1answer
34 views

-lcrypt error cross compiling 64 to 32

I am trying to compile dirtycow exploit file which can be found in here. gcc -pthread dirty.c -o dirty -m32 -lcrypt Because my target is 32 bit I compile it with -m32 and -lycrypt to make sure it ...
2
votes
1answer
48 views

Should I worry about 'WARNING: Package contains reference to $srcdir'?

I was building font-manager package from AUR on my Arch system. It is throwing a warning while the process : ==> WARNING: Package contains reference to $srcdir usr/lib/font-manager/libfontmanager.so....
2
votes
1answer
83 views

Compiling Dwm to Arch Linux. Xft.h missing?

Trying to compile the Dwm Tile Manager (that uses Xorg ) on Arch Linux currently produces the following error (original attached file): dwm build options: CFLAGS = -std=c99 -pedantic -Wall -Wno-...
0
votes
1answer
11 views

Libtool searches wrong directory while path specified

I need help with installing a software. In general: I try to install PostGIS on a cluster (CentOS) and do not have admin rights. There is a sqlite3 installation (connected to the error), but this ...
0
votes
0answers
28 views

How can I know which of my compilers calls which version of a specific library?

I have a library abc installed in various places of my computer which versions may differ. I also have different compilers comp1 and comp2. By executing the two following commands, I end up with two ...
0
votes
1answer
41 views

How to compile busybox for cortex-m7 (-march=armv7-m)?

I'm trying to run busybox on my waveshare stm32 development board but my SOC has "armv7-m" architecture not "armv7-a". so I've put the march flag in the menuconfig of busybox (-...
0
votes
1answer
27 views

How to auto-recompile the Linux Kernel with my hardware-specific needs?

MX Linux 19.2 amd64 - XFCE 4.14 Is there a script or application that detects in-deep all my hardware details, in a manner this auto-configures and recompile the Linux Kernel that works for my current ...
0
votes
1answer
55 views

cannot cross-compile busybox for arm

I've configured my busybox in menuconfig and made it as a static binary (no shared libs) + forced no MMU build. I'm using the prebuilt arm cross compiler and when I enter the below command, it gave me ...
0
votes
0answers
27 views

What is the difference between a C compiler using the '-q' or '-maix' options, on AIX server?

When I compile a C program using cc on AIX server, I used the -maix64 option, to make a 64 bit binary. However, I want use the -q option, but when I try to use that, it gives the error: Unrecognized ...
3
votes
1answer
32 views

How is overflow_stack variable included in entry.S in arm64 architecture?

The overflow_stack variable is used in the kernel_ventry macro in arch/arm64/kernel/entry.S /* Switch to the overflow stack */ adr_this_cpu sp, overflow_stack + OVERFLOW_STACK_SIZE, x0 It ...
0
votes
1answer
35 views

Installation of gcc on hpux

I need to install libffi-3.2.1-ia64_64-11.31.depot.gz on a hp-ux server. To install that I need the build-time dependencies make and gcc. I have installed make (64 bit) but I cannot find the gcc (64 ...
0
votes
1answer
92 views

Build the Linux kernel without gcc optimization

I follow one of many tutorials found on Google results to build and debug the Linux kernel with gcc and kgdb/gdb. And I end up by discovering that is all waste of time. Since I can't compile the ...
5
votes
3answers
1k views

Why is this Mingw-w64 package so large?

Is it possible to install only x86_64-w64-mingw32-gcc? I need it for one command and the mingw-w64 installation is over 800MB... I'm in Debian Buster, but the same is true for other Linux flavors I ...
0
votes
1answer
191 views

How to build kernel modules in Alpine 3.12

I need to build this wifi driver for Apine 3.12 x86_64. I install gcc and linux headers by this commands: apk add --update alpine-sdk linux-headers But when I tried to build the module it was failed ...
0
votes
1answer
28 views

Why is a loaded module not being driver of the device?

I tried to compile an Android 8 kernel to contain a driver for TP-Link TL-WN722N USB Wi-Fi card for a smartphone, the kernel is flashed successfully, but when I plug the Wi-Fi card via OTG to the ...
-5
votes
1answer
185 views

i want to let my kali linux recognize my wifi adapter [closed]

I am using Kali Linux. I tried sudo apt update && sudo apt upgrade && sudo apt install linux-headers-$(uname -r) I got this problem when I use make to execute Makefile I am trying to ...
0
votes
0answers
34 views

How to compile a windows app so I can use it on Linux? (like .AppIage)

I would like to run NoteMaster on Linux. I tried to use wine but it didn't work. This is the source code. The app is written in JavaScript, it is an electron app. Is there a way to compile it so I can ...
1
vote
0answers
37 views

Resources to compare AIX compiler to Linux compiler for C++

I have been looking at this site https://www.ibm.com/support/knowledgecenter/SSGH2K_12.1.0/com.ibm.xlc121.aix.doc/compiler_ref/rucmpopt.html to check AIX compiler reference since I will transfer c++ ...
0
votes
0answers
22 views

how to build debian kernel package?

I try to build debian kernel package latest rc version 5.8.0-rc7 I follow this link below https://wiki.debian.org/HowToCrossBuildAnOfficialDebianKernelPackage I'm stuck at fakeroot make -f debian/...
0
votes
0answers
75 views

Compiling Kernel Module (topgun-driver-linux) on Arch Linux Groovyarcade

Need some instruction for how to build a kernel module. I am attempting to get an EMS Top Gun II lightgun working on my MAME cab which is running the latest groovyarcade, which is an arch distro. The ...
0
votes
1answer
24 views

What Centos package contains the libraries for -lSM -lICE linker options?

Apologies if this has already been answered; I am having trouble finding an existing post (either on SE or linux forums) which solves the issue. I need to install the package(s) that enables the -lSM ...
2
votes
0answers
107 views

Compiling the Linux kernel required disk space

I'm new to Linux kernel development and had a question concerning the disk space required to build the kernel. I just compiled Linux stable kernel version 5.7.7 using the olddefconfig Make recipe and ...
0
votes
0answers
35 views

Error, compiling backport to CentOS 8, kernel 4.18.x

Reading https://launchpad.net/~canonical-hwe-team/+archive/ubuntu/backport-iwlwifi I was trying to compile the backport https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git in ...
0
votes
1answer
31 views

How can I reliably modify build configs and add compiler flags in C/C++ RPM files?

I need to change the build configuration of a large number of rpm files for testing purposes. I'm only speaking of C/C++ code here. I'm not necessarily looking to do automation, but I could use a hand ...
0
votes
0answers
243 views

How to change clang-10, llvm-10, etc to clang, llvm, etc.?

I use Spacemacs, and installed llvm-10, clnag-10, clangd-10, and all related packages, in Debian 10. Used the following command to install llvm $ sudo bash -c "$(wget -O - https://apt.llvm.org/...
1
vote
1answer
90 views

Replace original ko.xz module in CentOS 8 with patched module

I'm facing a problem with my wifi (Intel Wireless-AC 9462 “No WiFi Adapter Found”). My question is posted in forums.centos.org. According to one message on www.spinics.net/lists/linux-wireless is a ...
0
votes
1answer
44 views

How to compile only net/ipv4 of Linux Kernel?

Initially, My approach was to re-compile whole kernel from scratch but all hopes went down the moment I found out that it requires large amount of disk space. Now, I'm trying to figure out how to ...
0
votes
1answer
38 views

online compiler [closed]

An open-source author didn't provide the binary file, but just the source code, for users to download and compile them self. Downloading and installing compilers is required and needs time to try and ...
1
vote
1answer
49 views

I am trying to make new linux process scheduler

I downloaded the source code of linux kernel 5.7.3. I already compiled it and installed it by the following commands: make make modules_install make install the kernel is added to grub2 and it is ...
0
votes
1answer
507 views

Compile Linux Kernel 5.x on CentOS 8.2, certs

I'm using CentOS 8.2 with Kernel (4.18.0-193.6.3.el8_2.x86_64) and I'm interested into compile the Kernel version 5.7. Really, I need to extract some libraries for these reason I don't want to install ...
1
vote
1answer
39 views

compiling old glibc on arm fails with undefined references in nis and nss

It seems to have become a bit complex, so first some background: I need to compile self-contained programs that run on arm systems with glibc versions typically between 2.13 and 2.17. When trying to ...
1
vote
1answer
21 views

pyspotify compilation ld error

I'm trying to install mopidy-spotify on my freebox delta that allow me to install vm and is arm64 based After many problems, i've manage to get most of the dependencies working and to get rid of most ...
0
votes
0answers
64 views

Compilig PCSX2 on Fedora 30 Help?

Hi I have try to compile PCSX2 1.6 on fedora 30 and now I'm getting an error on console like this sorry it is down i reach the limit of characters permitted I'm not sure what it does mean honestly i ...
0
votes
0answers
14 views

Can I build μClinux with yocto?

I'm new to μClinux and from what I've read, the best way to build Linux for embedded systems is to use yocto. I want to build μClinux for stm32f407. It's equipped with a Cortex-M4 and does not have ...
0
votes
1answer
83 views

command not found make[2]: *** [Makefile:422: xnee.info] Error 127

i have tried to install the xnee for auto macro recording by this instruction: #Check out xnee cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/xnee co xnee #Enter the Xnee directory cd ...
0
votes
1answer
51 views

How does pkg-config work in RPM specfiles?

In some RPM specfiles, I see lines like: BuildRequires: pkgconfig(ice) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libssl) ... I am not very familiar with pkgconfig but I understand ...
0
votes
1answer
21 views

How to compile from source and repackage into binaries for distribution?

currently I have compiled and installed the GDAL3.0.4 library from source which also require me to compile and install Proj6.0.0. That is working fine. So my next part is, i need to package the ...
0
votes
0answers
43 views

ld :cannot find -l<something>, but ld -l<something> --verbose finds it

I am trying to build a qmake project. In the .pro file I specify -lhello. It exists in /usr/lib/x86_64-linux-gnu and I have added the associated -L flag to specify its location. I am still getting ...
1
vote
1answer
60 views

Installing KDE4 development files in 2020

I want to compile the Oxygen-transparent project which requires KDE4. I've tried building and installing the KDELibs 4 Support package , but still there's no kde4-config in my system. Here's the ...
0
votes
1answer
66 views

How can I compile pacat-simple.c?

I want to try writing some code to do audio playback with pulseaudio. There is a simple example program included in the official docs: pacat-simple.c. I made sure the libpulse-dev package was ...
0
votes
1answer
62 views

Why does exim use openssl from system instead of compiled version?

I try to upgrade from exim 4.84 to exim 4.94 My Local/Makefile for exim contains this: SUPPORT_TLS=yes TLS_LIBS=-L/MYPATH/lib/ -lssl -lcrypto -ldl TLS_INCLUDE=-I/MYPATH/include/openssl/ USE_OPENSSL=...
1
vote
1answer
83 views

Can't compile deno on FreeBSD

I'm trying to build deno (a javascript runtime built in rust) from source on FreeBSD 12.1. The compilation failed at rusty_v8. I then try to compile directly from the rusty_v8 repo. I've followed ...

1
2 3 4 5
28