Questions tagged [make]

For questions pertaining to make, a utility that automates the build process by managing dependencies amongst targets. Use this tag for questions about make itself or questions about issues arising from using the make command-line utility.

Filter by
Sorted by
Tagged with
0
votes
0answers
40 views

Using mktemp in makefile [duplicate]

I want to create a temporary file and pipe some text into it using a makefile. In bash, I can create a temp file and pipe text into it like so: temp_file=$(mktemp) echo "text goes into file" ...
0
votes
1answer
54 views

What are the differences between these terms in kernel compilations

How does the terms make, make bzImage, make modules, make install, make modules_install relate to each other. One kernel tutorial I saw used all make bzImage, make modules, make install, make ...
1
vote
2answers
35 views

No man page of program Whipper in Arch Linux

I have installed the program whipper with pacman in official repository in Arch Linux to rip CD's. But the man page won't come up with man whipper. Then I cloned their github: https://github.com/...
1
vote
0answers
29 views

how can I create a virtualenv variable inside a makefile

I am trying to create a makefile to compile a full project. I want to start by creating a virtualenv variable inside it using mkvirtualenv wrapper like: train: create_env echo "create env?&...
0
votes
1answer
42 views

How to call make with a .bashrc alias

I would like to create an alias in the .bashrc file that calls make on a makefile. I am not sure what I am doing wrong or what is happening. I specify to make what folder to change execution to and ...
0
votes
0answers
136 views

Make error: DSO missing from command line when installing YOLOV4

I am trying to install YOLOV4 in Linux and when I run make.I get this error: lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line. Maybe the problem is related the ...
1
vote
1answer
67 views

What is the best way to determine missing dependencies when using G++ to compile a program with headers and static libraries?

I am trying to compile the demo for the Acontis etherCAT master stack, but G++ is reporting a number of undefined references when trying to compile, without giving any clue as to which headers or ...
0
votes
1answer
143 views

Debian install missing aqc111 driver

I'm running Debian unstable # uname -srvmo Linux 5.10.0-1-amd64 #1 SMP Debian 5.10.4-1 (2020-12-31) x86_64 GNU/Linux and want to use a device that requires the aqc111 driver. This driver should be ...
1
vote
2answers
243 views

Makefile: how to sed correctly to edit a variable

I'm trying to write a custom Makefile in which I collect all source files to compile against the main. First I collect their names: # other sources to compile against (without extensions, separated by ...
0
votes
1answer
93 views

Makefile with combinations of multiple targets and dependencies

I have the following file tree (for example): foo/1213.csv foo/7789.csv far/8471.csv far/7811.csv boo/8109.csv bar/2778.csv bar/3334.csv bar/1337.csv Now, I want for each foo far boo bar directory ...
1
vote
0answers
72 views

Custom 64bit 3.10.9 kernel not booting in qemu and stucks on Booting from ROM

My custom build kernel 4.10.9 with gcc-4.8 is not booting in qemu and it is stuck on booting from ROM: I used the following qemu command: qemu-system-x86_64 -kernel linux-3.10.9/arch/x86/boot/bzImage....
0
votes
1answer
40 views

How to detect which files are created when running a command

I'm trying to understand what files or build artifacts are created by the build system of a C++ project. There are 3 steps to building this project: ./autogen.sh ./configure make Is there a way I ...
0
votes
2answers
256 views

Bash-Variable subsitution in Makefile subshell

