Bug#523716: [pkg-nvidia-devel] Bug#523716: nvidia-kernel-source: fails to build

2009-04-13 Thread Lennart Sorensen
On Sun, Apr 12, 2009 at 09:54:20AM +0200, Sven Joachim wrote:
 tags 523716 + patch
 thanks
 
 On 2009-04-12 05:51 +0200, Avery Fay wrote:
 
  Package: nvidia-kernel-source
  Version: 180.44-1
  Severity: grave
  Justification: renders package unusable
 
  from m-a build:
 
  /usr/bin/make -C . LINUXDIR=/lib/modules/2.6.28-1-amd64/build 
  KVERREL=2.6.28-1-amd64 clean
  make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
  rm -rf *.o *.ko .depend .*.flags .*.d .*.cmd *.mod.c .tmp_versions
  make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
  dh_clean
  /usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
  make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
  /usr/bin/make -C . LINUXDIR=/lib/modules/2.6.28-1-amd64/build 
  KVERREL=2.6.28-1-amd64 clean
  make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
  make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
  dh_clean
  dh_clean: cannot read debian/control: No such file or directory
 
  make[1]: *** [kdist_clean] Error 1
  make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
  make: *** [kdist_build] Error 2
 
 Here is a quick patch that works for me:
 
 --8---cut here---start-8---
 --- debian.binary/rules~  2009-04-12 09:25:15.0 +0200
 +++ debian.binary/rules   2009-04-12 09:32:02.362270866 +0200
 @@ -94,6 +94,6 @@
  # other kdist_commands (except for the .deb files created).
  kdist_clean: 
   $(MAKE) -C . LINUXDIR=$(KSRC) KVERREL=$(KVERS) clean
 - dh_clean
 + -dh_clean
  
  .PHONY: clean binary-modules
 --8---cut here---end---8---
 
 However, it seems that the module does not build against kernels older
 than 2.6.29 (subject to another bug report).

Compiles fine on 2.6.26-1-686 and 2.6.26-1-686-bigmem for me.
Well subject to the dealing with the missing control file (which my
patch had fixed in it, but must have been lost somewhere when the final
package was put together).

-- 
Len Sorensen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#523716: [pkg-nvidia-devel] Bug#523716: nvidia-kernel-source: fails to build

