<div dir="ltr">I agree, this is not a bug of kbuild. I can't tell if it's m-a or the rules file in the source.<div><div>I think that reassigning to m-a is a good way to find out :)</div></div><div><br></div><div>cheers,</div><div><br></div><div>Lorenzo</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-14 12:31 GMT+02:00 Gianfranco Costamagna <span dir="ltr"><<a href="mailto:costamagnagianfranco@yahoo.it" target="_blank">costamagnagianfranco@yahoo.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Lorenzo,<br>
<br>
I can reproduce, but couldn't this be a problem of m-a?<br>
<br>
I would like to reassign, maybe m-a is using the wrong build system for virtualbox, and just by chance it worked before.<br>
<br>
cheers,<br>
<br>
G.<br>
<br>
<br>
<br>
<br>
Il Mercoledì 13 Maggio 2015 19:18, lorenz lor <<a href="mailto:lorenzo.ru.g@gmail.com">lorenzo.ru.g@gmail.com</a>> ha scritto:<br>
<br>
<br>
<br>
The sequence is<br>
# apt-get install virtualbox-source<br>
# m-a update<br>
# m-a prepare<br>
# m-a build virtualbox-source<br>
<br>
the last command is supposed to create a .deb package but the building process fails at about 30%; as a result you can view the build log<br>
<br>
Lorenzo<br>
<br>
<br>
2015-05-13 18:43 GMT+02:00 Gianfranco Costamagna <<a href="mailto:costamagnagianfranco@yahoo.it">costamagnagianfranco@yahoo.it</a>>:<br>
<br>
Please post the *exact* sequence you run in order to spot the problem.<br>
><br>
><br>
>I never used vbox source, I use vbox-dkms :)<br>
><br>
><br>
>cheers,<br>
><br>
><br>
>G.<br>
><br>
><br>
>Sent from Yahoo Mail on Android<br>
>________________________________<br>
><br>
>From:"lorenz lor" <<a href="mailto:lorenzo.ru.g@gmail.com">lorenzo.ru.g@gmail.com</a>><br>
>Date:Wed, 13 May, 2015 at 18:40<br>
>Subject:Re: [Pkg-virtualbox-devel] Bug#785161: kbuild: module-assistant fails to build virtualbox-source<br>
><br>
><br>
>Hi Frank,<br>
><br>
><br>
>I was not aware of the right procedure to export the module's source from the VirtualBox tree, so thank you for pointing out :)<br>
><br>
><br>
>@ Debian Maintainers:<br>
>I still think there is a problem with m-a and/or virtualbox-source Debian packages: from the first message I post it seems that m-a is using kmk to build the vbox module instead of the standard make, and this is an "unsupported way of building" that leads to the failure.<br>
>Of course, as a non developer, I have a limited ability to understand this kind of problems so if you think there is nothing to fix I won't push this issue further.<br>
><br>
><br>
>Thank you for your attention<br>
><br>
><br>
>Lorenzo<br>
><br>
><br>
><br>
><br>
>2015-05-13 14:52 GMT+02:00 Frank Mehnert <<a href="mailto:frank.mehnert@oracle.com">frank.mehnert@oracle.com</a>>:<br>
><br>
>Hi Lorenzo,<br>
>><br>
>>On Wednesday 13 May 2015 14:23:09 lorenz lor wrote:<br>
>>> I'm a bit confused about the snipped you post: if I understand right, the<br>
>>> point is that " kbuild is not meant to build vbox kernel modules".<br>
>>> So to build the modules I'm supposed to do something like<br>
>>> ./configure<br>
>>> make<br>
>>> make install<br>
>>> ?<br>
>>> is that right?<br>
>><br>
>>No.<br>
>><br>
>>I'm talking about VirtualBox. To build the sources you need to do<br>
>><br>
>> ./configure<br>
>> kmk<br>
>> kmk packing<br>
>><br>
>>This builds the whole tree and as part of the compilation process, the kernel<br>
>>modules are built as well but these modules are NOT meant to be actually used.<br>
>>To compile the Linux kernel modules, do<br>
>><br>
>> ./src/VBox/HostDrivers/Support/linux/export_modules ~/vboxhost.tar.gz<br>
>><br>
>>Then extract the resulting archive and do<br>
>><br>
>> make<br>
>><br>
>>in the resulting directory. This will compile the kernel modules against the<br>
>>currently installed kernel sources.<br>
>><br>
>> make install<br>
>><br>
>>Will install the kernel modules into /lib/modules/...<br>
>><br>
>>Please be aware that kmk as part of kBuild is something completely different<br>
>>than Linux kbuild (= kernel build system).<br>
>><br>
>>Frank<br>
>>--<br>
>>Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox<br>
>>ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany<br>
>><br>
>>ORACLE Deutschland B.V. & Co. KG<br>
>>Hauptverwaltung: Riesstraße 25, D-80992 München<br>
>>Registergericht: Amtsgericht München, HRA 95603<br>
>><br>
>>Komplementärin: ORACLE Deutschland Verwaltung B.V.<br>
>>Hertogswetering 163/167, 3543 AS Utrecht, Niederlande<br>
>>Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697<br>
>>Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher<br>
><br>
</blockquote></div><br></div>