Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [make]

make is a utility that automates the build process by managing dependencies amongst targets.

0
votes
0answers
10 views

How do you specify the pkg-config path when compiling something with cmake?

I want to build ffmpeg with support for the av1 codec on CentOS 7. I start by following the instructions here: git clone https://aomedia.googlesource.com/aom mkdir aom_build cd aom_build cmake ../aom ...
0
votes
1answer
24 views

Use make with more

When I try to filter make with more it does not work: make | more Not exactly sure why that it is. How do I paginate make's output? By "does not work" I mean it does not work at all. It is as ...
4
votes
1answer
51 views

Does POSIX make not support globs in prerequisites?

I was reading the POSIX 7 Make definition, and I've noticed that prerequisites are almost always described as “files”: The make utility examines time relationships and shall update those derived ...
0
votes
0answers
16 views

Arch linux: unexpectedly shut down while installing a program

I was running $ sudo pacman -S make to install make utility. During installation the power plug from my laptop was removed. I tried boot system and it works. I removed make files that I ...
0
votes
0answers
8 views

Update included makefiles on running main-Makefile

My main Makefile includes different sub-Makefiles depending on the target, like this: ifeq ($(MAKECMDGOALS),test) -include ./src/test/c++/Makefile endif ifeq ($(MAKECMDGOALS),build) -include ...
0
votes
0answers
46 views

Why am I receiving make errors when trying to compile GCC?

I am currently working on Linux From Scratch part 5.5: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html Although i have followed everything exactly correctly to this point, I ...
0
votes
2answers
44 views

Why does my find (+ sed) command work in the terminal but not in a makefile?

I have the following command: find stdlib/main -type f -exec sh -c "echo {} | sed -e 's/stdlib\/main\///g' -e 's/\.q//g' -e 's/\//\./g' -e 's~^~/resource:\"{},~g' -e 's/$/\"/g'" \; The goal is to ...
0
votes
1answer
84 views

Compiling a Unix application in Linux [closed]

Clearly there's similarities in the underlying operating system when it comes to Unix and Linux. Is there a reason why compiling a Makefile won't compile on a Linux OS versus on a FreeBSD or OSX OS ...
0
votes
1answer
50 views

How to suppress all warnings being treated as errors for format-truncation

I am trying to build my source using gcc 8.3.0 root@eqx-sjc-engine2-staging:/usr/local/src# gcc --version gcc (Debian 8.3.0-2) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free ...
0
votes
1answer
23 views

How to compile Neofetch (from git) in arch Linux?

I know the latest Neofetch is available in the official arch repository but I want to build it from the git clone. Since it doesn't have the PKGBUILD so makepkg is out of question and the global step ...
1
vote
1answer
28 views

something wrong with my makefile about wildcard

I have a bunch of .c test source file in directory tests/. Now I want to compile and link them respectively and output the executable *.out in tests/. So I wrote a makefile, which didn't work. # ... ...
2
votes
2answers
50 views

installing old 32-bit software on latest UBUNTU

I'm trying to install legacy software (32-bit) on a 64-bit LINUX HPC cluster. This is quite old software from 2005. Software is at https://www.drive5.com/pals/ OS details are PRETTY_NAME="Ubuntu 18....
1
vote
1answer
40 views

-lm doesn't work for my Makefile

I'm trying to create a Makefile to compile my project. However, when I use the 'math.h' library, my make fails. This is the Makefile file : run: tema1 ./tema1 build: tema1.c gcc ...
5
votes
2answers
257 views

Makefile strange variable substitution [duplicate]

My Makefile looks like this: %.foo: %.bar cp $< $@ test: *.foo echo *.foo I have 2 files in the directory: a.bar and b.bar. When I run make test it outputs: cp b.bar *.foo echo *.foo *....
0
votes
0answers
15 views

Error making vince-perf_defconfig

When I want to enter the vince-perf_defconfig file in the terminal, I get an error message like this make vince-perf_defconfig ./scripts/fetch-latest-wireguard.sh: line 7: curl: command not found ./...
0
votes
1answer
35 views

Why does make regenerate the main executable file in this makefile?

I have the following makefile: ############################################################################################################################################ ############################...
0
votes
0answers
48 views

The “make” command in Linux

I have successfully downloaded all of the files and libraries necessary for compiling and making the Courier Mail Server version 1.0.6. I have also downloaded most of the Sox files as well. I am ...
8
votes
6answers
905 views