2009-04-13 Thread Lennart Sorensen
On Mon, Apr 13, 2009 at 08:06:47PM +0200, Fabio Rosciano wrote:
 Hello everyone,
 
 180.44-2 still does not build against 2.6.28, but it does build fine
 against 2.6.29, both debian stock kernels and headers.
 
 linux-kbuild are homemade since they seem to be missing from unstable
 and they are built according to:
 
 http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage
 
 Here is the output of:
 
 # m-a a-i nvidia
 
 for 2.6.28-1-amd64:
 
 /usr/bin/make -C . LINUXDIR=/lib/modules/2.6.28-1-amd64/build
 KVERREL=2.6.28-1-amd64 clean
 make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
 rm -rf *.o *.ko .depend .*.flags .*.d .*.cmd *.mod.c .tmp_versions
 make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
 dh_clean
 /usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
 make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
 /usr/bin/make -C . LINUXDIR=/lib/modules/2.6.28-1-amd64/build
 KVERREL=2.6.28-1-amd64 clean
 make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
 rm -rf *.o *.ko .depend .*.flags .*.d .*.cmd *.mod.c .tmp_versions
 make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
 dh_clean
 /usr/bin/make -w -f debian/rules configure
 make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
 sed 's/#KVERS#/2.6.28-1-amd64/g' debian/control.template
  /usr/src/modules/nvidia-kernel/debian/control
 sed 's/#KVERS#/2.6.28-1-amd64/g' debian/dirs.template
  /usr/src/modules/nvidia-kernel/debian/dirs
 sed 's/#KVERS#/2.6.28-1-amd64/g' debian/override.template
  /usr/src/modules/nvidia-kernel/debian/override
 make[2]: Leaving directory `/usr/src/modules/nvidia-kernel'
 sed 's/#KVERS#/2.6.28-1-amd64/g' debian/control.template
  /usr/src/modules/nvidia-kernel/debian/control
 sed 's/#KVERS#/2.6.28-1-amd64/g' debian/dirs.template
  /usr/src/modules/nvidia-kernel/debian/dirs
 sed 's/#KVERS#/2.6.28-1-amd64/g' debian/override.template
  /usr/src/modules/nvidia-kernel/debian/override
 dh_testroot
 dh_prep
 # Build the modules
 /usr/bin/make -C . LINUXDIR=/lib/modules/2.6.28-1-amd64/build
 KVERREL=2.6.28-1-amd64
 make[2]: Entering directory `/usr/src/modules/nvidia-kernel'
 make -C /lib/modules/2.6.28-1-amd64/build  M=`/bin/pwd` modules
 make[3]: Entering directory `/usr/src/linux-headers-2.6.28-1-amd64'
   CC [M]  /usr/src/modules/nvidia-kernel/nv.o
 In file included from include/linux/bitops.h:17,
  from include/linux/kernel.h:15,
  from include/linux/sched.h:52,
  from include/linux/utsname.h:35,
  from /usr/src/modules/nvidia-kernel/nv-linux.h:19,
  from /usr/src/modules/nvidia-kernel/nv.c:14:
 /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/bitops.h: In
 function ???set_bit???:
 /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/bitops.h:60:
 warning: pointer of type ???void *??? used in arithmetic
 /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/bitops.h: In
 function ???clear_bit???:
 /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/bitops.h:97:
 warning: pointer of type ???void *??? used in arithmetic
 In file included from include/linux/utsname.h:35,
  from /usr/src/modules/nvidia-kernel/nv-linux.h:19,
  from /usr/src/modules/nvidia-kernel/nv.c:14:
 include/linux/sched.h: In function ???object_is_on_stack???:
 include/linux/sched.h:2025: warning: pointer of type ???void *??? used in
 arithmetic
 In file included
 from 
 /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/dma-mapping.h:9,
  from include/linux/dma-mapping.h:57,
  from include/asm-generic/pci-dma-compat.h:7,
 
 from /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/pci.h:94,
  from include/linux/pci.h:1002,
  from /usr/src/modules/nvidia-kernel/nv-linux.h:86,
  from /usr/src/modules/nvidia-kernel/nv.c:14:
 include/linux/scatterlist.h: In function ???sg_virt???:
 include/linux/scatterlist.h:199: warning: pointer of type ???void *??? used
 in arithmetic
 In file included
 from 
 /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/hardirq_64.h:5,
 
 from /usr/src/linux-headers-2.6.28-1-amd64/arch/x86/include/asm/hardirq.h:4,
  from include/linux/hardirq.h:7,
  from include/linux/interrupt.h:12,
  from /usr/src/modules/nvidia-kernel/nv-linux.h:87,
  from /usr/src/modules/nvidia-kernel/nv.c:14:
 include/linux/irq.h: In function ???irq_to_desc???:
 include/linux/irq.h:189: warning: comparison between signed and unsigned
 In file included from /usr/src/modules/nvidia-kernel/nv-linux.h:113,
  from /usr/src/modules/nvidia-kernel/nv.c:14:
 include/linux/highmem.h: In function ???zero_user_segments???:
 include/linux/highmem.h:136: warning: pointer of type ???void *??? used in
 arithmetic
 include/linux/highmem.h:139: warning: pointer of type ???void *??? used 

Bug#523716: [pkg-nvidia-devel] Bug#523716: nvidia-kernel-source: fails to build

2009-04-13 Thread Fabio Rosciano
On Mon, 2009-04-13 at 14:42 -0400, Lennart Sorensen wrote:
 Could you try changing the line in
 /usr/src/modules/nvidia-kernel/conftest.h that says:
 
 #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,29)
 
 to
 
 #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,27)
 
 And then doing module-assistant again but using the -O option to prevent
 it from reextracting?

Dear Len,

I will admit I have not understood half of what you wrote, however
modifying that line as you suggest and then launching:

j...@nostromo:~$ sudo m-a a-i -O -l 2.6.28-1-amd64 nvidia

built the package correctly.
I have not rebooted with 2.6.28 to test it, but I expect it to work.

I was holding back to 2.6.28 because of the nvidia module, now I can
safely switch full time to 2.6.29. However, I believe it is good to know
it's fixed.

Hope this helps, let me know if you need more testing.

-- 
At that point it will compile, but segfault, as it should..




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#523716: [pkg-nvidia-devel] Bug#523716: nvidia-kernel-source: fails to build

2009-04-13 Thread Lennart Sorensen
On Mon, Apr 13, 2009 at 09:48:44PM +0200, Fabio Rosciano wrote:
 I will admit I have not understood half of what you wrote, however
 modifying that line as you suggest and then launching:
 
 j...@nostromo:~$ sudo m-a a-i -O -l 2.6.28-1-amd64 nvidia
 
 built the package correctly.
 I have not rebooted with 2.6.28 to test it, but I expect it to work.
 
 I was holding back to 2.6.28 because of the nvidia module, now I can
 safely switch full time to 2.6.29. However, I believe it is good to know
 it's fixed.
 
 Hope this helps, let me know if you need more testing.

Well I still don't understand why 2.6.27 and 2.6.28 want the 3 argument
version given the sources clearly to me appear to want the 4 argument.
Once I figure that out, we will update the package to do the right thing.

-- 
Len Sorensen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org