You are not logged in.

#1 2019-04-05 21:18:46

Niaseer
Member
Registered: 2019-04-05
Posts: 5

Xboxdrv build failure

Hiya,

Every time I try to install the xboxdrv package so I can use my ds3 controller I get this error at the end;

==> Starting build()...
usage: scons [OPTION] [TARGET] ...

SCons Error: option -j: invalid integer value: '9 -l8'
==> ERROR: A failure occurred in build().
    Aborting...
Error making: xboxdrv

full install log: https://pastebin.com/cUrPGYpv

I have tried removing SCons and then trying the build, no luck. I am new to using arch linux so I am not really sure on what the issue is exactly.


Sorry for the trouble :c

Offline

#2 2019-04-05 21:33:00

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: Xboxdrv build failure

Welcome to the archlinux forums Niaseer

scons -j9-l8
usage: scons [OPTION] [TARGET] ...

SCons Error: option -j: invalid integer value: '9-l8'
scons -j9 -l8
Warning:  the -l option is not yet implemented

What is MAKEFLAGS set to in /etc/makepkg.conf ?

Offline

#3 2019-04-05 21:49:07

Niaseer
Member
Registered: 2019-04-05
Posts: 5

Re: Xboxdrv build failure

#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j9 -l8"

is what I found c:

Do you want me to post the whole conf file in a pastebin as well?

Offline

#4 2019-04-05 22:49:36

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: Xboxdrv build failure

Does the following build function work for you?

build() {
  cd ${pkgname}-${pkgver}
  scons \
    LINKFLAGS="${LDFLAGS}" \
    CXXFLAGS="${CPPFLAGS} ${CXXFLAGS}" \
    ${MAKEFLAGS}
}

Offline

#5 2019-04-06 00:41:33

Niaseer
Member
Registered: 2019-04-05
Posts: 5

Re: Xboxdrv build failure

Wait sorry, what do I do with this? o:

Offline

#6 2019-04-06 00:47:50

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: Xboxdrv build failure

Edit the PKGBUILD for xboxdrv remove the " from around ${MAKEFLAGS} then build the package with the edited PKGBUILD.

git clone https://aur.archlinux.org/xboxdrv.git
cd xboxdrv

Edit PKGBUILD at this point.

makepkg -rsi

Offline

#7 2019-04-06 00:52:23

hpmachining
Member
From: Michigan
Registered: 2016-11-23
Posts: 40
Website

Re: Xboxdrv build failure

EDIT: Removed my reply. @logs already found the same thing.

Last edited by hpmachining (2019-04-06 00:57:11)

Offline

#8 2019-04-06 00:55:07

Niaseer
Member
Registered: 2019-04-05
Posts: 5

Re: Xboxdrv build failure

==> Finished making: xboxdrv 0.8.8-4 (Sat 06 Apr 2019 01:53:44 UTC)
==> Installing package xboxdrv with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) xboxdrv-0.8.8-4

Total Installed Size:  1.67 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                             [####################################################] 100%
(1/1) checking package integrity                                                           [####################################################] 100%
(1/1) loading package files                                                                [####################################################] 100%
(1/1) checking for file conflicts                                                          [####################################################] 100%
(1/1) checking available disk space                                                        [####################################################] 100%
:: Processing package changes...
(1/1) installing xboxdrv                                                                   [####################################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
[chloe@archnia xboxdrv]$


oooooh I think it worked! Thankies for helping me! ^w^

if you don't mind could you explain what the issue was and why this fixed it? c:

Offline

#9 2019-04-06 01:03:21

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: Xboxdrv build failure

Scons is not parsing options based on spaces but the separation applied by the shell/makepkg with quoting the command becomes

'scons' '-j9 -l8'

scons will only accept

'scons' '-j9' '-l8'

Offline

#10 2019-04-06 01:39:33

Niaseer
Member
Registered: 2019-04-05
Posts: 5

Re: Xboxdrv build failure

ooooooooh okay, I gotcha c:

Last edited by Niaseer (2019-04-06 03:43:46)

Offline

Board footer

Powered by FluxBB