Skip to main content

Questions tagged [makefile]

Questions relating to makefiles, (The file that contains the instructions for make)

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Error while running make install: cannot change permissions of [directory]: No such file or directory

trying to install a package for Coq proof assistant, I have already had to jump through a couple hoops with it not playing nicely with Windows and am trying to install it on WSL. I get the following ...
eaplind's user avatar
1 vote
0 answers
160 views

equivalent .sh or make file for a .BAT file

I bought a book yesterday on OS development however, the book is written for windows systems and this was not mentioned in the description. I need to convert a .BAT file into an equivalent shell ...
Prudence Clearwater's user avatar
0 votes
0 answers
91 views

booting from qemu with self-made bare minimum OS

I wrote a minimal OS to boot from in nasm. org 0x7C00 ;because the OS is loaded at address 0x7C00 bits 16 ;because we start in 16 bit mode main: hlt .halt jmp .halt times 510-($-$$) db 0 dw ...
Prudence Clearwater's user avatar
0 votes
0 answers
118 views

Makefile for kernel module - error

I made a simple kernel module and a defult Makefile I was given in lecture. obj-m += module.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(...
Its me's user avatar
  • 101
0 votes
0 answers
358 views

linking not done using make command

I am working on Ubuntu. I am running make command but it is not working, an error is generated. I am sharing the error below. gcc: warning: pr1: linker input file unused because linking not done gcc ...
Pooja Singh's user avatar
1 vote
0 answers
1k views

Custom Linux Kernel Module Can't be Inserted in WSL 2

OS: Windows 11, WSL2(Ubuntu 22.04) inside WSL2, command uname -r returns: 5.15.90.1-microsoft-standard-WSL2 Firstly, I dowloaded the correct version of Linux kernel from Github: WSL2-Linux-Kernel. ...
KasumiSong's user avatar
0 votes
1 answer
740 views

Makefile:372: install-zenmap Error 1

help please followed instructions get this error [Makefile:372: install-zenmap] Error 1 is there a fix
Dean Dove's user avatar
0 votes
1 answer
2k views

ERROR make: *** No targets specified and no makefile found. Stop

I am getting error for "make" command" as below: make: *** No targets specified and no makefile found. Stop. Here are the two command lines after downloading a Git repository: ./...
Dervish 007's user avatar
0 votes
0 answers
201 views

Why the variable value is not changing in the function?

In the following function main_script, the variable DEFAULT_BACKUP_DIR is not working as intended because the value /home/user/BACKUP is not assigned to it which I do not know why, and when I try to ...
ABSO's user avatar
  • 1
1 vote
0 answers
7k views

How to Add a New Path to pkg-config?

I've just start using GNU make because of a software package I'm trying to install. The tutorial is really good, but for some reason I'm not able to do it properly. I downloaded the files, extracted ...
Tanus Szabo's user avatar
-1 votes
1 answer
1k views

could not build custom configured nginx

I am using UBUNTU server 22.04, openssl version 3.0.2 and I was trying to build custom configured NGINX as a proxy for mail server however, when I run 'make' it gives me error. For that i referred to ...
anon999_void's user avatar
0 votes
0 answers
632 views

Error when using 'make install' command in qbittorrent installation

I am attempting to install qbittorrent software from tar.gz (https://www.qbittorrent.org/download.php) on ubuntu 22.04. I can unpack the zip files, run configure, and make executes just fine, but when ...
deathisinvtbl's user avatar
0 votes
0 answers
247 views

debuild cannot remove '..' permission denied, debian/rules:9: recipe for target 'clean' failed

I am trying to run debuild command to work with debian with my project However, when I run debuild command I get such error: hoseopjeong@hoseopjeong-VirtualBox:~/Documents/HoseopJeong_debian_lab9/...
javaprogrammer's user avatar
7 votes
1 answer
26k views

Arguments for make

I know you can pass arguments like parameters, for example, make foo=bar. I am wondering if I can do this with only one argument, without the variable. For example, this is what I would like to do: ...
DaCuteRaccoon's user avatar
1 vote
0 answers
2k views

Linking Zlib with source compilation

I have compiled Libz using these steps: wget -c --no-check-certificate https://zlib.net/zlib-1.2.12.tar.gz ./configure --prefix=/home/zlib1/ make make install Similarly I have compiled OpenSSL and ...
Manukumar Puttaswamy's user avatar
0 votes
1 answer
722 views

Kernel Module exit message get printed next time when inserting the module

I have written simple kernel module to print Hello kernel msg. my_module.c #include <linux/module.h> #include <linux/init.h> /* Meta Information */ MODULE_LICENSE("GPL"); ...
bhagwat-99's user avatar
1 vote
1 answer
1k views

how do I modify makefile which is already compiled?

Let's say I have a makefile which looks like this: all: a_functions.o b_functions.o c_functions.o d_functions.o main.o gcc -o all a_functions.o b_functions.o c_functions.o d_functions.o main.o ...
game lover's user avatar
0 votes
0 answers
68 views

can't remove a game installed by make install command

I wanted to install a launcher which is actually for enter and play in a server in Minecraft(I don't know if giving the name of the game is forbidden) and to do this I went to the website of the ...
TarikTEM's user avatar
12 votes
1 answer
848 views

How to get Six (an old KDE game program) running in Kubuntu 20.04

Six was a gold-medal winner several times in a computer games olympiad. The source code is on GitHub https://github.com/melisgl/six/tree/master/six. It has been pinned for a couple of decades, but I ...
ForDummies's user avatar
0 votes
1 answer
11k views

"/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory" when compiling HTK

I'm trying to compile the HTK library, but run into issues: $ make all (cd HTKLib && make HTKLib.a) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/...
Rerun's user avatar
  • 163
4 votes
1 answer
1k views

Unreal 4 compiled successfully but UE4Editor file doesn't exist

I have Ubuntu 20.04 on a desktop with an old i7 CPU and 16 GiB of RAM. Here are the commands I ran to compile Unreal 4.27: ./Setup.sh ./GenerateProjectFiles.sh make -j 4 make -j 4 ShaderCompileWorker ...
kim holder's user avatar
  • 1,749
1 vote
0 answers
3k views

Cannot source venv using makefile

The Makefile inside project root # Makefile .PHONY: help help: @echo "Commands:" @echo "venv : creates development environment." # Environment .ONESHELL: venv: ...
Anel Music's user avatar
1 vote
0 answers
599 views

GNU make executes weird shell

The shell function in GNU make behaves weird on Ubuntu. Consider this simple Makefile: TEST1 := $(shell command -v sh) TEST2 := $(shell /bin/sh -c 'command -v sh') all: $(info TEST1 = $(TEST1))...
Jakub Klinkovský's user avatar
0 votes
0 answers
348 views

How to solve "make" issue while cross-compiling on the ubuntu

I am trying to cross-compile this (ultralytics/yolov5) project on my ubuntu machine. Since I am compiling it for my another machine "raspberry Pi" so I already installed the toolchain which ...
Jaskirat Singh's user avatar
2 votes
0 answers
5k views

insmod: ERROR: could not insert module simpleModule.ko: Operation not permitted

I'm a beginner learning about linux kernel. I tried to insert a simple module but encountered the following error. sudo insmod simpleModule.ko [sudo] password: insmod: ERROR: could not insert module ...
Raj Laddha's user avatar
0 votes
0 answers
25 views

Where to put library to allow programs to see it? [duplicate]

I wanted to compile mosaic on my ubuntu machine, but while compiling, I did not have right libpng version, so the compilation aborted with error: error: invalid use of incomplete typedef ‘png_struct’ {...
milanHrabos's user avatar
0 votes
1 answer
419 views

Is it possible to avoid executing make and make install with sudo?

Whenever it is possible, I try to use applications, libraries and plugins delivered through official Ubuntu APT. However, sometimes I try to compile something, like resynthesizer plugin for GIMP. In ...
matandked's user avatar
  • 1,139
0 votes
2 answers
2k views

Makefile with if statement error

Attempting to create a makefile with a run rule which has an if in it. When I run the command make run it returns this error: /bin/sh: 1: Syntax error: end of file unexpected (expecting "then&...
Theo Paraschiv's user avatar
1 vote
1 answer
5k views

Makefile: python: command not found

I have a Makefile that contains these two lines run: sim @python run.py $(INPUT) When I tried to run make run, I got the error message saying python is not found. I soon realized that was because ...
ark's user avatar
  • 13
0 votes
1 answer
317 views

makedepf90: program for automatic creation of Makefile-style dependency lists for Fortran source code

I assumed it is only a couple of seconds installing this program, but it confuses me honestly. this program is for the automatic creation of Makefile-style dependency lists for Fortran source code. I ...
Kratos_GoS's user avatar
1 vote
1 answer
6k views

Error when using 'make install' command

I am attempting to install the WRF weather software (http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP7) that requires the installation of certain libraries. I can unpack the ...
jmaloney1985's user avatar
1 vote
1 answer
2k views

Install wxWidgets-3.1.4, Install Code::Blocks

After downloading and installing (./configure, make install) the latest wxWidgets-3.1.4 version from official page. I checked out latest Code::sBlocks with svn from official repository. In the folder ...
Hakikat41's user avatar
1 vote
0 answers
3k views

collect2: error: ld returned 1 exit status while compiling

first i want to say that i looked for every solution for this problem in the site ,but no luck ! i have a project which i'm trying to compile , when i compile it on Ubuntu 14 everything is ok , but ...
Colin Jack's user avatar
2 votes
2 answers
10k views

Software-installation error (makefile) on Ubuntu 20.04

I was trying to install geopsy software, but when I ran sudo make install the following error occured: cd mseed/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /opt/geopsy-3.3.0/...
nanandasari's user avatar
1 vote
1 answer
383 views

Newbie: How to use QMAKE to compile and install FaustLive on Ubuntu Studio 20.04? Can't create Makefile with qmake w/ linux-g++

FaustLive is an open source prototyping environment for Faust (open source, compiled audio programming language). Here is FaustLive's GitHub: https://github.com/grame-cncm/faustlive After successfully ...
CPLTarun's user avatar
  • 213
4 votes
1 answer
15k views

"make" command does not work in directories containing "space"

I often use make to compile programs. But, sometimes, only with some packages, when the directory contains a space, it says: No such file or directory Example: If I run make in the directory /home/...
Akib Azmain Turja's user avatar
-2 votes
1 answer
2k views

shell unnanme -r command not found

shantanu@LAPTOP-3NM82R8U:~/c$ make make: unname-r: Command not found make -C/lib/modules//build M=/home/shantanu/cmodules make[1]: *** /lib/modules//build: No such file or directory. Stop. Makefile:3:...
Shantanu Nawadkar's user avatar
0 votes
1 answer
661 views

Unable to locate package makefile

Hello everyone I am new in using Ubuntu operating system and facing a problem. I have installed GCC using sudo apt-get install gcc but when I run the following command sudo apt-get install ...
Bilal's user avatar
  • 1
0 votes
1 answer
272 views

Make error with Grib2 and Netcdf

I am trying to install a software package designed for weather modeling. This can be found here https://github.com/usgs/volcano-ash3d-metreader. The issue comes when I am trying to execute the 'Make ...
LvnTrvr's user avatar
  • 25
0 votes
0 answers
2k views

cannot execute binary file: Exec format error - Ubuntu 16.04 + Make + GCC

I am aware that other people had similar issues but mine seem to be unique as I am not making obvious mistakes. I have reviewed other questions and putting all required details below. When I am ...
Vidz's user avatar
  • 1
0 votes
0 answers
1k views

Finding -lgcc_s

I'm trying to install a program that seems to use libgcc_s.so. After implementing the possible remedies suggested in the SO:LINK, I still can't figure out why the compiler fails to find it. I get the ...
Sameeresque's user avatar
0 votes
0 answers
549 views

How to stop "make" from running "clean"?

Have a Makefile like this: all: build build: dot2tex -ftikz temporal_dag.dot --figonly > temporal_dag.tex latex notes && bibtex notes && latex notes && ...
safetyduck's user avatar
2 votes
1 answer
4k views

make: *** No rule to make target 'ell/util.c' needed by 'ell/util.lo'

I need to install ofono, so I cloned this ofono repository and did autoreconf -fi and ./configure in the directory. But when I am running make or sudo make install I am encountering the following ...
xjm's user avatar
  • 105
1 vote
0 answers
50 views

How to make 'Make' to handle more new pairs of source files indicated by its extension name

How can we modify a Makefile script to handle more new pairs of source files indicated by its extension name to be compiled by Make automatically correctly and preferably interactively #... objects = ...
user17227456's user avatar
1 vote
0 answers
1k views

Problem while executing a Makefile

i'm installing the Rocket-Chip repository. I'm following the instructions from https://github.com/chipsalliance/rocket-chip. The instructions are: $ git clone https://github.com/ucb-bar/rocket-chip....
Andrea13's user avatar
0 votes
0 answers
338 views

Continue custom kernel creation and not start over again from square one

Task: Create a custom Ubuntu kernel from git sources (in my case hwe-branch). Short summary: I want to fix a error reported by the build scripts and then repeat only the last compilation/packaging ...
llvs's user avatar
  • 1
0 votes
1 answer
174 views

Packaging fails upon compiling 16.04 HWE kernel

Short summary: Packaging script looks in wrong path. Detailed error summary: To compile the kernel, I used the compilation instructions from here, which included the steps: Checkout git sources ...
llvs's user avatar
  • 1
1 vote
1 answer
666 views

configure: error: enet not found

I am trying to build 7kaa game on my Ubuntu machine. To build Makefile.am, I ran ./configure and the tail of the result is checking for gettext... yes checking for iconv... yes checking for OPENAL......
ar2015's user avatar
  • 427
0 votes
0 answers
107 views

Build libfslcodec-4.0.8 on Ubuntu 16.04 for IMX6Q

I installed Ubuntu 16.04 with kernel 4.1.15 on IMX6Q "sabresd" Board and successfully boot. I used this instruction to install rootfs also I changed distro and solved some issues by myself. Just now ...
Amir Farahani's user avatar
1 vote
2 answers
883 views

How to modify build rules in Makefile

I tried to compile FFmpeg from source code located HERE. All is good, but the built binaries lack ffplay. And looks like the build rule is missing from the makefile located under /fftools. How can I ...
angel_30's user avatar
  • 303