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
1
vote
0answers
24 views

Permission denied when running program from make

I'm trying to debug a problem, where I can not run flutter from make. This is my minimum Makefile which reproduces the issue. fails: flutter doctor works: sh -c flutter doctor And the ...
0
votes
0answers
23 views

Is there way to use an associative array in Make?

I'm writing a wrapper makefile that wraps a vendor supplied SDK and our product specific code. In order to get my build to work as per the SDK build requirements, I need to symbolically link a set of ...
1
vote
2answers
47 views

Is it possible to display variables outside rules using GNU Make?

Is it possible to display variables outside rules using GNU Make? Consider the following Makefile: x = foo bar baz ifdef x @echo $(x) endif This results in Makefile:4: *** commands commence ...
0
votes
0answers
17 views

Makefile setting library path based on user input

im writing a makefile for a java aplication using javaFX, so when the app is compiled or run the command needs to specify the path to the javaFX library, with an option that looks like this: --module-...
1
vote
1answer
46 views

How do I make libtool honour installation prefix?

I'm trying to build and install the PDF viewer Atril from source in the directory $HOME/.local on a computer running Debian 10. I have issued the commands cd "$HOME/.local/src" apt source ...
0
votes
1answer
40 views

Unable to install network driver r8125 on debian

Solved, but currently I'm not allowed to mark my own answer as the accepted answer. I bought a new system and want to install promox ve on it. Unfortunately the instllation process is not able to get ...
0
votes
0answers
27 views

Gcc not found : cannot compile c program in a Buildroot image for STM32MP

I'm trying to compile a C program with gcc in a image that I have made with buildroot for STM32mp157a-dk1, but I get: $ gcc bl.c -o bl -sh: gcc: not found $
0
votes
0answers
22 views

Failed to build linux for a buildroot configuration output/build/linux-4.19/.stamp_built] Error 2

I'm trying to update buildroot to 2021.02.2 for a buildroot configuration for Beaglebone , and during the compilation i got this message : make[1]: *** [Makefile:1052: drivers] Error 2 make[1]: ...
0
votes
1answer
36 views

Accessing $@ (the file name of the target of the rule) outside of the rule

Suppose I want a program (say, Some_Command) to obtain the name of the target as one of its parameter (passed with flag -p) from the command-line, and that I want the parameters with which the ...
0
votes
0answers
52 views

Ubuntu: make error: command not found

I have the following makefile, I didn't write myself it was part of an installation of TAU profiler. I ran the make command as suggested by the installation steps: make CC=tau_cc.sh Then I got the ...
0
votes
0answers
20 views

Linkage error after doing changes in programming code

I had a program running with a certain number generator and I switched to another one that is already in CUDA (CURAND), I tried changing my makefile accordingly but this is causing linkage errors I ...
0
votes
0answers
32 views

Error with “make” command

I'm trying to install PX4 on the Navio2 board, I'm having some issues with the native build. Right after cloning the firmware by git clone https://github.com/PX4/PX4-Autopilot.git --recursive command ...
1
vote
1answer
15 views

Getting error in /bin/sh when trying to use a makefile

I am trying to compile a file using a makefile but for some reason, I am getting an error in /bin/sh, I am getting the following: nvc FLAGS(LDFLAGS) black_scholes.o gaussian.o main.o parser.o random.o ...
0
votes
1answer
17 views

FreeBSD - problem with linking protobuf

I have a small application that was tested on Linux and it worked. Now I would like to build the same code on FreeBSD. To build it on FreeBSD I needed to change a little my Makefile. Here is my ...
1
vote
1answer
133 views

How to install dwm in void linux

What is it, the dependencies for comiple dwm from scratch for install dwm (suckless windows manager) in arch linux , i need to install xorg and make and other
-1
votes
1answer
65 views

When I need to make that error appeare

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali7-amd64/build M=/var/lib/apt/lists/rtl8812au modules make[1]: *** /lib/modules/5.10.0-kali7-amd64/build: No such file or directory. Stop. ...
0
votes
1answer
45 views

compiling bash doesn't work, LFS

I have been following the instructions of the LFS manual so far but have come to an error when making bash, I ran make in the bash-5.1 folder but it displayed an error at the end of the command output:...
3
votes
2answers
181 views

AWK CUDA version command syntax error when starts from Makefile

I have some issue I just want to catch exact CUDA version using nvidia-smi from command line and it is working in shell: $ nvidia-smi | awk -F"CUDA Version:" 'NR==3{split($2,a," ")...
0
votes
0answers
24 views

MakeFile problem only have .Object files

As the title say i have a problem compiling so i have my makefile who compile great my .cpp , then I have .o in the bin directory but after that its off I stay with my .o files and nothing change , It ...
0
votes
1answer
53 views

Unable to make file in Linux Ubuntu 20.04 LTS

