Questions tagged [make]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
62 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
88 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
1answer
442 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
57 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
35 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? ...
1
vote
1answer
385 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
82 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
2answers
463 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
1k 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
77 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
34 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
1answer
28 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
1answer
41 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
144 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 ...
0
votes
1answer
282 views

module makefile fails for armv7l when modules are compressed

I have written a network hook using netfilter. This modules compiles successfully on my ubuntu 16.04. Now I want to compile it in my embedded board which uses a customized Linux using same version ...
1
vote
1answer
414 views

run make install twice

Let's suppose I have my sources/ directory and I run cmake from my home folder like this ~]$ cmake /path/to/my/sources/sources and afterwards I do the installation ~]$ make install After it's ...
0
votes
1answer
387 views

unix makefile error --no rule to make target

I'm working on a makefile for a simple program and it has two files associated with it: main.cpp and game.adt. From game.adt I'm supposed to split it into 2 parts for the header and source code (guess....
-1
votes
1answer
669 views

Makefile not accepting conditionals

I am using the following conditional statement within a Makefile: mytarget: if [ -z "${TAG1}" | -z "${TAG2}" | -z "${TAG3}" ] then echo "Need to set all tag names images ...
3
votes
1answer
700 views

cannot find -luuid error make

I am using centos7 and am trying to build this https://github.com/daveti/prov-tools/tree/master/system however I get /usr/bin/ld: cannot find -luuid I did yum install with libuuid and it says that ...
1
vote
2answers
3k views

export env variables from file in a makefile

I'm trying to write a make task that will export all variables from my .env file, which should look like this: A=1 B=2 If I type in terminal: set -a . ./.env set +a it works perfectly. But same ...
0
votes
2answers
356 views

How to make my Makefile compatible with Cygwin? (install: invalid user ‘root’)

I have written a very simple Makefile $ cat Makefile install_path=/usr/local/bin script_name_1=encrypt-file-aes256 script_name_2=decrypt-file-aes256 .PHONY: install .PHONY: uninstall install: ...
1
vote
0answers
779 views

Proper solution to “No such file stdarg.h” error [closed]

When I try to compile wifi driver for my laptop, I get the following error: ./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory My current solution is to add directory /...
6
votes
1answer
502 views

How to compile Linux kernel modules within white-space-separated directories under the following makefile?

I was trying to compile a kernel module source code, until I noticed that some whitespaces where causing mismatched path names. The directory under which I found myself was: axor@vacuum:~/software/CS ...
5
votes
2answers
2k views

Makefile: kill a process if it is running

I have a makefile like this, that kills a process if it's already running, test: client server pgrep myserver && killall myserver /build/bin/myserver --background /build/bin/...
0
votes
1answer
342 views

Failed “make menuconfig” [closed]

Until now I was able to run make menuconfig successfully. I tried to install cmake packages and thereafter I get, make menuconfig: make[1]: Entering directory '/home/dullollis/esp/esp-idf/tools/...
5
votes
2answers
176 views

bash/debian: strange makefile behaviour

I use a very simple makefile with TeX: test-makefile: echo '\newcommand{\seance}{seance1}' > seances/seance.tex I run it: $ make test-makefile echo '\newcommand{\seance}{seance1}' > ...
-1
votes
1answer
177 views

How do you wii-u-gc-adapter working on 64-bit debian?

Following these guides (https://github.com/ToadKing/wii-u-gc-adapter/blob/master/README.md and https://dolphin-emu.org/docs/guides/how-use-official-gc-controller-adapter-wii-u/#Linux) - I've tried ...
1
vote
2answers
31 views

Which version does make system use if there are several versions of a library

Let's say we have freetype library already installed in /usr/lib64/libfreetype.so whose version is 1.4 and there is another version of this library that we have compiled and installed in /usr/local/...
0
votes
1answer
29 views

Compiling code lacking configuration script in Readme

I am trying to install a handy program which takes xyz files and turns them into POVRAY input scripts: github I have cloned the repository locally, however the first instruction "run ./configure" ...
3
votes
3answers
830 views

How to reverse error code in Makefile

I want to test if file contain a pattern (skipped jasmine tests that should make my build fail, when run from travis). I have code like this: skipped_tests: $(if $(shell grep -E 'iit|ddescribe' ...
-1
votes
1answer
900 views

Why configure/build gcc takes much more time than apt-get install gcc [closed]

Wander to make some modification on libgomp (gcc's OpenMP runtime library), I downloaded the source code of GCC8, and tried to configure/make the whole compiler. The configuration phase terminated ...
2
votes
2answers
506 views

Why don't here strings in Makefiles using Bash work?

I just solved a problem with my Makefile(s). Make trips over every <<< with the error message /bin/sh: 1: Syntax error: redirection unexpected And I would like to know why. (I am using Bash ...
7
votes
0answers
139 views

How to compile the original first World Wide Web Browser (Nexus, by Tim B. Lee) on Debian stretch with GNUstep? [closed]

I recently found on wikipedia some links about the first web browser, I was already fascinated with the idea it could edit, but now I also learnt it could browse news, create anchors, etc. and I’d ...
1
vote
1answer
30 views

make -v report really strange problem [closed]

I'have some problem with build-essentials on Debian Stretch. Since an npm command fail, and the symptom is build-essentials not installed, I reinstalled it from scratch. When checking version, all ...
1
vote
0answers
280 views

Kernel man pages, make: *** No rule to make target 'installmandocs'

As a follow up to this question, How to make the kernel section 9 manpages which document functions, data structures, and headers?. I downloaded the kernel source code and in the source dir execute ...
4
votes
3answers
2k views

How can I partially serialize with GNU make

When I have a make task where a specific target needs to be made before another, while in parallel mode, this is simple when using SunPro Make (dmake). The following makefile: install: dir dir/file ...
-2
votes
1answer
74 views

Which default .config to start from when compiling kernel?

I was reading the Debian handbook here, and it says: "When recompiling a more recent version of the kernel ... the configuration will most likely be kept as close as possible to that proposed ...
3
votes
2answers
5k views

Install Python 3.6 on Debian8 Jessie

Debian8 comes with Python 3.4, but I need to install 3.6 version. I wonder is it possible at all? Cause I failed so many times. I have tried options mentioned in (How to install Python 3.6), but for ...
0
votes
0answers
317 views

Make fails to find include files but they're there

I have configured ffmpeg for Android using the following configuration: ./configure --arch=arm --target-os=android --enable-cross-compile --cross-prefix=/Android/Sdk/ndk-bundle/toolchains/arm-...
2
votes
1answer
76 views

Always build specified targets with FreeBSD make (as with the GNU make -B flag)

I would like to force make on FreeBSD to execute the target I specify no matter if it's up to date or not. I know that it could be done with a -B flag in GNU make but I cannot find anything similar ...
0
votes
0answers
39 views

Exonerate Error while making

I'm using ProductName: Mac OS X ProductVersion: 10.12.6 BuildVersion: 16G1212 trying to working with exonerate Tool but facing many troubles configuration just went smooth tamimis-Mac-Pro:exonerate ...
0
votes
1answer
42 views

How to install a shared library when installing to a system path?

I am experimenting with how to distribute a simple graphics library for Linux using a Makefile. The shared library is called libsgtk.so. Here is my first attempt for the Makefile: CFLAGS= -pthread \ ...
1
vote
2answers
322 views

Makefile: create prerequisite from a list

The usual way to create a 1:1 dependency in Makefiles is by using %, e.g. %o:%cc Imagine I have 50 .cc files and I am interested in only 3 of them. I have constructed a list of their basenames: ...
0
votes
2answers
319 views

How do I avoid make to generate and install man pages?

Context: I'm compiling OpenLDAP on Windows inside CygWin. As I'm not interested in man pages (and possibly other documentation, I'm focused on getting the compilation done), since I can get them ...
0
votes
2answers
53 views

What's $(MAKE) or ${MAKE} actually supposed to mean in make scripting language

What's $(MAKE) or ${MAKE} actually performing in entire make building process. is it invoking a process which is similar to sub-routine i.e. in simplest terms 'call a function', or is it starting a ...
0
votes
0answers
276 views

mosquitto install: make fails (raspberry pi)

I am currently trying to install mosquitto on an old raspbery pi running current stretch raspbian. First I tried to do it via apt-get following this. This however creates a Segmentation fault when ...
1
vote
1answer
168 views

Imake not picking up header files

I am building some software, which is currently unsupported, that uses Imakefiles. The software does have a Imake.tmpl file. It is located (relative to the top directory) in config/cf/Imake.tmpl. As ...
1
vote
1answer
319 views

Linux from Scratch 8.1. Issue related to Zlib 1.2.11

I am doing Linux from Scratch. I am currently at 6.11 section i.e zlib 1.2.11 in LFS 8.2 . I did the following as per the book: 1) Prepare Zlib for compilation: ./configure --prefix=/usr 2)Compile ...
1
vote
0answers
67 views

Can't compile any of three Gegl versions (and one babl)

I have been trying to compile to Gegl versions. The first one is the 0.2.0: When I try to compile it with make, I receive make[4]: Entering directory `/media/34GB/Arquivos-de-Programas-Linux/gegl-...
0
votes
2answers
118 views

Compilation with make: link to library

I'm doing a compilation of PHP for an application with make. The problem is when I do a ldd php I have something like this: libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (...