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
2
votes
0answers
35 views

Why would one M1 machine need architecture-specific options for building from source and other M1 machines not?

I have tool version managers in the Ruby and react-native worlds that (underneath the layers of abstraction) end up building software like Ruby from source using a fairly mundane: ./configure ./make ./...
0
votes
2answers
45 views

Map over file tree, preserving structure

I have a file tree that looks like: $ tree src src ├── bible │   ├── index.md │   └── README.md ├── index.md └── other.md I want to render every Markdown file within this file tree to HTML via pandoc(...
-4
votes
0answers
37 views

How to get processId of a command(running through a Makefile)?

Goal is to send SIGINT signal to a process id Makefile has below task task: pretask docker run --name some-container -d -p 9042:9042 cassandra:latest sleep 20 go run ./cmd/serve/main.go ...
-2
votes
0answers
32 views

Problem compiling a driver : “No rule to make target” Kali Linux(Virtual Box)

Hi I'm trying to compile a driver, to allow me to use my wireless adapter. I'm getting the error below compat-wireless-2010-06-26-p/config.mk compat-wireless-2010-06-26-p/master-tag compat-wireless-...
1
vote
1answer
25 views

Autocompletion of makefile with makro in zsh not correct (works in bash)

I have a makefile that has the targets start-prod start-test stop-prod stop-test restart-prod restart-test Autocompletion works in bash without problems but in zsh it will only complete start- etc. ...
0
votes
0answers
22 views

how to create a project having following dependencies? [migrated]

the concept of make file and make command should be used as much as I know. kindly give some hints.
1
vote
1answer
23 views

export env variable does not work from Makefile

We have below task in Makefile: test: export SOME_ENV=someTest go test -tags=integration -v -race ./tests/integrationtest/... on shell prompt, SOME_ENV is set and the next command(go test) ...
0
votes
1answer
26 views

Override makefile precious variable

configure.ac has precious variables[1], which are supposed to be subbed-in when calling configure, e.g. configuring the location of the system Lua interpreter as a precious variable[2]: configure.ac: ...
0
votes
2answers
83 views

Makefile with selection

I am using the following makefile to run the command texi2pdf 06a-amcoh.texi But I also have two other files, namely 06a-amcoh-igm.texi and 06a-amcoh-rfc.texi, which I also want to be able to call ...
0
votes
0answers
23 views

error while compilation of make file .Needs guidance

g++ -g -I/home/dell/Desktop/pythia8244/include -I Analysis.cc -o Analysis.exe -L -L/home/dell/Desktop/pythia8244/lib -L/home/dell/Desktop/HepMC-2.06.09/src/lib -L/home/dell/Desktop/LHAPDF-6.2.3/...
0
votes
1answer
52 views

Makefile for texi2pdf command

I use texi2pdf to generate pdf files from texinfo files using the command texi2pdf myfile.texi Am working on using a makefile for this and have written name=06a-amcoh texi=${name}.texi pdf=${name}....
0
votes
1answer
58 views

Error when using Makefile..sed

An app is trying to configure with sudo make configure (cd /opt/ioapi-3.2/ioapi ; sed -e 's|IOAPI_BASE|/opt/ioapi-3.2|' -e 's|LIBINSTALL||' -e 's|BININSTALL||' -e 's|IOAPI_DEFS||' -e 's|NCFLIBS|-L/...
1
vote
0answers
30 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
27 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
51 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
29 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
54 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
115 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
35 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
31 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
93 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
37 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
20 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
250 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
151 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
52 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
188 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
60 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
82 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
46 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
26 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
166 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
105 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
48 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
44 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
112 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
44 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
78 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
25 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
24 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
87 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
153 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
52 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
404 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 ...

1
2 3 4 5
18