I am trying to install a fluid simulation software (https://github.com/cwrowley/ibpm). I have installed all the dependencies and was ready to execute the make command. Here is the error that I am ...
1
vote
1answer
21 views

Use an interactive shell under Make

I'm trying to use an interactive shell under Make. Here's an example with Docker: ubuntu: docker run -it ubuntu bash This ubuntu target doesn't work well. For example, when I type I can't see the ...
1
vote
1answer
51 views

Installation of “darling” on Debian 10 is failing

I'm trying to install darling to Debian 10, but it is failing. I've got two .deb files from here, the first is just darling, and the second is darling-dkms. Trying to install the first one, I get the ...
0
votes
1answer
44 views

GNU Make exports macro as environment variable only when it's already present

Consider the following Makefile: X = macro-X-value foo: echo $$X $(X) The intention here is to use X both as a name of an environment variable and of a macro. When using bmake, it works as ...
0
votes
1answer
23 views

How do I determine a device mentioned in “ld: final link failed: No space left on device” message during 'make'

I am trying to comlete make command when installing kernel 4.19.188-amd64. But I get No space left on device after 2 hours after make command. I increased /tmp folder, set TMPDIR to a folder in home ...
0
votes
0answers
8 views

I am trying to install MCScanX-transposon but it says makefile not found

I am trying to install MCScanX. MCscanX was installed successfully but I am getti9ng error while installing MCScanX-transposon. When I write make, it says no target specified. I also tried ./configure ...
0
votes
1answer
107 views

How I can install some gcc compilers in arch linux?

I need to install earlier gcc than now. I already have gcc-10. I must install gcc-8 or gcc-6 in my computer then to build old project. I download the gcc-6 from github and tried install it as shown in ...
0
votes
0answers
101 views

Can't compile any c program (/usr/bin/ld: 1: Syntax error: newline unexpected) [duplicate]

Hello everyone, I have a serious issue, i can't compile any c program, i get the following error : /usr/bin/ld: 1: Syntax error: newline unexpected collect2: ld returned 2 exit status I have found on ...
0
votes
1answer
47 views

Make file not working c

A4: main.o testA4.o helper.o miscFunctions.o queueFunctions.o headerA4.h gcc -Wall -std=c99 main.o testA4.o helper.o miscFunctions.o queueFunctions.o main.o: main.c headerA4.h gcc -Wall -std=...
0
votes
0answers
42 views

Compiling with make fails with “Makefile:8: target 'all' does not exist”

I am trying to compile sourcecode for an Adaptec SAS HBA device driver on Debian 10.7 kernel 4.19, because the .deb file available for this driver is upto Debian 6.0 compatible, released 2012. It is ...
0
votes
1answer
75 views

Build debian package using stdeb

I have been trying to build .deb packages for Debian from Python modules. After going through Debian's LibraryStyleGuide for Python, Pybuild and An Overview of Packaging for Python, I decided I am ...
3
votes
1answer
37 views

Use of dpkg --print-architecture to control build in a makefile

I am trying to figure out some work around to use dpkg --print-architecture in a Makefile. No responses to my previous query on gnustep, so I'll try again with my last failed work around. From ...
-2
votes
1answer
62 views

Makefile using $() instead of `` backticks

How do I properly escape a the shell expansion syntax $() in a Makefile? .PHONY: test test: @if [ `find myDir -type f -not -name '*.openapi.yaml' | wc -l ` != 0 ]; then \ echo &...
0
votes
0answers
24 views

Countless “undefined reference to: …” when compiling gtk 2.24.1

I have been trying to build gtk. Yet, everytime I try, I end with countless errors like these: /media/34GB/Arquivos-de-Programas-Linux/Glib-2.28.8/lib/libgio-2.0.so: undefined reference to `...
0
votes
0answers
22 views

error: implicit declaration of function 'rdtscl' cc1: some warnings being treated as errors

I'm following Step 3a of instructions here: https://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom But I'm receiving this error: It is suggested: find where -Werror is set and remove that flag I ...
0
votes
1answer
59 views

Makefile - Providing Optional Arguments

I'm very new to scripting and makefiles, and am curious about the passing of command line arguments. So, let's say I have a makefile which compiles and runs something in C, for example CompileAndRun: ...
1
vote
1answer
101 views

Invalid module format error

after command make I call command sudo insmod example1.ko , I am insertig password and then I had error like this insmod error: could not insert module example1.ko: Invalid module format. My version ...
0
votes
1answer
50 views

Problem with compiling module: “No rule to make target”

I created source of simple module for kernel named example1.c #include linux/module.h static int __init _init_(void) { printk(KERN_INFO"Hello"); return 0; } static void __exit _exit_(void) ...
-2
votes
1answer
239 views

make: *** No rule to make target … Stop

I failed to compile the below software but ran into an error. wget -c https://sourceforge.net/projects/r8s/files/r8s1.81.tar.gz tar xvfz r8s1.81.tar.gz cd r8s1.81/src make -f Makefile.linux ...
0
votes
0answers
32 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
47 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
34 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
39 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
127 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
58 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
124 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
190 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
74 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
61 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 ...

1
2 3 4 5
17