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
0 answers
15 views

Use of makefile varriable in Batch script [closed]

I have a variable in my makefile (mybuild.mak). The makefile has a variable. i.e BUILD_PATH = D:/<some path> The variable BUILD_PATH is to be used in a batch file (RunTest.bat). How to use the ...
user avatar
0 votes
0 answers
10 views

create Debian package without bin dir

deb package with structure (project (bin(source)) DEBIAN(control)) can be created But want to create deb package without bin directory instead there multiple directories and source file inside project,...
user avatar
  • 101
0 votes
0 answers
17 views

FAILED: load BTF from vmlinux : No such file or directory

While trying to build kernel (4.15) with support Ftrace and debug info, I am getting the following error: FAILED: load BTF from vmlinux: No such file or directory Makefile:1160: recipe ...
user avatar
0 votes
1 answer
6 views

debuild lintian manpage-in-wrong-directory and binary-without-manpage

I am running debuild and lintian automatically finds 2 errors that I have with manpage. the project structure after running debuild command looks like this hoseopjeong@hoseopjeong-VirtualBox:~/...
user avatar
0 votes
0 answers
24 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/...
user avatar
0 votes
0 answers
20 views

Building python from source with --includedir and -libdir

I'm trying to build python from source. I got the error home/jmsh/Python-3.10.5/Modules/_ctypes/_ctypes.c:107:10: fatal error: ffi.h: No such file or directory Since I'm not a sudoer on the machine, ...
user avatar
2 votes
1 answer
72 views

why does my Makefile keep recompiling when there are no changes?

I have a makefile which looks like this all: all_functions all_functions: a_functions.o b_functions.o c_functions.o d_functions.o main.o a.h b.h c.h d.h main.h gcc -o program1 a_functions.o ...
user avatar
1 vote
0 answers
27 views

building a custom freebsd kernel

I am trying to build an arm64 version of the freebsd kernel that has realtek wireless drivers enabled. I absolutely have to customize the kernel options as some of the drivers do not allow boot time ...
user avatar
0 votes
1 answer
37 views

Make: Include file causes "Permission denied" while trying to compile kernel

I am trying to compile linux-5.18.1. I downloaded the tar ball, unpacked it and ran make defconfig. If I then run make, I run into this problem after a while: drivers/gpu/drm/i915/gt/intel_rps.c:16:10:...
user avatar
  • 21
0 votes
1 answer
59 views

make && echo "hello" only print hello when make succeeds (kernel)

For compiling the linux kernel, If I do make_runner.sh && echo "hello" it prints hello even if some of the kernel compilation fails. Is there a way for it to only print if all of ...
user avatar
  • 13
0 votes
0 answers
247 views

/usr/bin/ld: cannot find -latomic: No such file or directory

I am trying to compile some code using gcc. The following error is thrown: /usr/bin/ld: cannot find -latomic: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [...
user avatar
0 votes
0 answers
14 views

Latest hplip for ARM

I'm, having an issue updating hplip to the latest version on the wandboard. It has ubuntu 16.04, and currently hplip-3.18.6. As far as I know that was the last version of hplip which didn't have '...
user avatar
  • 1
2 votes
0 answers
86 views

CONFIG_SOMETHING on vendor/phone_defconfig won't work, have to pass them on `make`

On https://github.com/MoonBase-Project/MSM-4.19-MiBengal/ I had to do make CONFIG_HAVE_KVM=y CONFIG_KVM=y CONFIG_KVM_ARM_HOST=y O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- vendor/citrus-...
user avatar
  • 21
2 votes
1 answer
55 views

Optionally compile translation unit makefile

I'm writing a program in c and I want to optionally compile a translationunit based on whether the user wants to or not. Basically I have two files, one main.c which should always be compiled. ...
user avatar
2 votes
1 answer
17 views

Remake included makefile only when needed

Let's say that I have a Makefile that has two “main” targets: foo.o and clean. The former one has a recipe to create the foo.o file. The latter one removes all the temporary files. To remove the need ...
user avatar
  • 782
0 votes
1 answer
62 views

Makefile subshell if condition

So I have the following code: .PHONY: test test: ifeq ($(grep -Fxq "substring" ./file && echo 1 || echo 0), 1) //do something else //do other thing endif The idea is simply ...
user avatar
  • 25
1 vote
1 answer
27 views

Serialize all rules in GNU make: best practise?

I have a makefile and want to make sure that all the rules are executed sequentially, that is, that no parallel execution is performed. I believe I have three ways of achieving this: With ....
user avatar
  • 366
2 votes
1 answer
116 views

binaries not executable by user (Permission denied) after cmake install / make install to /usr/local/bin

After I install any project on my Debian (Buster) machine with sudo cmake install or sudo make install command, the binary gets placed inside /usr/local/bin but although the PATH variable is set ...
user avatar
  • 83
1 vote
0 answers
24 views

Permission denied error when using make all-recursive?

I am using autotools and GNU make to build a C library, there is a line all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive In the Makefile, and I get an error compiling make all-recursive make: ...
user avatar
1 vote
0 answers
19 views

Output capturing and make under Cygwin: "Unable to initialize device PRN" [closed]

A minimal example of the problem under Cygwin: A directory with a Makefile: all: @echo "foo" and a test.sh: #!/usr/bin/bash x=$(make) print $x Now bash test.sh gives: Unable to ...
user avatar
  • 151
0 votes
0 answers
27 views

How to write inference rule that has two prerequisites in POSIX make

For GNU make, I have this inference rule: %.cmo: %.mli %.ml ocamlc -c $^ I want example.cmo to be rebuilt whenever the corresponding example.mli or example.ml file changes. How do I convert this ...
user avatar
  • 1,942
0 votes
1 answer
62 views

Same make command fails in macOS, but succeeds in Linux

I'm using below Makefile and make publish fails on macOS while succeeding in Linux (alpine, Ubuntu, Debian) with the below error: $ make publish "docker images" requires at most 1 argument. ...
user avatar
  • 287
0 votes
2 answers
189 views

How to get all .c files and store into a variable in a makefile

I am writing inside a Makefile and inside this current directory is a folder called files with a lot of .c files. I need to get all these .c files and store it into a variable called SOURCES. How ...
user avatar
0 votes
1 answer
73 views

How do I install Roccat Vulcan 100 keyboard driver for light effects?

Here's the driver (it is called a "driver", isn't it?) for keyboard backlight. I'm mostly interested in playing with the source code to understand something more about drivers, if possible. ...
user avatar
  • 1,012
