Questions tagged [makefile]
Questions relating to makefiles, (The file that contains the instructions for make)
183
questions
1
vote
0
answers
45
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 ...
0
votes
0
answers
41
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 ...
0
votes
0
answers
59
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/$(...
0
votes
0
answers
95
views
I am unable to compile makefile. Am I doing something wrong? How can I fix this?
I am still a begginer at using Ubuntu. I've been trying to run a makefile with some .sv and .ys codes containing simple verilog and yosys exaples.
The makefile contains:
SYNTH = yosys
rtl:
${...
0
votes
0
answers
153
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 ...
1
vote
0
answers
485
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. ...
0
votes
0
answers
176
views
I am getting an error [Makefile:324: install-libLTLIBRARIES] and [Makefile:514: install-am] during make install in my Ubuntu 22.04
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libmfile configure 1.0, which was
generated by GNU ...
0
votes
1
answer
141
views
Makefile:372: install-zenmap Error 1
help please
followed instructions get this error
[Makefile:372: install-zenmap] Error 1
is there a fix
0
votes
0
answers
45
views
Use h5c++ and mpic++ wrapper compiler at the same time: makefile
I need to use the mpi and hdf5 wrap-up compilers in my makefile.
What should I do?
My naive approach was to add the h5c++ makefile command:
CC := mpic++ hc5++ -std=c++14 -g -pedantic
Which does not ...
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:
./...
0
votes
0
answers
178
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 ...
1
vote
0
answers
5k
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 ...
-1
votes
1
answer
534
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 ...
0
votes
0
answers
553
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 ...
0
votes
0
answers
203
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/...
4
votes
1
answer
12k
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:
...
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 ...
0
votes
1
answer
578
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");
...
0
votes
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
...
0
votes
0
answers
59
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 ...
12
votes
1
answer
837
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 ...
0
votes
1
answer
9k
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 '/...
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
...
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:
...
1
vote
0
answers
515
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))...
0
votes
0
answers
333
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 ...
2
votes
0
answers
4k
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 ...
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’ {...
0
votes
1
answer
175
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 ...
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&...
1
vote
1
answer
4k
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 ...
0
votes
1
answer
213
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 ...
1
vote
1
answer
5k
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 ...
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 ...
1
vote
0
answers
2k
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 ...
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/...
1
vote
1
answer
360
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 ...
4
votes
1
answer
12k
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/...
-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:...
0
votes
1
answer
568
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 ...
0
votes
1
answer
245
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 ...
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 ...
0
votes
0
answers
964
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 ...
0
votes
0
answers
413
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 && ...
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 ...
1
vote
0
answers
49
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 = ...
1
vote
0
answers
941
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....
0
votes
0
answers
305
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 ...
0
votes
1
answer
170
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 ...
1
vote
1
answer
535
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......