What are the advantages of using `make` for small projects? [closed]

I've seen that make is useful for large projects, especially with confusing dependencies described in a Makefile, and also helping with workflow.  I haven't heard any advantages for using make for ...
0
votes
2answers
70 views

Cannot compile git on OpenBSD

I'm trying to install git on a college server, just for my user, but for some reason I can't compile it. I tried the latest version on github, as well as a couple random older versions from both ...
0
votes
1answer
64 views

Hello World Makefile

Can any one explain the simple makefile give below, as i want to start with kernel module programming and i am not getting it. obj−m += hello−1.o all: make −C /lib/modules/$(shell uname −r)/...
0
votes
1answer
62 views

Assigning comma separated lines to a variable

(Is it possible/How) to assign comma separated lines to a variable in make file? var1=name,name2, name3,name4..... For space separated I just have use \ like this var = name1 name2 \ name3 name4
2
votes
1answer
50 views

Could not find a suitable mpi compiler (mpicxx or mpic++) whlie using “$ make -f Makefile.shlib auto ”

As figure shows, I'm using Linux to install LIGGGHTS, when i type "make -f Makefile.shlib auto", it shows me [auto] Error 2, i tried to set USE_MPI to "OFF", but it did't work, my Question is, how do ...
1
vote
1answer
113 views

Why does my Makefile not compile and how can I fix it?

I have been having problems compiling a router's kernel for QEMU. I have the router working in QEMU using an OpenWRT kernel, but networking does not work. This is why I want to compile the original ...
3
votes
0answers
50 views

kernel 2.6.35.3 - how to convert .config to defconfig

If you have newer kernel (i.e. > 2.6.35.3) you can create a 'defconfig' from a '.config' by using make savedefconfig But in kernel 2.6.35.3 - does not provide you with 'savedefconfig' target. How ...
0
votes
1answer
93 views

Compiling vsftpd on CentOS7, getting “/usr/bin/ld: cannot find -lcap” error

I am in the process of compiling vsftpd, but keep getting this error: [alex@lab vsftpd-3.0.3]$ make gcc -o vsftpd main.o utility.o prelogin.o ftpcmdio.o postlogin.o \ privsock.o tunables.o ftpdataio....
3
votes
1answer
65 views

Prevent completion of files for 'make' command in zsh shell

Context zsh shell, oh-my-zsh framework, no special zsh's configuration (same problem with or without zsh-completions): see .zshrc at the end. Trouble If a directory contains: a makefile with ...
0
votes
1answer
86 views

Alpine Linux - can't build libtorrent, missing linux/netlink.h

I'm trying to compile libtorrent on Alpine Linux. autogen and configure work fine but after invoking make it fails with the following message: local_addr.cc:45:10: fatal error: linux/netlink.h: No ...
1
vote
0answers
46 views

gcc 8.2.0 build fails on LFS v8.3

While building all packages in order every single one of them has succeeded but gcc 8.2.0 build fails. Below is the build error on executing make: msgfmt: error while loading shared libraries: ...
0
votes
1answer
130 views

Script or makefile to automate new user creation?

I'd like to have either a shell script or makefile to automate new user creation. I can't decide which of approach is better - a script or makefile? I have two types or users - both are SFTP chrooted,...
0
votes
1answer
115 views

Getting error while making dash wallet

I just run successfully run the commands ./autogen.sh ./configure Then I get some error while running make The errors is followings Making all in src make[1]: Entering directory '/home/myname/...
1
vote
0answers
208 views

I tried to use wireguard docker image,but I failed

I deleted all the datas in VPS,and reinstall a new Centos 7 and I downloaded the lastest stable kernel source code 4.20 and extracted it to the source directory which is /usr/src,then I builded it.the ...
1
vote
1answer
58 views

Tracking dependency loop in kernel/kconfig

I'd like to track a dependency loop in the linux kernel kconfig setup. When compiling with gcc-6.3 I can do the following without no issues: $ make ARCH=powerpc custom_defconfig $ make ARCH=powerpc ...
1
vote
1answer
276 views

#include pcap.h make fails for hcxtools

I'm running the latest version of Kali on a VirtualBox, and I cannot get hcxtools installed. More specifically, I can not figure out how to get the dependency pcap.h. Running make in /hcxtools ...
1
vote
1answer
77 views