1 vote
0 answers
172 views

/tools/build/Build.include: No such file or directory while compiling

I am trying to compile kernel module 4.18.0-240.el8.x86_64. On running make prepare getting the following error DESCEND objtool /usr/src/kernels/4.18.0-240.el8.x86_64/tools/build/Makefile.build:37: ...
user avatar
0 votes
0 answers
34 views

is it possible to install guix package manager to a buildroot environment?

Hello fellow linux users, I am creating a distribution with buildroot and I wanted to install a package manager (guix). The idea is to try to compile it with either make or GCC. Is this possible to do ...
user avatar
0 votes
0 answers
134 views

Installing GCC4.8.5 on CentOS8 using GCC8.5

I am trying to install GCC4.8.5 under CentOS 8 using GCC 8.5. Here's what I did Get the compiler and its dependencies wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.gz tar zxf gcc-4.8.5.tar.gz ...
user avatar
0 votes
1 answer
36 views

Export Makefile parameter

How can I change exported value to one passed by parameter? Makefile: default_value=Default-Value export ENV_VALUE=default_value build: python3 script.py execution: $ make build python3 script....
user avatar
  • 3
0 votes
0 answers
42 views

CMake, specify (or ensure) compilation order

I am migrating a library from one platform to another, so there are tons of problems in each and every source file. The problem I have is that make compiles all these files in some random order, and ...
user avatar
  • 1,356
0 votes
1 answer
25 views

run a command on a layer above my system

I would like to run a command, make in fact, to install something into a "layer". Afterwards I would like to inspect and pack the files in the layer and gzip them. I know this is risky since ...
user avatar
  • 161
0 votes
0 answers
20 views

Fixing Make on Raspbian install, or linking to precompiled copy of V4L driver

Familiar with what Make does, but this is an impressive list of issues to resolve with little understanding of how it does it. Might anyone else be able to assist with what needs doing to resolve all ...
user avatar
  • 2,116
0 votes
1 answer
70 views

SDL Error while building libgraph-1.0.2 on Debian 11

