Makefile:77: *** missing separator. Stop - makefile

Hi I am trying to install systemC on WSL2, when I run sudo make I seem to be getting this error
Making all in src
make[1]: Entering directory '/home/ryans/systemc-2.3.4/src'
Makefile:77: *** missing separator. Stop.
make[1]: Leaving directory '/home/ryans/systemc-2.3.4/src'
make: *** [Makefile:557: all-recursive] Error 1
I have looked at answers, solution 1 and solution2 but they don't seem to apply to my case because the file in question do not have a space or a tab at line 77.

Seems like the right way to install systemC on WSL is the run the following commands in the uncompressed .tar folder,
sudo aclocal
sudo automake --add-missing
sudo autoupdate
before making the objdir with the other instructions can be followed here.

Related

Makefile error when building on Cygwin

I am installing some NASA's software (HEASoft) from the source code on Cygwin (32-bit) running on Windows 10. Configure ran successfully, but make gives the following errors:
Makefile:26: /home/Mario/heasoft-6.21/heacore/BUILD_DIR/Makefile-std: No such file or directory
gmake[2]: *** No rule to make target '/home/Mario/heasoft-6.21/heacore/BUILD_DIR/Makefile-std'. Stop.
gmake[2]: Leaving directory 'C:/cygwin/home/Mario/heasoft-6.21/heacore/BUILD_DIR'
make[1]: *** [Makefile:74: heacore] Error 2
make[1]: se sale del directorio '/home/Mario/heasoft-6.21/BUILD_DIR'
make: *** [Makefile:10: all] Error 2
My problem is that the file /home/Mario/heasoft-6.21/heacore/BUILD_DIR/Makefile-std is not found; however, it actually exists and is located in the correct directory. EDIT: here it can be seen that this file exists:
$ ls /home/Mario/heasoft-6.21/heacore/BUILD_DIR
config.guess config.sub hd_config_info headas-init.csh headas-setup.in hmakerc lhea-fixperl Makefile-CCfits
config.log configure hd_install.c headas-init.sh hmake hmakerc.in Makefile Makefile-std
config.status configure.in hd_scanenv headas-setup hmake_hd install-sh Makefile.in
Any clue why this might be happening and how can be solved?
When Cygwin shell is opened cd /cygdrive/c/home/Mario and run make on your project from that directory. I remember I had similar issue when the current directory was /home/foo. I got it solved just changing the directory to /cygdrive/c/home/foo which is definitely is the same directory, but somehow Cygwin's Make likes it better

Trying to install LTTng on Raspberry Pi 3 running Raspbian Jessie (Debian)

I'm trying to install LTTng on a Raspberry Pi 3 running Raspian Jessie (Debian). The directions say that with that distribution, I need to build it from source. When I do, and try to execute the make, I get the following error:
/usr/bin/make -C /lib/modules/4.4.34-v7+/build M=/tmp/tmp.tHMTTCom3X/lttng-modules-2.9.0 CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m modules
make[1]: Entering directory '/lib/modules/4.4.34-v7+/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.4.34-v7+/build'
Makefile:110: recipe for target 'modules' failed
make: *** [modules] Error 2
(It looks to me that there is a rule for that target.)
Has anyone done this, or have any tips or ideas on how to do this?
Thanks!
You might be missing the headers for the running kernel, try installing the raspberrypi-kernel-headers package :
sudo apt-get install raspberrypi-kernel-headers

Binutils build fails on Mac OS X 10.10.5 Yosemite

After downloading the package of GNU Binutils 2.25
I followed the instructions on "Installing Binutils":
./cnofigure
make
errors happened after build:
../../binutils-gdb/binutils/nm.c:1733:28: error: 'sbrk' is deprecated [-Werror,-Wdeprecated-declarations]
char *lim = (char *) sbrk (0);
/usr/include/unistd.h:582:7: note: 'sbrk' has been explicitly marked deprecated here
void *sbrk(int);
1 error generated.
make[4]: *** [nm.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make: *** [all] Error 2
I did some research on net and they said using this command
./configure --prefix=/usr --disable-werror
and I get
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[8]: Nothing to be done for 'all-am'.
make[1]: Nothing to be done for 'all-target'.
(what does that mean "nothing to be done for all-am and all-target")
I don't know what to do anymore.
Is it a bug or it's me doing something wrong?
Please help.
You really would make life easier for yourself if you used homebrew as a package manager on OSX.
Goto the homebrew website and copy and paste the one-line install script into your Terminal.
Then you can install binutils simply by typing
brew install binutils
If, down the line, you want to find GNU sed, or ImageMagick, you can just do
brew search sed
or
brew search imagemagick
then
brew install sed
If you have any problems, just run
brew doctor
If you want to update all your packages, just run
brew update
brew upgrade --all
More cool ideas and suggestions here.
After build failure , you should clean previously generated object files
So,
make clean
./configure --prefix=/usr --disable-werror
make

BLT library TCL/TK

I'm trying to install this library and i'm not being able accomplish this. I'm trying to install it through cygwin, I have tcl 8.5 and blt 2.5 the problem is when i run make command i get this error and can't seem to find the problem.
$ make
(cd generic; make all)
make[1]: Entering directory `/lib/blt2.5/generic'
make[1]: *** No rule to make target `pure_api.o', needed by `BLTlite25.dll'. Stop.
make[1]: Leaving directory `/lib/blt2.5/generic'
make: *** [all] Error 2

Homebrew and Permission denied issue

I try to compile and install libapreq2 via Homebrew package manager.
brew create http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz
The content of the libapreq2.rb formula is as follows.
require 'formula'
class Libapreq2 < Formula
url 'http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz'
homepage ''
md5 'c11fb0861aa84dcc6cd0f0798b045eee'
# depends_on 'cmake'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# system "cmake . #{std_cmake_parameters}"
system "make install"
end
end
I proceed with
brew install -vd libapreq2
but unfortunately the compilation ended with errors.
mkdir: /usr/include/apache2/apreq2: Permission denied
make[3]: *** [install-pkgincludeHEADERS] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/bin/install -c .libs/mod_apreq2.so /usr/libexec/apache2/mod_apreq2.so
install: /usr/libexec/apache2/mod_apreq2.so: Permission denied
make[3]: *** [install-pkglibLTLIBRARIES] Error 71
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
Brew try to install some files outside the /usr/local/Cellar/libapreq2/ directory. I wonder how to manage these "permission denied" issues. I tried as root user (i.e., sudo brew install libapreq2), but if I later want to remove the library, only the files in /usr/local/Cellar/libapreq2/ are removed.
Thanks for any pointers.
Try this:
sudo chown -R $(whoami) /usr/local/Cellar/libapreq2/
It works for me!
Your package really shouldn't install anything in the system includes in /usr/include. The place for homebrew packaged includes is /usr/local/include (as symlinks into Cellar). You'll just have to adjust your ./configure invocation to use #{prefix}/include for the includes (probably --incdir or something very similar).

Resources