Make install starts to compile. Can I abort? - compilation

I'm trying to install llvm on an arm and it does take a lot of time. (I know crosscompiling would be faster, but i didn't get it to work yet)
I'm accessing the system through the serial port.
I ran the configure script and started "sudo make ENABLE_OPTIMIZED=1 -j$(nproc)" to compile.
Since I knew it would take forever I turned off the pc in the meantime.
Foolishly I didn't print the output to a file, so I have no information about whether everything worked or not.
When I came back a day later, I just assumed everything is fine and started "make install".
Now I see that the system is again compiling tons of files which usually are compiled at "make".
I'm a beginner with Linux, so I thought at the make install stage no compilation is done anymore.
Also the "tutorials" like Why always ./configure; make; make install; as 3 separate steps? don't mention compiling at "make install".
So the actual questions:
Is there usually also compiling involved in the make install stage or is it almost certain that make failed at some point and make install is trying to fix that?
Is it a very bad idea to terminate the make install and restart the dual-core mode of make "make ENABLE_OPTIMIZED=1 -j$(nproc) >> out.txt" before rerunning make install?
Or do I have to wait for "make install" to finish, because it already started to install stuff and I shouldn't mess around with it?
I appreciate your suggestions!!

Related

Ros/Ros2 install failing maybe due to dependencies

I have extensively tried the link
https://index.ros.org/doc/ros2/Installation/Crystal/Windows-Install-Binary/#id3
only for it to fail many, many times. The same with other Ros and Ros2 install guides I could find. I tried searching for solutions at every point of failure and could not find any that worked. Both Ros and Ros2 have failed to install on Windows, Ubuntu 18 and 20, or Raspbian.
Many of the install attempt failed due to dependencies issues, and I have been unable to track down the missing things or otherwise get them to be correctly recognized as available for Ros or Ros2.
If anyone has successfully installed Ros or Ros2, I would like to ask them about it and here details of what worked for them.
If you run the commands step by step following with the document, the ROS shoul be installed correctly. But if your network is poor, the download of some packages will be timeout, it will cause the missing of dependencies. BTW, it is important that you need to run the commands with administrator account.

What is a replaceable command of "make-j" in Ubuntu for Mac?

While following the steps from this video https://www.youtube.com/watch?v=7vJJMU2gMn4 around 2:11, the video shows to run "make -j" in Ubuntu to start build. Since I'm using a Mac, I would like to know if there is any way that I can replace this commend. It seems "make" is a tool to install many packages in Ubuntu, which I think that can be replaced by "brew", but I'm not sure about the "-j" part.
Thank you for your time and help!

No usable M4 in $PATH or /usr5bin

As part of a long, sordid story whose end goal is simply to get GMP installed for use with code::blocks in Windows, I am trying to configure gmp. I do this with the following command:
./configure --prefix=${gmp_install}
Everything starts out well enough. After a few minutes and a bit of progress, everything grinds to a halt and I get this message:
configure: error: No usable M4 in $PATH or /usr5bin
I don't even know what M4 is, but I discover that it is some sort of macro processor. So I download it, and add the folder to my Path variable. Then I start the configure again, but same result.
Is there something that I need to do to M4 to get it working? I'm truly at a loss. Thanks for your help.
If you're using debian based OS, do sudo apt-get install m4. If internet isn't there or you have just the package of m4, copy it in /opt, configure it and later on change the $PATH value to the one you have now.
If you are using cygwin, the setup installer has a working package of m4. Then there's no need to download m4 or change $PATH.
I came up with your same problem, I solved it by running the Mingw package installer, and search for msys-m4 in the list, select all and then Apply Changes, it should let you ./configure just fine :)
Assuming you are on MSYS2 (You seem to have a sh), you can install m4 via pacman -S m4.
Be careful that if you run configure through a shell, that you don't pick WSL's bash accidentally (which is in %System32%/bash.exe). Which is what happened in our build system...

aclocal version problem on Mac OSX Snow Leopard

I am trying to compile an open source program on Mac OSX and getting stuck trying to get the build configured. I have autoconf version 2.63 installed but trying to do reconfigure I get this error "aclocal.m4:14: error: this file was generated for autoconf 2.61." and "you should regenerate the build system entirely".
I researched this as best I could and most seemed to imply automake should be able to regenerate itself using the autoreconf command. Autoreconf fails as well with the exact same message.
Things I've tried: remaking and reinstalling the autoconf package, remaking and reinstalling the m4 package, running the above commands as root instead of as a user.
Anyone have any ideas?
Thanks,
- Mike
Look for script like autogen.sh, they usually contain the right order of tools to run.
In this case the problem seems to be aclocal

Compiling Unix Version 6 in Snow Leopard

Hi i downloaded souce for unix version 6, i want to study it and test it. I am running Snow Leopard on a macbook pro.
1)Is there a way to compile it in mac. If i comile using make or gmake i am getting the following error.
*** Error: Couldn't find an i386-*-elf version of GCC/binutils.
*** Is the directory with i386-jos-elf-gcc in your PATH?
*** If your i386-*-elf toolchain is installed with a command
*** prefix other than 'i386-jos-elf-', set your GCCPREFIX
*** environment variable to that prefix and run 'make' again.
*** To turn off this error, run 'gmake GCCPREFIX= ...'.
2)I also want to run it in a virtual machine,I have VMWare installed on my machine. I don't know how to do that.
Download tarballs for gcc and binutils, expand them, then:
$ cd binutils-2.15
$ ./configure --target=i386-jos-elf
$ make
$ make install
$ cd ../gcc-3.4.1
$ ./configure --target=i386-jos-elf
$ make
$ make install
You will of course need to update the paths. (I got these instructions from MIT's OpenCourseWare.)
You'll have to go through the process of creating a new virtual machine and formatting and installing the OS onto its disk. I've used VirtualBox with some success, but I have no experience with VMWare; you're on your own there.
You might look into macports.org. It has several packages that look useful, notably "i386-elf-binutils". It installs into /opt/local/*, so you may need to make sure /opt/local/bin/ is in your path. (Although I believe it takes care of that by default.)
EDIT: Or maybe not. After a little more research, I wonder if these instructions and downloads are what you're looking for.
EDIT again: Corrected the download link. Sorry about that!
The build system you are using seems to require an ELF tool chain (used by Linux).
You could try to figure out if that can be changed, but since you have VMWare, try to compile it under a virtualized Linux (minimal Debian is quite light-weight).
As an alternative you may compile bournesh on Mac OS X.
http://freshmeat.net/projects/bournesh/

Resources