[Pkg-uml-pkgs] Bug#521713: UML Headers

Ritesh Raj Sarraf rrs at debian.org
Mon Jun 18 19:47:39 UTC 2012


Setting up the mount in the following manner seems to solve the problem.
I was able to trigger the build. Unfortunately, because of limited
system resources, the build was getting OOMed. UML seems to have
terrible block I/O performance. If anyone can test this, please do.


root at uml:~# mount -t hostfs  -o /usr/lib/uml/modules hostfs  /lib/modules
root at uml:~# mount -t hostfs  -o /usr/lib/uml/headers hostfs
/lib/modules/3.2.20/build
root at uml:~# mount -t hostfs  -o /usr/lib/uml/headers hostfs
/lib/modules/3.2.20/source
root at uml:~# mount -t hostfs  -o /usr/lib/uml/headers hostfs /usr/src/linux/
root at uml:~# free -m
             total       used       free     shared    buffers     cached
Mem:           490         25        465          0          1         10
-/+ buffers/cache:         13        477
Swap:            0          0          0
root at uml:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs         1008M  426M  532M  45% /
/dev/root      1008M  426M  532M  45% /
tmpfs            50M   28K   50M   1% /var/run
tmpfs           5.0M     0  5.0M   0% /var/run/lock
tmpfs           768M     0  768M   0% /tmp
tmpfs            10M     0   10M   0% /dev
tmpfs            99M     0   99M   0% /var/run/shm
hostfs          113G  100G  7.3G  94% /lib/modules
hostfs          113G  100G  7.3G  94% /lib/modules/3.2.20/build
hostfs          113G  100G  7.3G  94% /lib/modules/3.2.20/source
hostfs          113G  100G  7.3G  94% /usr/src/linux




On Tuesday 19 June 2012 12:18 AM, Ritesh Raj Sarraf wrote:
> Okay!! Shipping 2 empty directories, build/ and source/, to which we
> could hostfs mount the headers path does help in proceed with the build.
> It further fails because of the missing Makefiles that are shipped by
> the kernel headers package.
> 
> root at uml:~# dpkg-reconfigure iscsitarget-dkms
> 
> ------------------------------
> Deleting module version: 1.4.20.2
> completely from the DKMS tree.
> ------------------------------
> Done.
> 
> Creating symlink /var/lib/dkms/iscsitarget/1.4.20.2/source ->
>                  /usr/src/iscsitarget-1.4.20.2
> 
> DKMS: add completed.
> 
> Kernel preparation unnecessary for this kernel.  Skipping...
> 
> Building module:
> cleaning build area....(bad exit status: 2)
> make KERNELRELEASE=3.2.20 -C /lib/modules/3.2.20/build
> M=/var/lib/dkms/iscsitarget/1.4.20.2/build....(bad exit status: 2)
> Error! Bad return status for module build on kernel: 3.2.20 (x86_64)
> Consult /var/lib/dkms/iscsitarget/1.4.20.2/build/make.log for more
> information.
> root at uml:~# tail ^C
> root at uml:~# less /var/lib/dkms/iscsitarget/1.4.20.2/build/make.log
> DKMS make.log for iscsitarget-1.4.20.2 for kernel 3.2.20 (x86_64)
> Mon Jun 18 18:43:59 UTC 2012
> make: Entering directory `/lib/modules/3.2.20/build'
> make: *** No targets specified and no makefile found.  Stop.
> make: Leaving directory `/lib/modules/3.2.20/build'


-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-uml-pkgs/attachments/20120619/bc3aa799/attachment-0002.pgp>


More information about the Pkg-uml-pkgs mailing list