Stack Exchange Network

Stack Exchange network consists of 174 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
13 views

Making TunSafe with error message

I'm using opensuse leap 15, I was downloading TunSafe v1.5-rc1.tar.gz from here https://github.com/TunSafe/TunSafe/releases, but I'm the begginner on compiling, just so follow user-guide https://...
1
vote
0answers
12 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
38 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
94 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
54 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
37 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
0answers
24 views

Linux kernel not cross-compiling - how to disable cc1 -quiet flag?

I'm trying to compile the Linux kernel, version 4.12.0, for ARM. I've used a toolchain from toolchains.bootlin.com. However, when I try to do the final make command, it throws several errors about ...
-1
votes
0answers
25 views

Undefined reference to symbol 'XTextWidth16'

I am trying to compile Frequency-time analysis software on Ubuntu and keep getting the error message below. Similar discussions on the on the internet suggest adding -lX11 flag, however this flag ...
0
votes
1answer
13 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
41 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
35 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
140 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
51 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
48 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 ) ...
0
votes
0answers
16 views

How do I profile a build using make?

I have a software project in C built using Make. How can I get a detailed profile/breakdown of the build time? Something like a flame graph showing how long each part took to build.
4
votes
2answers
307 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?
0
votes
1answer
44 views

Why won't make let me build my kernel from source?

$ make menuconfig Makefile:128: *** main directory cannot contain spaces nor colons. Stop. I get this error message. Why?
0
votes
1answer
90 views

How to delete all directories inside a directory except for files, (safely)?

Environment System: Linux Mint 19 Cinnamon. Shell: Bash version 4.4.19(1). Problem Along with hundreds of testing scenarios, I must have created countless of temporary installation directories ...
1
vote
0answers
290 views

RHEL 6.8 installation of user specific python 3.7 completes with 'ModuleNotFoundError: No module named '_ctypes'

I do not have a subscription to the RHEL repos at this time. I am using EPEL for packages that are needed. Goal: I am attempting to setup multiple virtualenv folders for testing purposes. I have ...
1
vote
1answer
561 views

Makefile: Default Value of Variable that is set but has null value

I have a Makefile that has a variable that needs to have a default value in case when variable is unset or if set but has null value. How can I achieve this? I need this, as I invoke make inside a ...
0
votes
2answers
34 views

matching a list of files with GNU make

This is the first time that I use GNU make to try to do something a bit less basic. I'd like the default target of a Makefile to look for any one of a number of matching filenames, a naming scheme for ...
0
votes
3answers
53 views

How to identify the package manager used to install software in CentOS?

On my CentOS 7.2 Server: [root@localhost data]# which php /usr/local/bin/php [root@localhost data]# ll /usr/local/bin/php lrwxrwxrwx. 1 root root 29 Jun 25 08:13 /usr/local/bin/php -> /usr/local/...
0
votes
1answer
58 views

Is there any possibility to use the same Makefile in CentOS and FreeBSD?

Unfortunately, in some old FreeBSD environments I can't use "gmake", so I need to write a Makefile which will work with FreeBSD make also. And the last problem I can't solve - use shell commands, for ...
0
votes
1answer
29 views

Makefile: Copy using make variables --> error; Not so without variables!