When I run make I get this output That says that it cannot link SDL: /usr/bin/ld: .libs/text.o:/home/mint/libgraph-1.0.2/grtext.h:77: multiple definition of `InternalFont'; .libs/libgraph.o:/home/mint/...
user avatar
  • 1
0 votes
1 answer
54 views

How to debug binary file from legacy FORTRAN? Help

I'm working with an older proprietary FORTRAN legacy code from specific corporation (so can't post much source code), I'm having an issue with the file interactions. My compiler bash shell Install is ...
user avatar
1 vote
1 answer
70 views

Pattern rule in makefiles when the object extension varies

I'm trying to write a makefile where I have a list of .asy files which are each generating a .png or .pdf. I'm getting the correct extension by looking into the file, so I have the list of sources and ...
user avatar
  • 41
3 votes
0 answers
45 views

CLI tool to run commands defined in a config file

I'm working as part of a team of developers on a software project with many moving parts. We use a Makefile to easily run commands and scripts that are regularly needed during development. Examples ...
user avatar
0 votes
0 answers
303 views

Kernel module build can't find find symlink folders: Makefile: No such file or directory

I have a simple kernel module that creates a reverse shell. I created my Makefile like that: cat << EOF > Makefile obj-m +=${module_name}.o all: make -C /lib/modules/$(uname -r)/build ...
user avatar
  • 301
0 votes
0 answers
34 views

Cannot compile (using make) a driver on debian but it works on ubuntu (different computers so it might not be an OS problem)

I have been trying to install debian on an old PC but I had to install the driver for the ethernet module which is a realtek rtl8111 based module. I found a driver, but when I try to make it (after ...
user avatar
0 votes
0 answers
33 views

Independent (isolated) installation of python

We've got a server (CentOS 3.10.0-1062.9.1.el7.x86_64) with Python 2.7 as the system Python. It doesn't have installed pip nor venv nor virtualenv... so I understand that I can not even create virtual ...
user avatar
0 votes
1 answer
21 views

Define a variable based on the result of the execution of a command in make file

I'm trying to use a makefile to bundle a combination of commands that should be run one after the other. Part of the make file looks like the following; .PHONY: dispersion all: dispersion -include ...
user avatar
  • 1
0 votes
1 answer
51 views

why is this makefile command running so frequently

I have the makefile below. Why does the rule for the data/vix.csv target always execute when I run make, though? In a recent answer on SO, someone showed me how to update last_updated.txt on 24 hour ...
user avatar
  • 123
0 votes
1 answer
268 views

Compile kernel module targeting different kernel version

I have a simple "hello world" Linux kernel module that I would like to compile for a different host. My host is on a 5.x kernel version and the target is on 4.x. I do not want to update the ...
user avatar
3 votes
1 answer
119 views

If make isn't supposed to run as root, then how can I install a policy file?

I understand that a Makefile should not require the user to be root. So I'm using /usr/local like this: PREFIX=/usr/local install: install -D example $(PREFIX)/bin/example That works fine. But I ...
user avatar
2 votes
2 answers
130 views

What's the correct format for MAKEFLAGS when using Fish shell?

To improve compile times, the Arch wiki states, Users with multi-core/multi-processor systems can specify the number of jobs to run simultaneously. This can be accomplished with the use of nproc to ...
user avatar
0 votes
0 answers
19 views

Identical .so shared libraries (with no symbols) are generated when compiling different C source files

At the institution I work for we have a User Exit made in Pro*C (SQL embedded in C language). We are having some troubles because identical shared libraries are generated when compiling different ...
user avatar
0 votes
1 answer
100 views

Why does dkms install fail with "incompatible pointer type" on Debian but not Ubuntu?

My system is an Intel nuc (NUC6CAYH), running Debian 11. I'm trying to install a kernel module to interact with the programmable LEDs via acpi. I have successfully installed this module on an ...
user avatar
2 votes
1 answer
195 views

Flag Change after Target in Makefile

I am seeing a line of makefile as follows: $(LAST_TARGET_DIR)/%: LFLAGS += -lpthread -lrt -Wl,-uevaluate In my understanding, $(LAST_TARGET_DIR)/% is a target matching, and after the target should ...
user avatar
  • 145
2 votes
1 answer
169 views

how to compile linux 0.01?

as i came across recompiling the linux kernel, i got a bit interested in the topic. so to go more deep and observe the output, i downloaded the linux kernel 0.01 from github (https://github.com/...
user avatar
0 votes
1 answer
1k views

Preparing the installer to update Linux kernel in a VirtualBox causes errors connected with CONFIG_X86_X32 and modules.order

I'm trying to update my Linux kernel on VirtualBox from version 5.11.0 to 5.14.21. My distribution is Ubuntu 20.04. I also added a new syscall to the kernel but it seems to be ok. $ sudo make ...
user avatar
  • 23
0 votes
1 answer
31 views

FreeCiv will not build because of an error against curl

I am currently trying to build FreeCiv. But I am unable to do so. The error says that there are many commands used that are undefined references when using Curl commands. I sadly could not get a copy ...
user avatar
  • 1
0 votes
1 answer
33 views

Checking command nested in conditional with shell [duplicate]

I am currently trying to create a short and portable way to check if my working git directory is dirty and return T/F accordingly. My ultimate goal is to incorporate this into a Makefile and I have ...
user avatar
  • 3

1
2 3 4 5
19