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.

201 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 (...
4
votes
0answers
759 views

Trouble embedding clang in a standalone application

I am running Ubuntu 13.04 on my end and I have installed clang as well as libclang-dev and llvm (through apt). I tried hard to run RecursiveASTVisitor example given here:- http://clang.llvm.org/docs/...
4
votes
0answers
14k views

CMake Error: The current directory is different than

I'm trying to compile the source code for Shrewsoft VPN. The instructions say to compile the source on step 4. However... I get this error: user@ubuntu:~/Ubuntu One/Programs/ShrewSoft VPN$ sudo ...
4
votes
0answers
4k views

CFLAGS in Linux kernel makefiles: which one is used when?

I'm not familiar with Makefiles, I can kinda understand them, but with the Linux Kernel I have a question. (Using 3.7.1, Patched with BFS so line numbers may be a bit off) On line 248 HOSTCFLAGS =...
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 ...
3
votes
0answers
125 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 ...
3
votes
0answers
1k 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 ...
3
votes
0answers
108 views

how to install module in correct location or say /lib/modules/`uname -r`

I have one package for which I want to create debian Package instead of compiling it every time. I tried creating it using dh_make and fakeroot but problem is it just hardcode the location where ...
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 ...
3
votes
1answer
948 views

Trouble linking to gtk/gtk.h even though it's installed

I am trying to build CEF (chromiumembedded) on debian jessie ########## Linking CXX static library libcef_dll_wrapper.a [ 81%] Built target libcef_dll_wrapper [ 81%] Building CXX object cefclient/...
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 ...
3
votes
0answers
631 views

Some questions compiling linux kernel with make-kpkg

I'm doing my first steps compiling the linux kernel and adding a new system call. I've managed to do it, but I still have some questions. For this task, I has set up a Virtual Machine guesting debian ...
3
votes
0answers
299 views

What steps are involved in porting an Xorg OpenGL app to DirectFB?

I'm looking for a birds-eye view on porting a small app1 that uses some OpenGL functions from it's home on Xorg to run in a more stand-alone fashion using DirectFB. I am unfamiliar with both C and ...
3
votes
1answer
2k views

Why is this autogen.sh script failing?

I've downloaded this window manager from github and it has a autogen.sh script but it failed each time. I don't know what could happen or how to fix it: Output from ./autogen.sh: /usr/bin/gnome-...
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 ./...
2
votes
1answer
29 views

Moving a Compile/Make project from old RedHat 5 (CentOS) to modern Ubuntu/Mint

So I have a little learning project that I am currently working on. I have a project/program that is compiled up from multiple *.cpp *.hpp etc files. This project (actual bin-executable) is built ...
2
votes
1answer
331 views

Installing nvm using Makefile

I've set up a Makefile like the following: NVM := $(shell command -v nvm 2> /dev/null) setup: ifndef NVM @echo "Installing NVM" curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0....
2
votes
0answers
38 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 ...
2
votes
1answer
666 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 ...
2
votes
0answers
451 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 ...
2
votes
0answers
775 views

Is there an automatic translator from Makefile to CMakeLists.txt?

I have several inherited projects - on RHEL 7, part of which are created using make, and the rest are utilising cmake. I'm wondering: is there an automatic translator that will take a Makefile as ...
2
votes
0answers
111 views

How to check if a target will be run?

I know that the variable MAKECMDGOALS In GNU Make will contain the names of final goals for the run, i.e. the targets included on the command line. However I'd like to check if a target will be made, ...
2
votes
0answers
683 views

Difference between Makefile and zsh

I'm trying to create Makefile rule: dev: ls {web,src}/**/*.* | entr make run-build And there is different behaviour between using make dev and using this command direct. Do you have idea what's ...
2
votes
1answer
91 views

Compilation error when I try compile MikTex

I've installed all dependencies needed to run cmake -G "Unix Makefiles" command. This command is executed successfully. Next, I ran make command and I've get following error: In file included from /...
2
votes
0answers
1k views

Errors cross-compiling with distcc

I'm currently attempting a build of the Raspbian kernel using both a cross-compiler (for the Raspberry Pi 2's ARM processor) and distcc, based on the instructions posted at the Raspberry Pi website. I ...
2
votes
0answers
637 views

Shell script for automated kernel compilation

I am trying to write a shell script to build a custom kernel on Arch Linux. I have succeeded to do write all the steps described in the Arch Linux kernel compilation page: https://wiki.archlinux.org/...
2
votes
0answers
158 views

How to define ffmpeg's path during compilation of another software?

I'm trying to compile an opensource software that needs bleeding-edge ffmpeg, so I successfully compiled ffmpeg, but I don't want to run make install as it's not easy to be removed after my tests. ...
2
votes
0answers
125 views

Some errors have occured when I installed lucene, a perl module!

Some errors have occured when I installed lucene, a perl module: [xlwang@localhost Lucene-0.18]$ make test Running Mkbootstrap for Lucene () chmod 644 Lucene.bs PERL_DL_NONLAZY=1 /home/xlwang/local/...
2
votes
0answers
685 views

Binutils documentation compilation problem

