You are not logged in.

#1 2021-12-12 17:14:37

Rayhem
Member
Registered: 2021-12-01
Posts: 15

Problems installing snapd (yay or makepkg) [SOLVED]

New Arch build and looking to install snapd.

Ive tried installing with both yay and makepkg.  Both times Ive received the error:

...
config.status: creating config.h
config.status: executing depfiles commands
make: the '-j' option requires a positive integer argument
make: the '-j' option requires a positive integer argument
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
<all make options listed here but removed for readability>
...
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make@gnu.org>
==> ERROR: A failure occurred in build().
    Aborting...

$uname -a
Linux DailyDriver 5.15.7-arch1-1 #1 SMP PREEMPT Wed, 08 Dec 2021 14:33:16 +0000 x86_64 GNU/Linux

Ive also tried installing snapd-git but that gives me a different error.  I'm indifferent to which package gets installed, Im just curious what could be the problem and wanted to ask before I started messing with the make file

Last edited by Rayhem (2021-12-13 00:13:49)

Offline

#2 2021-12-12 17:26:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,081

Re: Problems installing snapd (yay or makepkg) [SOLVED]

That reads like you misconfigured your MAKEFLAGS in /etc/makepkg.conf

Last edited by V1del (2021-12-12 17:27:09)

Offline

#3 2021-12-13 00:12:51

Rayhem
Member
Registered: 2021-12-01
Posts: 15

Re: Problems installing snapd (yay or makepkg) [SOLVED]

Amazing troubleshooting with how little I was able to provide to you.

Your post reminded me a few days ago I changed my MAKEFLAGS setting to MAKEFLAGS="-j$(nproc)".  This causes a race condition and fails to build properly.  Changing it back to the default value corrected the problem. 

THANK YOU!

Offline

#4 2021-12-13 00:58:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,081

Re: Problems installing snapd (yay or makepkg) [SOLVED]

You can also just hardcode the number to what you want it to be. It's unlikely you'll change your processor often enough that you need this to be dynamic.

Offline

Board footer

Powered by FluxBB