dkms modulees fail to build with strange messages about distcc
AITap
Status: New User - Welcome
Joined: 29 May 2012
Posts: 4
Reply Quote
Hi!

I don't have distcc installed, and dkms builds all modules normally for current Debian wheezy kernel. But when I try to build modules for current liquorix kernel, this is what I get:

:: Code ::

[12:31:50][aitap@Tarkus ~]> sudo dkms build virtualbox/4.1.14 -k 3.2.0-2-686-pae

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.2.0-2-686-pae -C /lib/modules/3.2.0-2-686-pae/build M=/var/lib/dkms/virtualbox/4.1.14/build..................
cleaning build area....

DKMS: build completed.
[12:33:28][aitap@Tarkus ~]> sudo env LC_ALL=C dkms build virtualbox/4.1.14 -k $(uname -r)

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.3.0-7.dmz.1-liquorix-686 -C /lib/modules/3.3.0-7.dmz.1-liquorix-686/build M=/var/lib/dkms/virtualbox/4.1.14/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.3.0-7.dmz.1-liquorix-686 (i686)
Consult /var/lib/dkms/virtualbox/4.1.14/build/make.log for more information.
[12:36:54][aitap@Tarkus ~]10> cat /var/lib/dkms/virtualbox/4.1.14/build/make.log
DKMS make.log for virtualbox-4.1.14 for kernel 3.3.0-7.dmz.1-liquorix-686 (i686)
Tue May 29 12:36:51 MSK 2012
/usr/src/linux-headers-3.3.0-7.dmz.1-liquorix-686/scripts/gcc-version.sh: line 25: distcc: command not found
/usr/src/linux-headers-3.3.0-7.dmz.1-liquorix-686/scripts/gcc-version.sh: line 26: distcc: command not found
make: Entering directory `/usr/src/linux-headers-3.3.0-7.dmz.1-liquorix-686'
/usr/src/linux-headers-3.3.0-7.dmz.1-liquorix-686/arch/x86/Makefile:81: stack protector enabled but no compiler support
make: distcc: Command not found
  LD      /var/lib/dkms/virtualbox/4.1.14/build/built-in.o
  LD      /var/lib/dkms/virtualbox/4.1.14/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/virtualbox/4.1.14/build/vboxdrv/linux/SUPDrv-linux.o
/bin/sh: 1: distcc: not found
make[2]: *** [/var/lib/dkms/virtualbox/4.1.14/build/vboxdrv/linux/SUPDrv-linux.o] Ошибка 127
make[1]: *** [/var/lib/dkms/virtualbox/4.1.14/build/vboxdrv] Ошибка 2
make: *** [_module_/var/lib/dkms/virtualbox/4.1.14/build] Error 2
make: Leaving directory `/usr/src/linux-headers-3.3.0-7.dmz.1-liquorix-686'

(sorry for the locale).

What can I do to build dkms modules for liquorix kernel?
Back to top
enteon
Status: Interested
Joined: 16 Aug 2011
Posts: 16
Reply Quote
:: Code ::
apt-get install distcc
fixed the problem for me, on ubuntu, however.
Back to top
AITap
Status: New User - Welcome
Joined: 29 May 2012
Posts: 4
Reply Quote
Great, now I receive this output:
:: Code ::
[19:42:00][aitap@Tarkus ~]130> sudo dpkg-reconfigure linux-headers-$(uname -r)
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.3.0-7.dmz.1-liquorix-686
Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.


Also there is much spam in syslog, like this:
:: Code ::

May 29 19:44:43 Tarkus distcc: (daemon_proc) Zeroconf daemon running.
May 29 19:44:43 Tarkus distcc: (daemon_proc) Zeroconf daemon running.
May 29 19:44:43 Tarkus distcc: (write_hosts) writing zeroconf data.
May 29 19:44:43 Tarkus distcc: (write_hosts) writing zeroconf data.
May 29 19:44:43 Tarkus distcc: (daemon_proc) CRITICAL! Failed to create Avahi client object: Daemon not running
May 29 19:44:43 Tarkus distcc: (daemon_proc) CRITICAL! Failed to create Avahi client object: Daemon not running
May 29 19:44:43 Tarkus distcc: (daemon_proc) zeroconf daemon ended.
May 29 19:44:43 Tarkus distcc: (daemon_proc) zeroconf daemon ended.


So, shouldn't linux-image-liquorix-whatever depend on distcc?

Is it necessary now to have distcc and avahi in just in order to build a module?

Where can I find logs which can help with depmod problem debugging? I couldn't find anything interesting in /var/lib/dkms/virtualbox/4.1.14/3.3.0-7.dmz.1-liquorix-686/i686/log/make.log or /var/lib/dkms/virtualbox/kernel-3.3.0-7.dmz.1-liquorix-686-i686/log/make.log.
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1143
Reply Quote
I'll rebuild the kernel without distcc. Being a wrapper, I didn't suspect that distcc would become a dependency for building the kernel.
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1143
Reply Quote
The worst is when you upgrade to new software when you have friends coming over and nothing works as expected. Then they all play you for a fool and the world kind of sucks for a while.

New version is available in the repos without distcc dependencies. Again, I'm sorry if this caused you any problems.
Back to top
AITap
Status: New User - Welcome
Joined: 29 May 2012
Posts: 4
Reply Quote
Thank you very much for the fix!

Sorry if I insulted you with my comments.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours