Bug#917864: closed by Gianfranco Costamagna (Re: Fails to build for non-current kernel version)
On Wed, 2019-01-30 at 16:03 +0100, Gianfranco Costamagna wrote: > Hello Ben, > > The bug is in the makefile you provide to module-assistant. > > I'm sorry but I have no clue about how to fix it... > Can you please help me in fixing the issue? In debian/virtualbox-guest-source.files/rules/, you call the kernel build system like this: $(MAKE) -C $(KSRC) M=$(CURDIR) But in the clean rule, you call the upstream Makefiles directly, and they try to use the kernel build scripts for the running kernel. You should probably use something like: $(MAKE) -C $(KSRC) M=$(CURDIR) clean Ben. -- Ben Hutchings The two most common things in the universe are hydrogen and stupidity. signature.asc Description: This is a digitally signed message part
Bug#917864: closed by Gianfranco Costamagna (Re: Fails to build for non-current kernel version)
Hello Ben, > > The bug is in the makefile you provide to module-assistant. I'm sorry but I have no clue about how to fix it... Can you please help me in fixing the issue? thanks Gianfranco
Bug#917864: closed by Gianfranco Costamagna (Re: Fails to build for non-current kernel version)
On Mon, 2019-01-21 at 07:55 +, Gianfranco Costamagna wrote: > Hello, so it didn't build correctly?do you have a build log? It was in my last message. > I'm failing to understand why this can't be a m-a bug...I'm not an > user of m-a myself, but I usually create a deb file and then dpkg -i > it. The bug is in the makefile you provide to module-assistant. Ben. -- Ben Hutchings Klipstein's 4th Law of Prototyping and Production: A fail-safe circuit will destroy others. signature.asc Description: This is a digitally signed message part
Bug#917864: closed by Gianfranco Costamagna (Re: Fails to build for non-current kernel version)
Hello, so it didn't build correctly?do you have a build log? I'm failing to understand why this can't be a m-a bug...I'm not an user of m-a myself, but I usually create a deb file and then dpkg -i it. G. Il sabato 19 gennaio 2019, 03:24:12 CET, Ben Hutchings ha scritto: Control: reopen -1 # module-assistant -l 4.20.0-trunk-amd64 auto-build virtualbox-guest-source Reading package lists... Done Building dependency tree Reading state information... Done virtualbox-guest-source is already the newest version (5.2.24-dfsg-4). 0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded. W: --force-yes is deprecated, use one of the options starting with --allow instead.
Bug#917864: closed by Gianfranco Costamagna (Re: Fails to build for non-current kernel version)
Control: reopen -1 # module-assistant -l 4.20.0-trunk-amd64 auto-build virtualbox-guest-source Reading package lists... Done Building dependency tree Reading state information... Done virtualbox-guest-source is already the newest version (5.2.24-dfsg-4). 0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded. W: --force-yes is deprecated, use one of the options starting with --allow instead. . Updated infos about 1 packages Extracting the package tarball, /usr/src/virtualbox-guest.tar.bz2, please wait... /usr/bin/make -C vboxguest clean make[1]: Entering directory '/usr/src/modules/virtualbox-guest/vboxguest' /usr/src/modules/virtualbox-guest/vboxguest/Makefile.include.header:141: *** Error: unable to find the headers of the Linux kernel to build against. Specify KERN_VER= (currently 4.19.0-1-amd64) and run Make again. Stop. make[1]: Leaving directory '/usr/src/modules/virtualbox-guest/vboxguest' make: *** [debian/rules:44: clean] Error 2 /usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules make[1]: Entering directory '/usr/src/modules/virtualbox-guest' /usr/bin/make -C vboxguest clean make[2]: Entering directory '/usr/src/modules/virtualbox-guest/vboxguest' /usr/src/modules/virtualbox-guest/vboxguest/Makefile.include.header:141: *** Error: unable to find the headers of the Linux kernel to build against. Specify KERN_VER= (currently 4.19.0-1-amd64) and run Make again. Stop. make[2]: Leaving directory '/usr/src/modules/virtualbox-guest/vboxguest' make[1]: *** [debian/rules:44: clean] Error 2 make[1]: Leaving directory '/usr/src/modules/virtualbox-guest' make: *** [/usr/share/modass/include/common-rules.make:56: kdist_build] Error 2 BUILD FAILED! See /var/cache/modass/virtualbox-guest-source.buildlog.4.20.0-trunk-amd64.154786 It's still trying to use headers for 4.19.0-1-amd64 (the running kernel version) when I ask to build for 4.20.0-trunk-amd64. This has nothing to do with compatibility with any particular kernel version; the problem is you are not passing through the target kernel version when invoking "make clean". Ben. -- Ben Hutchings Hoare's Law of Large Problems: Inside every large problem is a small problem struggling to get out. signature.asc Description: This is a digitally signed message part