Bug 18726 - update request: dkms parallel build support
Summary: update request: dkms parallel build support
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
Whiteboard: has_procedure advisory MGA5-32-OK mg...
Keywords: validated_update
Depends on:
Blocks: 18727 18759
  Show dependency treegraph
Reported: 2016-06-18 01:05 CEST by Thomas Backlund
Modified: 2016-06-22 18:37 CEST (History)
2 users (show)

See Also:
Source RPM: dkms
Status comment:


Description Thomas Backlund 2016-06-18 01:05:40 CEST
Updated dkms adds support for parallel builds

This update adds support for building dkms packaged drivers utilizing
multiple threads / cores and thereby shortening build times. In order
to take advantage of this support and speedup, the dkms packaged drivers
will need to be updated too, which will be done separately after this



Thomas Backlund 2016-06-18 01:06:19 CEST

Blocks: (none) => 18727

Comment 1 Thomas Backlund 2016-06-18 01:10:00 CEST
Note to testers, just urpmi a dkms-virtualbox/vboxadditions/xtables-addons/nvidia* to ensure it still builds

(technically already tested on bug 18727 on both arches as it comes with prebuilt kmods)

separate updates will come for nvidia and fglrx drivers to take advantage of this parallel build support
Comment 2 David Walser 2016-06-20 10:30:52 CEST
Confirmed working fine on Mageia 5 i586.

Whiteboard: (none) => MGA5-32-OK

Comment 3 Lewis Smith 2016-06-20 20:58:58 CEST
Wanting to test M5 x64 with AMD/Radeon video H/W
Apparently the box has 2 CPUs "AMD E1-1200 with Radeon HD Graphics".
I currently have installed:



I have no idea whether dkms is involved in all this. Happy to test install this update if that will achieve something useful.

CC: (none) => lewyssmith

Comment 4 claire robinson 2016-06-22 16:27:53 CEST
Installing one of the dkms-* packages should build & install OK for the running kernel Lewis. You can check afterwards with "dkms status".

Testing mga5 64 on old Q6600 quad core with dkms-libafs as it's one which previously always took an age to build (~15-20mins)


It shows a bad exit status cleaning build area, possibly from previous testing although never previously on this kernel. The build fails around 7 minutes in. The log isn't really helpful although we've had issues with this module in the past so may not be due to dkms.

# urpmi dkms-libafs

Creating symlink /var/lib/dkms/libafs/1.6.17-1.mga5/source ->

DKMS: add Completed.

Preparing kernel 4.4.13-desktop-1.mga5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper......
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....(bad exit status: 2)
SMP=SP; eval `grep CONFIG_SMP /boot/config-4.4.13-desktop-1.mga5`; [ -n "$CONFIG_SMP" ] && SMP=MP; ./configure --with-linux-kernel-headers=/lib/modules/4.4.13-desktop-1.mga5/build; make MPS=$SMP; mv src/libafs/MODLOAD-*/libafs.ko
.......................................(bad exit status: 1)

Error! Bad return status for module build on kernel: 4.4.13-desktop-1.mga5 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/libafs/1.6.17-1.mga5/build/ for more information.

Error! Could not locate libafs.ko.xz for module libafs in the DKMS tree.
You must run a dkms build for kernel 4.4.13-desktop-1.mga5 (x86_64) first.
warning: %post(dkms-libafs-1.6.17-1.mga5.noarch) scriptlet failed, exit status 4
ERROR: 'script' failed for dkms-libafs-1.6.17-1.mga5

# cat /var/lib/dkms/libafs/1.6.17-1.mga5/build/make.log 
DKMS make.log for libafs-1.6.17-1.mga5 for kernel 4.4.13-desktop-1.mga5 (x86_64)
Wed 22 Jun 15:15:49 BST 2016
mv: cannot stat âsrc/libafs/MODLOAD-*/libafs.koâ: No such file or directory

Whiteboard: MGA5-32-OK => feedback MGA5-32-OK

Comment 5 Thomas Backlund 2016-06-22 17:17:50 CEST
dkms-libafs needs to be updated to support kernel 4.4, there is another bug open for that, I'll fix that up there..

Whiteboard: feedback MGA5-32-OK => MGA5-32-OK

Thomas Backlund 2016-06-22 18:08:16 CEST

Blocks: (none) => 18759

Comment 6 claire robinson 2016-06-22 18:20:23 CEST
Thanks Thomas. OK & validating.

Tested with dkms-fglrx instead..

# urpmi dkms-fglrx


Creating symlink /var/lib/dkms/fglrx/15.302-4.mga5.nonfree/source ->

DKMS: add Completed.

Preparing kernel 4.4.13-desktop-1.mga5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper.....
using /proc/config.gz
make oldconfig.....
make prepare....

Building module:
cleaning build area....
sh make.sh --uname_r=4.4.13-desktop-1.mga5 --uname_v=none --kernel-dir=/lib/modules/4.4.13-desktop-1.mga5/build --no-proc-probe --norootcheck......
cleaning build area....
cleaning kernel tree (make mrproper).....

DKMS: build Completed.

 - Installation
   - Installing to /lib/modules/4.4.13-desktop-1.mga5/dkms/drivers/char/drm/


DKMS: install Completed.

# dkms status -m fglrx
fglrx, 15.302-4.mga5.nonfree, 4.4.13-desktop-1.mga5, x86_64: installed 

# urpme dkms-fglrx
removing dkms-fglrx-15.302-4.mga5.nonfree.x86_64

-------- Uninstall Beginning --------
Module:  fglrx
Version: 15.302-4.mga5.nonfree
Kernel:  4.4.13-desktop-1.mga5 (x86_64)

Status: Before uninstall, this module version was ACTIVE on this kernel.

 - Uninstallation
   - Deleting from: /lib/modules/4.4.13-desktop-1.mga5/dkms/drivers/char/drm/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


DKMS: uninstall Completed.

Deleting module version: 15.302-4.mga5.nonfree
completely from the DKMS tree.
removing package dkms-fglrx-15.302-4.mga5.nonfree.x86_64
      1/1: removing dkms-fglrx-15.302-4.mga5.nonfree.x86_64

# dkms status -m fglrx | wc -l

Keywords: (none) => validated_update
Whiteboard: MGA5-32-OK => has_procedure MGA5-32-OK mga5-64-ok
CC: (none) => sysadmin-bugs

Comment 7 claire robinson 2016-06-22 18:22:34 CEST
Advisory done.

Whiteboard: has_procedure MGA5-32-OK mga5-64-ok => has_procedure advisory MGA5-32-OK mga5-64-ok

Comment 8 Mageia Robot 2016-06-22 18:37:18 CEST
An update for this issue has been pushed to the Mageia Updates repository.


Resolution: (none) => FIXED

Note You need to log in before you can comment on or make changes to this bug.