Questions tagged [makefile]
Questions relating to makefiles, (The file that contains the instructions for make)
183
questions
0
votes
1
answer
578
views
Unable to locate package makefile
Hello everyone I am new in using Ubuntu operating system and facing a problem.
I have installed GCC using
sudo apt-get install gcc
but when I run the following command
sudo apt-get install ...
0
votes
0
answers
2k
views
cannot execute binary file: Exec format error - Ubuntu 16.04 + Make + GCC
I am aware that other people had similar issues but mine seem to be unique as I am not making obvious mistakes. I have reviewed other questions and putting all required details below.
When I am ...
0
votes
2
answers
5k
views
m4 preprocessor "ERROR: end of file in string"
I'm getting this error msg:
m4:myPerlScript.pl:77: ERROR: end of file in string
when trying to use m4 to replace a string in some perl scripts. I'm making the call inside a makefile.
$(OUTDIR)/%: ...
0
votes
0
answers
968
views
Finding -lgcc_s
I'm trying to install a program that seems to use libgcc_s.so. After implementing the possible remedies suggested in the SO:LINK, I still can't figure out why the compiler fails to find it.
I get the ...
0
votes
1
answer
1k
views
Trouble linking libraries in FFTW
This error happens when I try to execute a Makefile:
/usr/bin/ld: cannot find -lrfftw_mpi
/usr/bin/ld: cannot find -lfftw_mpi
/usr/bin/ld: cannot find -lrfftw
collect2: error: ld returned 1 exit ...
2
votes
1
answer
4k
views
make: *** No rule to make target 'ell/util.c' needed by 'ell/util.lo'
I need to install ofono, so I cloned this ofono repository and did autoreconf -fi and ./configure in the directory. But when I am running make or sudo make install I am encountering the following ...
0
votes
0
answers
424
views
How to stop "make" from running "clean"?
Have a Makefile like this:
all: build
build:
dot2tex -ftikz temporal_dag.dot --figonly > temporal_dag.tex
latex notes && bibtex notes && latex notes && ...
0
votes
0
answers
106
views
Build libfslcodec-4.0.8 on Ubuntu 16.04 for IMX6Q
I installed Ubuntu 16.04 with kernel 4.1.15 on IMX6Q "sabresd" Board and successfully boot. I used this instruction to install rootfs also I changed distro and solved some issues by myself. Just now ...
2
votes
2
answers
4k
views
ogr_fdw compile error `Fatal error: can't create ogr_fdw.o: Permission denied`
I'm trying to install PostGIS on Ubuntu 17.04 and I've been following this guide to the point. Everything works perfectly, but when work my way down to install ogr_fdw foreign data wrapper for spatial ...
1
vote
0
answers
49
views
How to make 'Make' to handle more new pairs of source files indicated by its extension name
How can we modify a Makefile script to handle more new pairs of source files indicated by its extension name to be compiled by Make automatically correctly and preferably interactively
#...
objects = ...
1
vote
0
answers
954
views
Problem while executing a Makefile
i'm installing the Rocket-Chip repository.
I'm following the instructions from https://github.com/chipsalliance/rocket-chip.
The instructions are:
$ git clone https://github.com/ucb-bar/rocket-chip....
0
votes
1
answer
170
views
Packaging fails upon compiling 16.04 HWE kernel
Short summary:
Packaging script looks in wrong path.
Detailed error summary:
To compile the kernel, I used the compilation instructions from here, which included the steps:
Checkout git sources ...
0
votes
0
answers
308
views
Continue custom kernel creation and not start over again from square one
Task:
Create a custom Ubuntu kernel from git sources (in my case hwe-branch).
Short summary:
I want to fix a error reported by the build scripts and then repeat only the last compilation/packaging ...
6
votes
3
answers
52k
views
Help locating linux/version.h
I'm trying to fix an old program, Previous issues I had could be found at
Missing modversions.h
When I make the program it gives me the following error,
kaodv-mod.c:22:27: fatal error: linux/version....
3
votes
1
answer
14k
views
How do I make the 'make' command work?
I am trying "Linux Kernel Module Programming - Compiling the Module" as in this youtube video.
First I created a hello.c program. Then I used the command #gedit Makefile. It opens a window which is ...
0
votes
1
answer
2k
views
File creating permission Denied [duplicate]
I have removed Windows 7 and installed Ubuntu 14.04.
I have successfully installed LAMP but the problem is that I cannot save a file with a PHP extension in local-server using the Bluefish editor .
...
0
votes
1
answer
1k
views
Error while loading shared libraries: libpgplot.so:
I have compiled a program named vmed from its source code using Makefile. When I run make the compilation goes without any error, however when I try to run the program, it gives me following error:
./...
1
vote
2
answers
838
views
How to modify build rules in Makefile
I tried to compile FFmpeg from source code located HERE. All is good, but the built binaries lack ffplay. And looks like the build rule is missing from the makefile located under /fftools.
How can I ...
1
vote
0
answers
49
views
How to list /find all driver files getting compiled while doing make?
Driver files getting compiled while doing make, is there any ways to list using the makefiles?
0
votes
1
answer
1k
views
The following Makefile is not working and I am not sure what's going on
obj-m += task.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Makefile:3: *** missing separator. Stop.
3
votes
1
answer
8k
views
How to save Makefile output in a child directory
Running make in a folder containing a Makefile stores the output files of that Makefile in the same directory. Is it any way to store them in a child directory passing some arguments to the make ...
0
votes
1
answer
6k
views
Unable to run Makefile targets in Windows Subsystem for Linux (Ubuntu 18.04)
I feel I've tried everything but I feel I'm missing something really simple.. I'm trying to run a makefile from a project (which works fine on a Mac) on a Windows machine with WSL running but get a ...
0
votes
0
answers
623
views
Compilation error when building squashfs tools
I tried to compile unsquashfs tool from GPL source, the sources are in the 'squashfs-tools' directory. Executing make gives error: Makefile:2: *** Sqlzma is not defined. Stop. As I see, the sqlzma ...
5
votes
1
answer
24k
views
Building Caffe: Failed to see hdf5.h
Hello Caffe is a library for deeplearning. When trying to build that library under Ubuntu 15.04, the compilation fails with the message:
:~/App/caffe$ make all
PROTOC src/caffe/proto/caffe.proto
CXX ...
0
votes
1
answer
457
views
Difficulty installing program through makefile: "Are the same file"
I am attempting to install a CFD code called MISES on my ubuntu system, but every time I try to make the file, it generates a bunch of .o files then fails with the following output:
install -s ises .....
1
vote
2
answers
1k
views
Cannot build deb package
I have followed this tutorial on how to make a .deb package from source(tar.gz) and at the final build command dpkg-buildpackage -rfakeroot
Help is GREATLY appreciated!I need to fix this issue as ...
53
votes
3
answers
99k
views
How do I set up ccache?
I want to use ccache to speed up compilation.
I came across How do I enable ccache?.
This is what I have done so far:
$ sudo apt-get install -y ccache
$ dpkg -l ccache
ii ccache 3.1.6-1 ...
0
votes
1
answer
333
views
Where do I put my .a files
I installed Irrlicht earlier and realized the package didn't come with the libIrrlicht.a that it's supposed to. After an hour of trying to understand why it wasn't working and compiling the necessary ...
0
votes
1
answer
334
views
problem in making software
I am trying to make an old version of lammps-13Jull11. I used this command in the src directory: make openmpi
but it failed because of these errors:
make[1]: Entering directory '/home/alireza/lammps-...
2
votes
1
answer
31k
views
Makefile 42: recipe for target 'util.o' failed
I am getting this error:
~/Distrib$ make all
/usr/bin/g++ -O3 util.cc -I/home/shah/Distrib
util.cc: In function 'into countLines(const char*)':
util:19:8: error: 'exit' was not declared in this ...
2
votes
1
answer
9k
views
Why is cmake not finding an installed package?
I'm trying to build this repo for neural networks implemented in CUDA.
I've followed the instructions in that link and performed the following actions on a shell:
git clone https://github.com/...
4
votes
2
answers
15k
views
Bash Syntax Error Missing expecting "then"
For the following lines in my Makefile I get the error
Syntax error: end of file unexpected (expecting "then")
Code:
if [ ! -d upload-api/app-router/ ] then
git clone someRepo upload-api/app-...
1
vote
2
answers
114
views
Software compiled from source does not work after first run
Hi I am trying to use a piece of Japanese NLP software called MeCab, written in Python and distributed with only source. ( http://taku910.github.io/mecab/ )
It has been giving me trouble since the ...
1
vote
1
answer
2k
views
After upgrading the cmake, I am still getting error for installing the ITK?
I want to install a software, which requires ITK and it is raising an error:
[ 52%] Performing configure step for 'ITKv5'
Not searching for unused variables given on the command line.
CMake Error at ...
3
votes
1
answer
12k
views
Assign standard exit status to a makefile variable
I'm trying to save the standard exit status of a command in a variable of my makefile, but I don't know how to do it.
I've tried this:
pruebas:
@A= $(ls)
...but it doesn't work.
1
vote
1
answer
402
views
Figuring out if gcc make was successful
I am a very inexperienced Ubuntu user. I am using a computer cluster at my university via SSH. The cluster has a version of gcc that was too old for something else that I needed to install, and I am ...
0
votes
3
answers
2k
views
Remove files with specific extensions by regexp
I have Makefile for compiling LaTeX *.tex file (tex->dvi->ps->pdf). Then I have command clean for removing unnecessary temporary files (dvi, ps...) like this:
rm `ls | grep "^${FILENAME}\.(aux|dvi|ps|...
0
votes
0
answers
2k
views
Error compilling program with makefile : undefined reference to symbol 'trunc@@GLIBC_2.2.5'
I am trying to compile a program on Linux+openmpi using a makefile but got this error: I have looked at answers to similar issues but can still fix it.
/usr/bin/ld: outseis.o: undefined reference to ...
2
votes
1
answer
644
views
Trouble installing WaoN, Ubuntu 16.04
Discovering WaoN for converting soundfiles to midi, I cloned the git repository https://github.com/kichiki/WaoN and attempted to compile it.
I had some errors and installed the necessary (or so I ...
4
votes
1
answer
12k
views
make command fails
Hello Im completly new to Lubuntu(started this weekend).
The first thing i want to install give me know a lot of trouble for this time.
I want to install a driver for the Novation Launchapad. I have ...
0
votes
1
answer
2k
views
./configure doesn't generate MAKEFILE when building x11spice
I am trying to enable x11spice in my Docker container, I followed the README but after ./configure, there is no MAKEFILE was generate, so make has an error output saying make: *** No targets specified ...
3
votes
1
answer
426
views
All Makefiles broken
I can't run any Makefiles anymore.
I get:
./Makefile: line 1: sorter:: command not found
Content of Makefile:
sorter: sorter.o
gcc sorter.o -o sorter
sorter.o: sorter.c
gcc -c sorter.c
...
-4
votes
1
answer
7k
views
make command does not work - Assembler messages
$ make KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic' CC [M] /home/user1/src/wl/sys/wl_linux.o
Assembler ...
0
votes
1
answer
129
views
Makefile unusual behaviour
I have written a make file for a simple cpp program containing cout statements.
#This a makefile for compiling the hello world cpp program.
CC=clang++
all: run test.o
run: .cpp=.o
.PHONY: ...
1
vote
0
answers
2k
views
"recipe commences before first target. Stop" Backyard Brains' "Spike Recorder"
I'm trying to install Backyard Brains' "Spike Recorder" on my Ubuntu 16.10 Gnome laptop. I've resolved some problems but now I'm getting the error "recipe commences before first target. Stop".
CCX = ...
0
votes
0
answers
1k
views
Failed to build wine, Makefile missing separator
I tried to build the last version of wine (2.10, downloaded just now from the official webpage). ./configure executes fine, but when I enter make, it outputs an error:
Makefile.in:101: *** missing ...
2
votes
1
answer
295
views
@command -v gpg why is the version flag before the command?
verify:
@command -v gpg 2>/dev/null || { echo "Cound not find gpg. Aborting."; exit 1; }
I saw the following command in a Makefile. I understand that it does the following:
verify is called ...
1
vote
0
answers
463
views
Installing HTK for ubuntu - issues with X11
I seem to have some problems with X11 when compiling HTK.
Make all
give me the error message:
/usr/bin/ld: cannot find -lX11
Looking for it give me :
ld -lX11 --verbose
=======================...
3
votes
1
answer
16k
views
How to install libsass on Ubuntu 16.04?
I've been trying to install libsass on my dev machine to use sassc, but I'm not having any success. Most of the tutorials that I have found are from earlier this year and don't seem to work (for me) (...
0
votes
2
answers
487
views
I just couldn't build this iwlwifi core source. Others could
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release
So I'm trying to get wireless working on my laptop with Ubuntu 16.04. I figure I need to build the package as the wiki instruct; ...