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
2answers
1k views

How to build svnwcrev

I'm having a bad time building svnwcrew, and as the readme file says: "There is no sophisticated installation procedure for this small utility."... I modified the config.mk file setting the ...
3
votes
1answer
1k views

I want to parse a Terraform vars file and store variables from the TF vars file as vars in a Makefile

I have two files: a Terraform variables file (vars.tf), and a Makefile. What I want to be able to do, is to have the Makefile "read" some of the variables in the Terraform vars.tf file. The vars.tf ...
2
votes
0answers
37 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
1answer
3k views

Simple shell loop fail in Makefile

Why does the shell loop l='abc de f'; for k in $l ;{ echo $k; } inside Makefile not work ? instead only give abc de f at once How to solve such in the definitive way?
1
vote
1answer
18k views

Problem compiling a driver : “No rule to make target”

First of all I am running a CentOS 6.4 installation. My computer is a laptop and I am trying to install the drivers for my ethernet card, because this week end I lost my ability to connect to the ...
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
39 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 ...
-3
votes
0answers
33 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-...
6
votes
1answer
782 views

What does “make install” do in the Makefile that comes with the kernel?

I'm trying to identify what does make install do with the kernel and what does the actual "install" of the kernel once it's been compiled means. The problem is I can't really identify the target (...
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/...
0
votes
2answers
2k views

How to use cat to combine files in Makefile?

First of all, I am not at all sure whether this is the correct place to ask a question like this but... I am currently working on a directory and trying to create a file which would contain all of ...
3
votes
1answer
2k views

Modify filenames in Makefile

For reasons that are not important here, I have a source code that I process automatically file-by-file and the processed source files are renamed in a systematic manner. For example, I start out with ...
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
1k views

Fix for: /usr/lib/libnssutil3.so: undefined reference to `PL_ClearArenaPool'

Error occurs during attempt to make via: cc -m32 -s -o ford_check_password ford_check_pws.o wsl4_cookie_auth.o fds_auth.o -L. -L/ford/thishost/proj/dmadmin/ford/lib -lcrypto -lldap50 -lssldap50 -...
1
vote
1answer
24 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
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
1answer
27 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
1answer
53 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
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/...
1
vote
2answers
171 views

How to get the relative path between two directories?

Say I have a variable with a path release/linux/x86, and want the relative path from a different directory (i.e. ../../.. for current working directory), how would I get that in a shell command (or ...
9
votes
1answer
2k views

What causes Make to delete intermediate files?

I wrote a Makefile and found out that when executing make command, an unexpected rm was executed, after all command in Mmakefile were done. But I didn't write the rm command in the Makefile. run-%: d/...
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
56 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
125 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
37 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
35 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]: ...
3
votes
1answer
2k views

Arch Linux - make: error while loading shared libraries: libunistring

I keep getting this same error when trying to install various packages: make: error while loading shared libraries: libunistring.so.0: cannot open shared object file: No such file or directory It's ...
28
votes
3answers
73k views

Don't stop make'ing if a command fails, but check exit status

I am trying to instruct GNU Make 3.81 to not stop if a command fails (so I prefix the command with -) but I also want to check the exit status on the next command and print a more informative message. ...
56
votes
7answers
57k views

How to determine the maximum number to pass to make -j option?

I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script? ...
1
vote
2answers
722 views

Makefile - Set multiple variables on a single stage

I have this Makefile where I'm having some troubles on simply set some variables: my_stage: echo "FULL_NAME=$(FULL_NAME)" echo "MY_NAME=$(MY_NAME)" $(eval SOME_NAME=$(shell sh -c "...
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
2answers
1k views

file: Compiled magic version [534] does not match with shared library magic version

I am running Amazon Linux centos however the version of the file which gets installed is 5.30. I require a later version. file: Compiled magic version [534] does not match with shared library magic ...
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
99 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
1answer
363 views

make error 127 /bin/sh: 1: /usr/bin/g++: not found using Ubuntu

I am trying to make a program (hisat2) from the source code through Ubuntu. When I do, I get an error 127 and it says the following: /bin/sh: 1: /usr/bin/g++: not found Makefile:273: recipe for ...
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 ...
1
vote
2answers
2k views

Cross-Compiling kernel can't find gcc

I am cross compiling the Raspbian kernel since it will take about 12 hours for the Pi to do (Raspberry Pi 1). I have the build tools for ARM and the kernel in two separate folders in /home/gray/...
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
21 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
269 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
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:...
-1
votes
1answer
167 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. ...
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
1answer
63 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 ...
50
votes
8answers
58k views

Makefile include env file

I'm trying to include some env vars into a Makefile. The env file looks like: FOO=bar BAZ=quux Note there's no leading export to each env var. If I add the leading export and just include the env ...
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 ...

1
2 3 4 5
18