Questions tagged [make]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

make[3]: *** [MP_constant.lo] Error 1

please please help me I am trying to install coin-or. I am in step of configuration : from this guide : https://ma.juii.net/blog/install-coin-or when I type : sudo make -j 2 I get this errors:...
1
vote
0answers
51 views

Add extra options to `make` command

Is it possible to specify some variables in make command (pass variables from outside the makefile) when compile code, for example: make "CPPFLAGS=-I${SRCBASE}/include" LDFLAGS="-L/usr/local/lib/" ...
0
votes
0answers
23 views

Pipe inputs from more than 1 process

I am trying to automate some make commands. Along with the target we have a variable that is passed to make (corresponding to set of a #ifdef's in code). The make command looks like this: make <...
0
votes
0answers
19 views

Python/strdup.c:6: error: expected identifier or ‘(’ before ‘__extension__’

I am trying to manually install Python 3.6.8 on RHEL 6.6 servers as I do not have root access. The configure didn't give any errors but the "make" gives the following: Python/strdup.c:6: error: ...
15
votes
3answers
49k views

Difference between “make install” and “sudo make install”

Sometimes I encounter problems with using make install which gives me a permission denied error when writing to some folders. So instinctively I use sudo make install. Will this introduce additional ...
-1
votes
0answers
39 views

build executable for linux

This link http://aaf.sourceforge.net/AAFProjectFAQ.html, gives steps on how to build executable. However make , make install does not yield executable as expected in folder Utilities/aaffmtconv. I am ...
-5
votes
0answers
53 views

'make all' command doesnt work on kali-linux

I am trying to set up monitor mode on Tp-link wn722n (version 3) following this youtube tutorial: https://www.youtube.com/watch?v=urnUaNj3-sw But a few errors came up the moment I tried this ...
0
votes
1answer
56 views

GCC cross-compiler can't find header file

A host PC with a pre-built cross toolchain for ARM target. I try to build a project from source, the build process stopped due to an error, when code tried to build pppd-2.4.1 module, here is ...
1
vote
1answer
26 views

Installation without makefiile - error: No targets specified and no makefile found

I am trying to install the following piece of software: https://github.com/linron84/JST I cloned the repo to my computer, changed into the directory and tried to execute 'make' to install the ...
0
votes
1answer
959 views

What changes to be done in Python file when Makefile is being used?

I have a set of python class files. I run the MainProgram.py on the linux as python MainProgram.py which uses the rest of the class files.It reads from an input file and write an output file. Until ...
8
votes
1answer
7k views

Difference between make-kpkg and make deb-pkg

I would like to know the exact difference between make-kpkg and make deb-pkg . This question asks almost the same thing but with no satisfying answers. Previously I was using make -j `getconf ...
0
votes
1answer
920 views

CMake returns linux/videodev.h not exist while build opencv

Got problem while building opencv accoding to link: Determining if the include file linux/videodev.h exists failed with the following output: Change Dir: /home/pi/opencv-3.1.0/build/CMakeFiles/...
1
vote
1answer
30 views

How to set CPU_FLAGS_X86 during Gentoo Stage 3 Install From Minimal without cpuid2cpuflags

I'm attempting my first Gentoo install, I'm relatively well versed in Linux but haven't done a ground up install before like this. I'm installing from Minimal and trying to set my CPU_FLAGS_X86 and ...
1
vote
1answer
42 views

apt-get install imagemagick - doesn't work with previous make install

I have previous installed imagemagick from source via make install on my Debian. Now I want to install via apt-get install imagemagick but it doesn't work Have tried to delete all binary files rm \ ...
3
votes
3answers
136 views

What is “sed -i 's,-m64,,g'” doing to this Makefile?

What is the meaning of sed command sed -i 's,-m64,,g' Makefile? Does it simply remove -m64 argument from Makefile? Is it the same with sed -i 's/-m64//g' Makefile, just use / delimiter in place of ...
0
votes
1answer
17 views

Makefile run bibtex command only when tex file has bibliography

I want to have a folder full of any number of .tex files where I will have a single Makefile, which will generate a .pdf file for each .tex file when make is run. The constraint I have is that some, ...
5
votes
1answer
1k views

Autocomplete in make based on possible targets

The Makefile is: %.pdf: %.tex rubber -d $< If there is a doc.tex in the directory, then make doc.pdf builds doc.pdf. The problem is that when I type make, the autocompletion gives nothing: it ...
1
vote
3answers
42 views

How to compile fIcy for BSD?

I'm trying to compile fIcy (https://gitlab.com/wavexx/fIcy) for NetBSD/FreeBSD. When I'm executing the make command nothing happens. Even no error message. The same source package compiles without ...
11
votes
5answers
8k views

Compare two kernel config files from the menuconfig perspective?

I have a situation in which i have two kernel config files (for the same kernel source ). Both of them have a part of the functionality that i need (on one, USB works correctly, on other, the second ...
1
vote
0answers
21 views

passing arguments to c++.bin

I am having the following issue when making HSAIL: [ 3%] Built target libhsail-includes [ 6%] Building CXX object libHSAIL/CMakeFiles/hsail.dir/HSAILScannerRules.cpp.o In file included from /home/...
0
votes
1answer
21 views

Ubuntu: execute a terminal output inside Makefile

I have a command that spits as an output another command. I'd like to run this output in a makefile script. The simpler command I could reproduce is awsecrpush: VAR=$$( sudo echo "ls -lah" ) | ...
1
vote
1answer
41 views

How to make devtoolset g++ available for Makefile in docker's centos7?

I am building a docker image from a basement image which installed the CentOS 7. The code that need to be compiled need some features in C++14/17 standard, thus i have to update the default gcc/g++ ...
1
vote
2answers
493 views

php links against system libxml instead of version specified by ./configure --with-libxml-dir

I'm trying to build php-5.5.33 from source on a Debian 8 system; configure and make both run successfully, but when I run make install I get the following error: Installing PEAR environment: /...
0
votes
1answer
50 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 ...
1
vote
2answers
1k 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
39 views

Makefile commands with external args and internal variables

In a Makefile target I have a list of files that I want to split into x parts and work only with one part y, then pass those file names as argument to a test runner. I have no control over the ...
0
votes
0answers
24 views

changing one compilation of make

Is it possible to change some specific compilation made when executing Make, say by appending some new option for the compiller used for one target? One thing I want to do is to modify options because ...
1
vote
1answer
532 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 ...
0
votes
1answer
79 views

/lib/ld-linux-armhf.so.3: No such file or directory

I encountered some problems when compiling gutenprint-5.2.9.tar.bz2: ./extract-strings `cat xml-stamp | sed -e 's;^;./;'` > xmli18n-tmp.h.tmp /lib/ld-linux-armhf.so.3: No such file or directory ...
0
votes
0answers
11 views

Where to install .cls/.sty files?

I am writing the makefile for a program I have written which produces latex output, however, it requires a custom .cls file. Is it best practice to let the user put this file in the correct directory ...
0
votes
2answers
2k views

Makefile looping files with pattern

In bash, I can do this: for name in sqls/*.{schema,migration}.sql; do echo $name; # some operation on the file name done It would output something like this: sqls/0001.schema.sql sqls/0002....
1
vote
1answer
32 views

Errors when trying to build openssl-1.0.2l

Debian 32-bit host PC, with a pre-built toolchain for ARM target in /opt dir. I tried to cross-compile project from the source code, got a lot of errors when system tried to build openssl package: &...
0
votes
1answer
1k views

Confused about why makefile is not generated

I have a lot of code used by our group. The group gave me a document that explains how to set up the makefile. However, the postdoc entered the commands really fast before and got it to work for a ...
3
votes
1answer
1k 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 ...
2
votes
0answers
32 views

How to chain multiple automatic responses to make for Linux build?

Currently I have a script capable of selecting the cpu subarchitecture for a Linux build, but selecting native leads to an infinite loop for selecting P6_NOPS Intel cpus. I there anyway to send the ...
1
vote
1answer
23 views

Make error: DSO missing from command line

I am attempting to install rejoystick, and when I run make, I get this: Making all in src make[1]: Entering directory '/home/chrx/Downloads/joystick/rejoystick-0.8.1/src' make[2]: Entering directory '...
0
votes
0answers
25 views

Enable DEVPTS_FS option in Linux kernel 2.6.26.5

Board with embedded Linux kernel version 2.6.26.5, for ARM target. Busybox 1.10.2. How to enable DEVPTS virtual filesystem support in kernel? I tried to find item CONFIG_DEVPTS_FS in config files, but ...
5
votes
0answers
831 views

Visualizing dependencies coded up in makefiles as a graph

Closely related to How to display dependencies given in a makefile as a tree? But the answers given there is not satisfactory (does not work). Is there a tool to visualize the Directed Acylic Graphs (...
2
votes
1answer
39 views

Tool/script that can expand all 'include' directives in a makefile

Let us say we have the following Makefile include config.mk # Generate summary table. results.txt : $(ZIPF_SRC) isles.dat abyss.dat last.dat $(ZIPF_EXE) *.dat > $@ # Count words. .PHONY : ...
2
votes
1answer
241 views

Error “/bin/sh: 1: Syntax error: ”(“ unexpected” in Makefile

I am trying to create a Makefile with two targets: setup and clean. The setup target is supposed to find all the files in the /usr/lib/man-db and copy them to the directory proj/lib. setup: ...
0
votes
0answers
43 views

What cause path error occurs during code compiling

Debian 32-bit host PC, with a pre-built toolchain in /opt dir, the target is ARM. I'm trying to build project (f/w image) from source code,there is error during code compilation. The project have ...
6
votes
4answers
36k views

How to write exactly bash scripts into Makefiles?

I love to type bash scripts, but if I prepare multiple tools, project's root directory is filled with so many shell scripts. That's why I prefer using Makefile. Makefile is good. However I want to ...
0
votes
0answers
84 views

Makes errors in native build Qt installtion

I have trying to build QT5 5.12.3 on Raspberry Pi zero via these site instructions: wget http://download.qt.io/official_releases/qt/5.12/5.12.3/single/qt-everywhere-src-5.12.3.tar.xz tar xf qt-...
0
votes
1answer
34 views

Did the installation fail? (make[2]: Nothing to be done for 'install'.)

I have tried to install Qt Cross compilation for Raspberry zero with my LMDE Linux OS (Lenovo Laptop) based on these instructions, using this script I wrote: #!/bin/bash ./configure -release -...
0
votes
0answers
19 views

Issue trying to compile libXres

I recently tried to build libXres from the source and I am encountering issues when trying to build from two different manners. In the first I run the configure script with: ./configure --prefix=/...
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 -...
3
votes
2answers
392 views

Makefile for a simple Debian Repo

I'm making a very basic Debian repo for a client. Started with a bash script, but decided a Makefile would eliminate duplicated work. I've hammered out a working Makefile, but it works only if I make ...
0
votes
1answer
30 views

Leptonica compilation error

Trying to install leptonica v1.78 on Ubuntu 16, but it's not working for some reason. After running ./configure and make, I keep getting this error: make[2]: Entering directory '/home/user/Documents/...
0
votes
0answers
43 views

Installing GCC 4.7.0 fails at make command

I'm attempting to install GCC 4.7.0 in Linux Mint (based off of Ubuntu 18.04). I get past the first step of configuring it. However when I run make -j5, I get the following errors: make[2]: Leaving ...
27
votes
4answers
22k 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? ...