Alex,

Is this still actually necessary?  I just made an attempt to reproduce
your problem in a 32 bit natty chroot from a 64 bit lucid box using DKMS
master as of today with a simple kernel module (nvidiabl) and couldn't
reproduce it.

supermario@serverman:~$ uname -a
Linux serverman 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 
x86_64 GNU/Linux
supermario@serverman:~$ schroot -uroot -c natty-i386
(natty-i386)root@serverman:/home/supermario# dpkg -i dkms_2.2.0.1-0_all.deb 
Selecting previously deselected package dkms.
(Reading database ... 13981 files and directories currently installed.)
Unpacking dkms (from dkms_2.2.0.1-0_all.deb) ...
Setting up dkms (2.2.0.1-0) ...
(natty-i386)root@serverman:/home/supermario# cp nvidia_bl-0.69-1/ /usr/src/ -R
(natty-i386)root@serverman:/home/supermario# apt-get install 
linux-image-generic linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dmsetup grub-common grub-gfxpayload-lists grub-pc libdevmapper1.02.1 
libfreetype6 libfuse2 linux-firmware linux-headers-2.6.38-8
  linux-headers-2.6.38-8-generic linux-image-2.6.38-8-generic os-prober ucf 
wireless-crda
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base fuse-utils fdutils 
linux-doc-2.6.38 linux-source-2.6.38 linux-tools
The following NEW packages will be installed:
  dmsetup grub-common grub-gfxpayload-lists grub-pc libdevmapper1.02.1 
libfreetype6 libfuse2 linux-firmware linux-headers-2.6.38-8
  linux-headers-2.6.38-8-generic linux-headers-generic 