ERROR: checking the archiver (false) interface… unknown

While I was installing pcre2-10.21 on Solars 10 (SunOS 5.10 Generic_147440-01 sun4u sparc SUNW,SPARC-Enterprise) the ./configure command led to the above error. checking the archiver (false) ...
0
votes
1answer
165 views

usr/bin/ld: cannot find -lCbc

I'm trying to use make, it returns these errors and simmilar ones : usr/bin/ld: cannot find -lCbc usr/bin/ld: cannot find -lCgl I have already found similar issues, and tried a great deal of them. ...
0
votes
0answers
24 views

Problem finding required libraries on ubuntu 16.04

I have used the following command sudo apt-get install coinor-cbc and get the following result coinor-cbc is already the newest version However, when I am building a package which require some non-...
0
votes
1answer
40 views

confused about lfs sources installation

I started to homemode Linux build using LFS book. I came to Part II. - Chapter 5 about "Constracting a Temporary System". I downloaded all needed sources to /mnt/lfs/sources. When i want to start ...
1
vote
0answers
35 views

How can I find the root cause of “WARNING: unmet direct dependencies detected for …”?

When configuring a kernel with make xxx_defconfig, I face WARNING: unmet direct dependencies detected for HOTPLUG. How do I know where the error is coming from Error WARNING: unmet direct ...
-1
votes
2answers
50 views

Grep command for string doesn't exits only in uncommented line

try2: set -vn set -o pipefail set -e if grep -v '^#' file.tx | grep -P 'name' file.tx; then \ echo " No name"; exit 0;\ echo " This message is print from file.tx" \ ...
2
votes
3answers
153 views

Grep string only in uncommented line

How can I grep the string which is only in uncommented line? I don't want the result to be included for string in commented line. For example: In file.tx My name is Jane #My name is Sara I want to ...
1
vote
2answers
483 views

sudo make install - what is being installed?

I have to run this cryptic block of code. git clone https://github.com/OpenICC/xcalib.git cd xcalib cmake CMakeLists.txt sudo make install The procedure I'm following mentions the uninstall process. ...
1
vote
2answers
45 views

Is it trivial to compile standard Intel Debian programs to Arm?

Is it trivial to compile standard Intel Debian programs to Arm? Am I simplifying this process? Take any of my favorite programs (R Studio, Sublime Text, Peek, etc.) Find the source code on GitHub or ...
0
votes
1answer
45 views

checkinstall equivalent of `make install -C build`

What is the equivalent of: sudo make install -C build for checkinstall? Is it enough to: cd build sudo checkinstall ?
0
votes
1answer
46 views

Installing tarball without Make?

I don't have internet access on my new Xenial VM, but I do have SFTP to a server which does. The issue is I need to install some packages. Getting them is fine, I just download them to my internet-...
0
votes
1answer
41 views

Can't access files from within makefile

Whenever I do for f in data/*; echo $f; done from a terminal, it correctly outputs every path. However, if I add the said line to a makefile, let's say test: for f in data/*; echo $f; done ...
1
vote
4answers
836 views

Argument list too long error with makefile

In a makefile, I have @echo "$(IGNORE_DIRS) $(CLEAN_FILES) $(CLEAN_DIRS) $(REALCLEAN_FILES)" | tr ' ' '\n' >> $@ The problem is that $(CLEAN_FILES) is quite large, so when I run make, I get ...
-1
votes
1answer
58 views

Makefile fails when trying to run a C program [closed]

I have a bunch of tasks in making a Makefile file, I have these files: https://raw.githubusercontent.com/systems-cs-pub-ro/uso/master/tema1/boo.c https://github.com/systems-cs-pub-ro/uso/raw/master/...
0
votes
2answers
33 views

Make And Configure Form Variations

I see some installation instructions that take the form of: ./configure make make install And others that take the form of: ./configure && make install Are there any differences in how ...
1
vote
1answer
65 views

debugging a statement in a Makefile on OpenBSD

It is not clear to me, where the error comes from, the Makefile code follows: platform_id = $$( uname -s ) platform = $$( \ case $(platform_id) in \ Linux | FreeBSD | OpenBSD | NetBSD ) ...
4
votes
2answers
667 views

Makefile and .ONESHELL

When .ONESHELL is not used Makefile executes each shell commands in a separate shell. What is the benefit of this? Why doesn't makefile uses the same shell?