I have a media PC, which is Intel NUC 3150. I am using it for many years and apart from minor issues, it is running fine. I have Manjaro KDE installed with 5.10.89-1 (LTS).
I want to install “mame-git” rom AUR and originally I started the process via GUI. Left it running for 12 hours and still it wasn’t finish. Cancelled it, rebooted and tried again from console with pamac. Again the process if very slow, running already 5 hours.
I have installed that package before on this PC, again with Manjaro but I had to do a fresh install. It took minutes then.
htop shows all 4 cores in use with a 40-60% usage per core.
Disk is SSD and has no problems/bad sectors.
Any idea why this is happening or how to speed up the process?
Instead of pamac, you could use another aur-helper like yay or paru. I’ve read here that pamac only uses one job. Yay/paru respect the options for makepkg and use parallel jobs.
I wouldn’t exactly define simple the mame as program
How are configured the number of make jobs (MAKEFLAGS=) in makepkg.conf? by default is 2
also is uses a quite a lot of ram for compiling
It took me 20 min to build (including download of 1,49 GiB of sources at 4.32 MiB/s) on 23 cores
It is a VCS pkgbuild that download and build the latest commit, not being updated is not a synonym of bad quality, also there aren’t complaints in the comments since the last update
If you think pamac is the culprit - I suggest you use the proven makepkg.
Copy the file /etc/makepkg.conf to ~/.makepkg.conf
Edit the file and locate the line reading
#MAKEFLAGS="-j2"
Remove the comment # and change the number to the number of cores on your system and save the file. You can get the number of cores by executing
nproc
The process will take a lot of time - how long highly depends on your system specification
I looked up this NUC 3150 - and it uses a Celeron N3150 CPU - which is not very powerful so be prepared for long compiletime especially for the mentioned package which compiles more then 38000.drivers.
Yes I am. Part of the installation of AUR packages is the compilation of the package, and as I said I have done this before, as official “mame” wasn’t working.
Anyway, I did a cleanup of all packages I installed while trying to make it work, then I tried once more the official package and now it works.
Thank you all for the suggestions
ps. still a mystery though why it was taking so long, but I don’t have time to troubleshoot this anymore.