linux-image-2.6.38-8-generic linux-image-generic os-prober ucf wireless-crda
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.5 MB of archives.
After this operation, 253 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ natty/main libfreetype6 i386 
2.4.4-1ubuntu2 [314 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ natty/main wireless-crda i386 1.13 
[14.9 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ natty/main linux-image-2.6.38-8-generic 
i386 2.6.38-8.42 [35.8 MB]
Get:4 http://archive.ubuntu.com/ubuntu/ natty/main libdevmapper1.02.1 i386 
2:1.02.48-4ubuntu2 [62.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ natty/main dmsetup i386 
2:1.02.48-4ubuntu2 [37.9 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ natty/main ucf all 3.0025+nmu1ubuntu1 
[54.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ natty/main libfuse2 i386 
2.8.4-1.1ubuntu4 [102 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ natty/main grub-common i386 
1.99~rc1-13ubuntu3 [1973 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ natty/main grub-pc i386 
1.99~rc1-13ubuntu3 [923 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ natty/main grub-gfxpayload-lists i386 
0.2 [2956 B]
Get:11 http://archive.ubuntu.com/ubuntu/ natty/main linux-firmware all 1.52 
[17.5 MB]
Get:12 http://archive.ubuntu.com/ubuntu/ natty/main linux-headers-2.6.38-8 all 
2.6.38-8.42 [10.9 MB]
Get:13 http://archive.ubuntu.com/ubuntu/ natty/main 
linux-headers-2.6.38-8-generic i386 2.6.38-8.42 [800 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ natty/main linux-headers-generic i386 
2.6.38.8.22 [2382 B]
Get:15 http://archive.ubuntu.com/ubuntu/ natty/main linux-image-generic i386 
2.6.38.8.22 [2374 B]
Get:16 http://archive.ubuntu.com/ubuntu/ natty/main os-prober i386 1.44ubuntu1 
[17.2 kB]
Fetched 68.5 MB in 6s (11.4 MB/s)                                               
                                                                            
Preconfiguring packages ...
Selecting previously deselected package libfreetype6.
(Reading database ... 14031 files and directories currently installed.)
Unpacking libfreetype6 (from .../libfreetype6_2.4.4-1ubuntu2_i386.deb) ...
Selecting previously deselected package wireless-crda.
Unpacking wireless-crda (from .../wireless-crda_1.13_i386.deb) ...
Selecting previously deselected package linux-image-2.6.38-8-generic.
Unpacking linux-image-2.6.38-8-generic (from 
.../linux-image-2.6.38-8-generic_2.6.38-8.42_i386.deb) ...
Done.
Selecting previously deselected package libdevmapper1.02.1.
Unpacking libdevmapper1.02.1 (from 
.../libdevmapper1.02.1_2%3a1.02.48-4ubuntu2_i386.deb) ...
Selecting previously deselected package dmsetup.
Unpacking dmsetup (from .../dmsetup_2%3a1.02.48-4ubuntu2_i386.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu1ubuntu1_all.deb) ...
Moving old data out of the way
Selecting previously deselected package libfuse2.
Unpacking libfuse2 (from .../libfuse2_2.8.4-1.1ubuntu4_i386.deb) ...
Selecting previously deselected package grub-common.
Unpacking grub-common (from .../grub-common_1.99~rc1-13ubuntu3_i386.deb) ...
Selecting previously deselected package grub-pc.
Unpacking grub-pc (from .../grub-pc_1.99~rc1-13ubuntu3_i386.deb) ...
Selecting previously deselected package grub-gfxpayload-lists.
Unpacking grub-gfxpayload-lists (from .../grub-gfxpayload-lists_0.2_i386.deb) 
...
Selecting previously deselected package linux-firmware.
Unpacking linux-firmware (from .../linux-firmware_1.52_all.deb) ...
Selecting previously deselected package linux-headers-2.6.38-8.
Unpacking linux-headers-2.6.38-8 (from 
.../linux-headers-2.6.38-8_2.6.38-8.42_all.deb) ...
Selecting previously deselected package linux-headers-2.6.38-8-generic.
Unpacking linux-headers-2.6.38-8-generic (from 
.../linux-headers-2.6.38-8-generic_2.6.38-8.42_i386.deb) ...
Selecting previously deselected package linux-headers-generic.
Unpacking linux-headers-generic (from 
.../linux-headers-generic_2.6.38.8.22_i386.deb) ...
Selecting previously deselected package linux-image-generic.
Unpacking linux-image-generic (from 
.../linux-image-generic_2.6.38.8.22_i386.deb) ...
Selecting previously deselected package os-prober.
Unpacking os-prober (from .../os-prober_1.44ubuntu1_i386.deb) ...
Setting up libfreetype6 (2.4.4-1ubuntu2) ...
Setting up wireless-crda (1.13) ...
Setting up linux-image-2.6.38-8-generic (2.6.38-8.42) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic
df: Warning: cannot read table of mounted file systems: No such file or 
directory
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.38-8-generic 
/boot/vmlinuz-2.6.38-8-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-8-generic 
/boot/vmlinuz-2.6.38-8-generic
Setting up ucf (3.0025+nmu1ubuntu1) ...
Setting up libfuse2 (2.8.4-1.1ubuntu4) ...
Setting up linux-firmware (1.52) ...
Setting up linux-headers-2.6.38-8 (2.6.38-8.42) ...
Setting up linux-headers-2.6.38-8-generic (2.6.38-8.42) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.38-8-generic 
/boot/vmlinuz-2.6.38-8-generic
Setting up linux-headers-generic (2.6.38.8.22) ...
Setting up linux-image-generic (2.6.38.8.22) ...
Setting up os-prober (1.44ubuntu1) ...
Setting up dmsetup (2:1.02.48-4ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Setting up libdevmapper1.02.1 (2:1.02.48-4ubuntu2) ...
Setting up grub-common (1.99~rc1-13ubuntu3) ...
Setting up grub-gfxpayload-lists (0.2) ...
Setting up grub-pc (1.99~rc1-13ubuntu3) ...

Creating config file /etc/default/grub with new version
grub-probe: error: cannot stat 
`/dev/mapper/MaLVM-natty--i386--0db4bbd9--0bbf--4836--ab21--e0c4a4dc6256'.
grub-probe: error: cannot stat 
`/dev/mapper/MaLVM-natty--i386--0db4bbd9--0bbf--4836--ab21--e0c4a4dc6256'.
grub-probe: error: cannot stat 
`/dev/mapper/MaLVM-natty--i386--0db4bbd9--0bbf--4836--ab21--e0c4a4dc6256'.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic
df: Warning: cannot read table of mounted file systems: No such file or 
directory
(natty-i386)root@serverman:/home/supermario# dkms add -m nvidia_bl -v 0.69-1

Creating symlink /var/lib/dkms/nvidia_bl/0.69-1/source ->
                 /usr/src/nvidia_bl-0.69-1

DKMS: add Completed.
(natty-i386)root@serverman:/home/supermario# dkms build -m nvidia_bl -v 0.69-1 
-k 2.6.38-8-generic -a i686

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.38-8-generic -C /lib/modules/2.6.38-8-generic/build 
SUBDIRS=/var/lib/dkms/nvidia_bl/0.69-1/build modules....
cleaning build area....

DKMS: build Completed.
(natty-i386)root@serverman:/home/supermario# modinfo 
/var/lib/dkms/nvidia_bl/0.69-1/2.6.38-8-generic/i686/module/nvidiabl.ko 
filename:       
/var/lib/dkms/nvidia_bl/0.69-1/2.6.38-8-generic/i686/module/nvidiabl.ko
license:        GPL
description:    Nvidia-based graphics adapter backlight driver
author:         Mario Schwalbe <[email protected]>, Guillaume Zin 
<[email protected]>
srcversion:     7F3F23F495D03BDB6233662
alias:          dmi*:svn*AppleInc.*:pn*MacBookAir3,2*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookAir3,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookAir2,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro7,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro5,5*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro5,4*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro5,3*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro5,2*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro5,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro4,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro3,2*:
alias:          dmi*:svn*AppleInc.*:pn*MacBookPro3,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBook7,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBook6,1*:
alias:          dmi*:svn*AppleInc.*:pn*MacBook5,2*:
alias:          dmi*:svn*AppleInc.*:pn*MacBook5,1*:
alias:          dmi*:svn*TOSHIBA*:pn*SATELLITEPROU500*:
alias:          dmi*:svn*SAMSUNGELECTRONICSCO.,LTD.*:pn*SR70S/SR71S*:
alias:          dmi*:svn*SAMSUNGELECTRONICSCO.,LTD.*:pn*N510*:
alias:          dmi*:svn*DellInc.*:pn*Vostro3500*:
alias:          dmi*:svn*DellInc.*:pn*Inspiron1370*:
alias:          dmi*:svn*SonyCorporation*:pn*VPCF1*:
alias:          dmi*:svn*SonyCorporation*:pn*VGN-S560*:
alias:          dmi*:svn*SonyCorporation*:pn*VPCS1*:
alias:          dmi*:svn*SonyCorporation*:pn*VPCCW2*:
alias:          dmi*:svn*SonyCorporation*:pn*VPCCW1*:
alias:          dmi*:svn*SonyCorporation*:pn*VGN-FZ38*:
alias:          dmi*:svn*SonyCorporation*:pn*VGN-FZ11*:
alias:          dmi*:svn*SonyCorporation*:pn*VGN-AW11*:
depends:        
vermagic:       2.6.38-8-generic SMP mod_unload modversions 686 
parm:           model:backlight model, must be empty for autodetection, nv4x or 
nv5x (charp)
parm:           off:value to put in the register to disable the backlight, 
negative value is interpreted as percentage of maximum, -101 for default, 
autodetect otherwise (long)
parm:           min:minimum register value for the backlight, negative value is 
interpreted as percentage of maximum, -101 for default, autodetect otherwise 
(long)
parm:           max:maximum register value for the backlight, -101 for default, 
autodetect otherwise (long)
parm:           pci_id:PCI ID of the Nvidia card - usefull only when not using 
autodetection and more than one Nvidia PCI device (ulong)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/655275

Title:
  allow 32-bit module build on 64-bit host

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/655275/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to