In the following makefile InputLocation:=./Test OutputLocation:=$(InputLocation)/Output Input:=$(wildcard $(InputLocation)/*.md) Output:=$(patsubst $(InputLocation)/%, $(OutputLocation)/%, $(Input:...
2
votes
3answers
263 views

Getting 'rxvt-unicode': unknown capability while compiling urxvt 9.22

I am working on Debian. I ran this command: ./configure && make && sudo make install and I got this error: ./etc/rxvt-unicode.terminfo", line 57, col 20, terminal 'rxvt-unicode': ...
0
votes
1answer
25 views

Pass a Make variable to Bashscript that is invoked from inside Make

In a pattern rule I would like to export make variable like $(TargetLocation), $@. I tried the following but It didn't get exported. The bash script is executable. export $(TargetLocation); \ export ...
0
votes
1answer
22 views

How to renice a make with multiple jobs?

I'm running very large kernel compile, and I would like to renice the whole process to at least -1, so it gets a little bit more CPU time. Currently, I'm not running anything else on the machine. The ...
1
vote
0answers
44 views

Build C executable with env variables via Makefile [closed]

I have huge application written in C and Python. I have a Makefile which helps to build final executable on several platforms. Here's a main part (I can't expose too much because of confidential info):...
2
votes
0answers
36 views

Cannot get awk to work properly inside make [duplicate]

I want to parse a file and bracket each line with #ifndef and #endif. For example, starting with: #define X 1 #define Y 2 #define Z 3 I want to generate: #ifndef X #define X 1 #endif #ifndef Y #...
0
votes
1answer
84 views

Pyenv cannot be installed in Manjaro Linux

Hello I have been trying to install pyenv on Manjaro Linux and got an error that openssl is not installed on the system.  I have now installed it. I understand that I am supposed to tell the compiler ...
0
votes
1answer
35 views

Is a POSIX-conformant implementation required to support other than default locales?

I would like to implement a minimal POSIX-conformant make utility. However, the specification mentions that the implementation shall be affected by the following environment variables: LANG, LC_ALL, ...
1
vote
1answer
35 views

Check FreeBSD version in Makefile

I have these lines in my Makefile: PLATFORM = $(shell uname -r) OLD_FREEBSD = 7.3-RELEASE-p2 ...
0
votes
0answers
14 views

installing ebtables into modified linux 4.2.8

I have a version of Linux on a QNAP that is missing GCC, make, and a lot of essential packages to build source code - it does have ping, iptables, etc but I really need ebtables command for my work to ...
0
votes
0answers
14 views

Issues with /lib64/libstdc++.so.6 when trying to run c++ program from within a shell script (Centos 7) [duplicate]

I am having a problem trying to run a C++ application from within a shell script. I am compiling the program calling make from the shell script. For compiling, I am using g++ 7.3.0 which is found in /...
0
votes
0answers
49 views

Shell Script gives error when running C++ program

I'm currently working on a CentOS 7 server. I have a Makefile which works perfectly if I run it from the command line. The problem arises when I try to run my Makefile from a Bash script I'm working ...
0
votes
1answer
144 views

link: invalid option — 's'

I tried to excute a makefile in CentOS 7.5 but the following error is stopping me ERROR: make export make[1]: Entering directory `/shilpa/audiocodes/unimrcp-1.5.0/GrammarSrv/libs/smonkey/common/js/...
0
votes
0answers
35 views

Trouble installing GS from source

I'm trying to install Ghostscript 9.23 from source, and getting some errors I'm not familiar with. I'm using CentOS. $ cat /proc/version Linux version 2.6.9-67.ELsmp (brewbuilder@ls20-bc1-14.build....
1
vote
1answer
34 views

Is there a command line tool for managing packages written by me?

Lately I've found myself writing small programs that I use across multiple machines. I use gitlab to manage these programs. Is there a command line tool that will help me keep my programs up-to-date? ...
0
votes
1answer
61 views

Make - How to suppress make error messages without suppressing other output

I'm implementing a simple build system that's actually just a wrapper around Make. Since this build system already emits its own error messages, I don't want Make to produce error messages like make: ...
1
vote
1answer
41 views

How to run my compiled python not the system installed one

I have compiled python3.6.5 from the source and linked it to my compiled openssl as the following: export LDFLAGS="-L/usr/local/openssl/lib/ -L/usr/local/openssl/lib64/" export LD_LIBRARY_PATH="/usr/...
1
vote
1answer
146 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
2answers
148 views

Is it possible to use bash parameter expansion in Makefile?

My Makefile: FULL_VERSION ?= 1.2.3 MINOR_VERSION := $(shell echo "${FULL_VERSION%.*}") test: echo $(MINOR_VERSION) Running make test gives nothing, I want to get 1.2. I know I can get it via ...
1
vote
0answers
47 views

Linux kernel networking Ubuntu debug message not shown with printk/pr_debug?

I have recompiled the Linux kernel on Ubuntu and now upgraded to 4.17.6. I need to modify the TCP/IP stack parts, in specific one of the congestion control algorithms (eg. Vegas). After successful ...
3
votes
1answer
31 views

appending a line to a file if absent

I'd like to add a series of commands to a Makefile that append config lines when they are not already present. I've done this in the past in a manner like so: grep -vq "keyword" /a/b/c.conf &&...
0
votes
0answers
28 views

Compiling a wireless adapter driver causes header-related errors on Kali 4.16 [duplicate]

I've recently gotten a wireless adapter that I'm trying to install the drivers for. I've upgraded everything (I think), however when it came to running the make file I've got these errors: error: ‘...
0
votes
1answer
19 views

install rcssserver

I'm trying to install rcssserver on Ubuntu 14.04.5, after ./configure I write the command "sudo make" and I get a bunch of lines of description and error. I can someone give me a clue on how to ...
0
votes
0answers
157 views

Apache error during Make “undefined reference to symbol dlclose@@GLIBC_2.2.5”

I'm installing Apache and OpenSSL from source to experiment with HeartBleed. Installing Apache from apt bundled a different version of OpenSSL with it. I currently perform these steps. Installing ...
0
votes
1answer
24 views

-q inside Makefile assignment

Been checking a Makefile which contains: ifdef REALLY_QUIET export REALLY_QUIET ECHO := true LFLAGS := $(LFLAGS) -q YFLAGS := $(YFLAGS) -q endif Could you please point me at what's the ...
1
vote
1answer
91 views

Building XFSTK error on Fedora 28 : /usr/bin/ld: cannot find -lboost_program_options

I downloaded xfstk source and built it. I installed dependencies such as boost, libusb-devel etc... but although I installed boost, I getting error messages, such as the one below, reporting that ...