I'm trying to compile and install binutils+GCC for my machine on my own. I have compiled lastest binutils sources without getting any error, but installation seems to have some problems with gas ...
2
votes
1answer
737 views

Nested packages for different subdirectories in autoconf?

I have different subdirectories that need to be compiled in different ways. For example, some files needs to include some others using CFLAGS. However, CFLAGS can only be set in configuration files, ...
2
votes
0answers
331 views

Trying to install DIP (Dialup Networking) package for SLIP protocol

We are trying to interface with a wireless modem that connects to a computer via a com-port DB-9 connection. It uses SLIP in the sense that the modem hosts a SLIP server and requires the interfacing ...
2
votes
0answers
2k views

libbfd-2.22.so missing while compiling Binutils/Glibc/Zlib

When I try to compile Binutils, Glibc and Zlib using chroot on my LFS system, I get this error: ar: error while loading shared libraries: libbfd-2.22.so: cannot open shared object file: No such ...
2
votes
0answers
194 views

What went wrong with this driver install?

I am trying to install the correct LAN card drivers on openSuse 12.1. This is the output of the log file for the autorun.sh script: ------------------------------- Sun Jul 1 21:50:45 IDT 2012 -------...
2
votes
1answer
184 views

How do I install htmldoc via cygwin?

I've installed all packages with gcc in their title via cygwin on my PC along with FLTK and I ran ./configure and ./configure ENTER with no errors but now after running make I received the error: ...
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 ...
1
vote
1answer
21 views

Use an interactive shell under Make

I'm trying to use an interactive shell under Make. Here's an example with Docker: ubuntu: docker run -it ubuntu bash This ubuntu target doesn't work well. For example, when I type I can't see the ...
1
vote
0answers
29 views

how can I create a virtualenv variable inside a makefile

I am trying to create a makefile to compile a full project. I want to start by creating a virtualenv variable inside it using mkvirtualenv wrapper like: train: create_env echo "create env?&...
1
vote
0answers
72 views

Custom 64bit 3.10.9 kernel not booting in qemu and stucks on Booting from ROM

My custom build kernel 4.10.9 with gcc-4.8 is not booting in qemu and it is stuck on booting from ROM: I used the following qemu command: qemu-system-x86_64 -kernel linux-3.10.9/arch/x86/boot/bzImage....
1
vote
0answers
24 views

lcurl installation no root

I have been trying to install a software for a full day now. After installing htslib/bzip and all dependencies locally (as I don't have root permissions), I am stuck at this error: g++ -O3 -o angsd *....
1
vote
0answers
86 views

Moving from Unix makefile to GNU makefile (on Linux)

just a quick question in case anyone can spot something obvious. The following line in a Makefile works fine on Unix but gives an "empty variable name" error when using make on Gnu/Linux. I ...
1
vote
1answer
225 views

tp-link Archer T4U make error (kali linux)

I followed steps from TP-Link and get this error when I type: $make . . . make[3]: *** [/usr/src/linux-headers-5.7.0-kali1-common/scripts/Makefile.build:272: /home/arishat/file/T4Uv3_WiFi_linux_v5.3....
1
vote
1answer
151 views

How to build only one program in binutils

Since there are many programs that are not related to my interests, I'd like to build a specific program in GNU binutils on Ubuntu. Program means that one binary file (e.g., ar, objcopy) for example, ...
1
vote
0answers
117 views

phpinfo still shows old PHP version after installing new version from source

I downloaded PHP 7.3.18 from php.net. Then I configured it, maked it and installed it from source. If I execute php -v then I get PHP 7.3.18 (cli) (built: Jun 17 2020 12:55:46) ( NTS ) Copyright (c) ...
1
vote
0answers
24 views

Pattern-specific make variable based on the highest level target name

Goal In the usual case of a target (mother target) calling another target (child target) as prerequisite, I'd like to assign a pattern-specific variable (see the manual page) with the following ...
1
vote
0answers
29 views

How to link to a numbered shared library?

This is the command I am running arm-linux-gnueabihf-gcc -Wall -Wl,--verbose -mthumb -mthumb-interwork -D_REENTRANT -oTestRun11 ./main.c -ldl -lpthread -lRTU_Module Which gives in the printout ...
1
vote
0answers
274 views

compile nginx 1.16.1 with ngx_stream_log_module

I want to compile Nginx 1.161.1 that contain ngx_stream_log_module, so I do it: ./configure --sbin-path=/usr/local/nginx/nginx \ --conf-path=/usr/local/nginx/nginx.conf \ --pid-path=/usr/local/nginx/...
1
vote
1answer
1k views

uboot-menuconfig not available in make targets

I'm trying to setup a custom default environment for u-boot while building an embedded Linux system with Buildroot. I was able to achieve this in u-boot standalone, but I'm unable to reproduce the ...
1
vote
1answer
331 views

Installing psiphon on Debian 10 gives make: *** [Makefile:129: authfd.o] Error 1

I am trying to install psiphon on Debian 10 based on instructions here https://github.com/thispc/psiphon then ./configure came across error configure: error: *** zlib.h missing - please install first ...
1
vote
0answers
47 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/...
1
vote
1answer
455 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: &...

1
2 3 4 5