My Makefile should and does create a file /tmp/file in the docker container using make test: test: (cd subdirectory && docker-compose exec webserver bash -c "\ MYTEXT=hello ...
0
votes
0answers
536 views

gcc makefile error: “No rule to make target …”

I'm trying to use GCC (Linux 64 bit) with a makefile to compile my project which is a driver. I am trying to mix assembly with my c project, cpu_check and entry are c files while cpuid_available is an ...
0
votes
1answer
240 views

I have a problem while installing mdk4 on Arch based system

When I try to install /aicrack-ng/mdk4 I get: error: ld returned 1 exit status make[1]: *** [Makefile:38: mdk4] Error 1 make[1]: Leaving directory '/home/u4/mdk4/src' make: *** [Makefile:10: all] ...
0
votes
0answers
54 views

Makefile and lazy loading env file

What I want to do ? Load an env file in "lazy" loading like this: $ cat env.int X=file $ make toto X=file $ X=env make toto X=env What I got ? I've got a env-file env.int like this: X=file ...
0
votes
1answer
80 views

How to install Splint on Ubuntu 20.04 VM?

I have a Ubuntu 20.04 VM running on Virtual Box. I'm trying to install Splint on this VM following the instructions on the website (http://splint.org/linux.html). Point 5 of the instructions says to ...
1
vote
0answers
24 views

lcurl installation no root

I have been trying to install a software for a full day now. After installing htslib/bzip and all dependencies locally (as I don't have root permissions), I am stuck at this error: g++ -O3 -o angsd *....
0
votes
0answers
34 views

“make” not looking for files in /usr/local/

I'm trying to build a package from source (ROCm) (Distro:Solus): libnuma isn't available so I had to build it from source. And once I installed it, even though the files are in /usr/local, make still ...
0
votes
1answer
54 views

Can I define functions and global variables within debian rules make file?

Can I define functions and global variables within a debian rules make file, to be used within the different override_**** sections ? Have not had success in doing so. For example, the following is an ...
1
vote
1answer
1k views

“FAILED: load BTF from vmlinux: Unknown error -2make: *** [Makefile:1162: vmlinux] Error 255”, while compiling kernel-5.9.1

I am trying to compile kernel-5.9.1 using make I got the following error while make-ing FAILED: load BTF from vmlinux: Unknown error -2make: *** [Makefile:1162: vmlinux] Error 255 I am using Ubuntu-...
0
votes
0answers
139 views

Buildroot hdimage(sdcard.img): part rootfs size (268435456) too small for rootfs.ext4 (1073741824)

So I wanted to make my buildroot environement and evrytime I step on this error: Blockquote INFO: cmd: "mkdir -p "/home/mehdi/buildroot/output/build/genimage.tmp"" (stderr): INFO:...
0
votes
1answer
293 views

How to correctly define sysconfdir in Makefile?

https://www.gnu.org/software/make/manual/html_node/Directory-Variables.html There it shows that you should write something like this: prefix=/usr/local exec_prefix=$(prefix) bindir=$(exec_prefix)/bin ...
0
votes
0answers
391 views

install Drivers for TP-LINK TL-WN8200ND v2

I'm new in Linux, and I'm trying to install Drivers for TP-LINK TL-WN8200ND v2 by following the guide, when I arrive to compile the driver by make command I got the this error root@kali:~/Downloads/TL-...
0
votes
0answers
87 views

cant install vimb on arch linux (<gtk/gtkx.h> no such file directory)

i was just installing vimb for my arch Linux and this error came, here are the logs make V=1 output- make -C src make[1]: Entering directory '/home/sierra/Desktop/vimb/src' Package webkit2gtk-4.0 was ...
0
votes
0answers
112 views

how to change file suffixes in a makefile?

I'm new to Makefile and just trying to change a file suffix. I want to convert files from one format to another eg .mov to .mp4 In bash I would do something like out1 = "${input/mov/mp4}" (...
1
vote
0answers
86 views

Moving from Unix makefile to GNU makefile (on Linux)

just a quick question in case anyone can spot something obvious. The following line in a Makefile works fine on Unix but gives an "empty variable name" error when using make on Gnu/Linux. I ...
0
votes
0answers
32 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
211 views

Missing 'build' directory in Debian 10.6

I'm trying to compile https://github.com/betolj/ndpi-netfilter on Debian Buster 10.6. In short I get this error: make[2]: *** /lib/modules/4.19.0-11-cloud-amd64/build: No such file or directory. Stop....
0
votes
1answer
65 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
1answer
1k views

Use manually added SDL2 with steamcmd.sh | CentOS 8

I installed the steamcmd and I got the following error: Steam>Warning: failed to init SDL thread priority manager: SDL not found Because CentOS8 centos-release-8.2-2.2004.0.1.el8.x86_64 only comes ...
0
votes
1answer
92 views

Why does make oldconfig not work with a bash function?

I have the following function in my bashrc: make() { nice -n 19 /usr/bin/make -j $(nproc) --output-sync "$@" echo -e "\a" } export -f make The purpose is to run make on ...
0
votes
0answers
47 views

Executable does not work if run outside its folder

I have an already structured SDK folder where I have my project. Program works as expected if I do: cd /home/user/Documents/Camera/ProjectCamera/linux64/proj make cd /home/user/Documents/Camera/...
1
vote
1answer
863 views

What is the difference between make and makepkg?

From Arch Wiki: Packages in Arch Linux are built using the makepkg utility. When makepkg is run, it searches for a PKGBUILD file in the current directory and follows the instructions therein to ...
0
votes
0answers
25 views

Errors while compiling Lubuntu LTS manual to PDF

I am trying to compile Lubuntu Manual to PDF, but I get critical errors even if I compile it as HTML/dummy. I installed the dependancies reported in the repository: sudo apt install python3-pip ...
-1
votes
1answer
54 views

How to introduce variables in Makefile

I'm using Bash on Ubuntu and GNU Make 4.2.1. I'm trying to write a Makefile that would perform simple operations on some data (.TXT files) I have. My different .TXT files are stored in 3 directories ...
1
vote
1answer
225 views

tp-link Archer T4U make error (kali linux)

I followed steps from TP-Link and get this error when I type: $make . . . make[3]: *** [/usr/src/linux-headers-5.7.0-kali1-common/scripts/Makefile.build:272: /home/arishat/file/T4Uv3_WiFi_linux_v5.3....
0
votes
0answers
243 views

how to install driver for rt3070 iam facing problems

I want to install the drivers for my wifi adapter, with a bt-n9100 rt3070 chipset. I am using Kali Linux: Linux Dix 5.7.0-2-amd64 #1 SMP Debian 5.7.10-1 (2020-07-26) x86_64 GNU/Linux I am trying to ...
-5
votes
1answer
1k 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 ...
1
vote
1answer
558 views

cant use make to execute Makefile (to download the drivers from cd)

i cant use make to execute the file . I have a problem when installing the drivers from cd i use Kali Linux I tried to apt update and apt upgrade but nothing helped me. This is the problem: $ sudo ...
2
votes
1answer
4k views

Makefile : file exists check not consistent

check: gen # ls -ltr file_name* ifeq ($(shell test -s file_name && echo -n yes),yes) Do something with file_name and file_name1 else Do something else with file_name1 ...
0
votes
2answers
850 views

Unable to build using Java OpenJDK 14. /bin/sh: javac: command not found

I've been tasked to work on updating a Java program that hasn't been touched for years and I'm running into issues building it using the latest version of Java OpenJDK 14.0.1.7-2 on Centos 7. When I ...
0
votes
0answers
246 views

“exec_prefix” command not found when building - what do I miss?

I am trying to build a piece of software called rtpengine from Github, installed all dependencies, started running make, but there are lines saying /bin/sh: exec_prefix: command not found amidst ...
0
votes
0answers
65 views

Error building VirtualBox PCI pass-through kernel module

I am using Fedora 32 with Kernel 5.7.10-201. I have installed updates yesterday and now my VirtualBox stopped working. I have tried to remove and reinstall Virtualbox and it is failing when I try to ...
0
votes
0answers
23 views

Induction in makefile

Can I make a recipe where a file named 3 has 2 as a prerequisite. 2 has 1 as a prerequisite. And 1 has no prerequisite? Something like 1: touch 1 n: n - 1 touch n
0
votes
1answer
579 views

Where do I get xcb_event.h?

I'm 'make'-ing SXHKD on MX Linux to try keybindings and I get: $ make cc -std=c99 -pedantic -Wall -Wextra -D_POSIX_C_SOURCE=200112L -DVERSION=\"0.6.1\" -c -o sxhkd.o src/sxhkd.c src/sxhkd.c:...
0
votes
1answer
187 views

Compiling drivers/staging

I need to compile all staging drivers. I am using make allyesconfig and I have also set CONFIG_BROKEN=y and CONFIG_COMPILE_TEST=y . Right now, make modules C=1 M=drivers/staging prints MODPOST drivers/...
0
votes
1answer
61 views

What is the difference between executable that requires ```./``` with the one not requiring it?

What is the difference between the following ./executable and executable. Why is it, sometimes, some executable (non-Linux commands) don't require ./? If I have installed an executable through a ...
-1
votes
3answers
84 views

Is GNU make extension to shell?

GNU make and makefile syntax resemble Linux shell and bash, but is not the same. For example, usage of bracet is not the same as in shell or bash. Yet, many other commands from shell can be used AS-IS,...
0
votes
2answers
380 views

How can I uninstall obs-studio built from source code | CentOS 8

How can I uninstall obs-studio built from source code from my CentOS 8 machine? It was built from source code - without the browser - and doesn't work on this PC. When I'm trying to uninstall OBS I'm ...

1
2
3 4 5
18