Bug#467260: kvm-source: FTBFS with 2.6.24 kernel

2008-02-24 Thread Mike Hommey
Package: kvm-source
Version: 61+dfsg-1
Severity: serious
Justification: FTBFS

Can't build kvm-source 61 with 2.6.24 kernel:

In file included from include/asm/atomic.h:4,
 from include/linux/sysfs.h:18,
 from include/linux/kobject.h:24,
 from include/linux/sysdev.h:24,
 from include/linux/cpu.h:22,
 from /usr/src/modules/kvm/external-module-compat.h:15,
 from command line:1:
include/asm/atomic_64.h: In function ‘atomic_add_unless’:
include/asm/atomic_64.h:414: error: implicit declaration of function ‘cmpxchg’
In file included from include/linux/notifier.h:15,
 from include/linux/memory_hotplug.h:6,
 from include/linux/mmzone.h:569,
 from include/linux/gfp.h:4,
 from include/linux/slab.h:14,
 from include/linux/percpu.h:5,
 from include/asm/local_64.h:4,
 from include/asm/local.h:4,
 from include/linux/module.h:19,
 from include/linux/sysdev.h:25,
 from include/linux/cpu.h:22,
 from /usr/src/modules/kvm/external-module-compat.h:15,
 from command line:1:
include/linux/srcu.h: At top level:
include/linux/srcu.h:37: error: field ‘mutex’ has incomplete type
In file included from include/linux/memory_hotplug.h:6,
 from include/linux/mmzone.h:569,
 from include/linux/gfp.h:4,
 from include/linux/slab.h:14,
 from include/linux/percpu.h:5,
 from include/asm/local_64.h:4,
 from include/asm/local.h:4,
 from include/linux/module.h:19,
 from include/linux/sysdev.h:25,
 from include/linux/cpu.h:22,
 from /usr/src/modules/kvm/external-module-compat.h:15,
 from command line:1:
include/linux/notifier.h:71: error: field ‘mutex’ has incomplete type
In file included from /usr/src/modules/kvm/external-module-compat.h:15,
 from command line:1:
include/linux/cpu.h: In function ‘cpuhotplug_mutex_lock’:
include/linux/cpu.h:92: error: implicit declaration of function ‘mutex_lock’
include/linux/cpu.h: In function ‘cpuhotplug_mutex_unlock’:
include/linux/cpu.h:97: error: implicit declaration of function ‘mutex_unlock’
In file included from include/linux/mm_types.h:14,
 from include/linux/sched.h:60,
 from /usr/src/modules/kvm/external-module-compat.h:453,
 from command line:1:
include/asm/mmu.h: At top level:
include/asm/mmu.h:19: error: field ‘lock’ has incomplete type
In file included from include/linux/sched.h:78,
 from /usr/src/modules/kvm/external-module-compat.h:453,
 from command line:1:
include/linux/proportions.h:40: error: field ‘mutex’ has incomplete type
In file included from include/asm/pgtable.h:4,
 from /usr/src/modules/kvm/external-module-compat.h:550,
 from command line:1:
include/asm/pgtable_64.h: In function ‘ptep_get_and_clear_full’:
include/asm/pgtable_64.h:116: error: implicit declaration of function ‘xchg’
In file included from include/linux/fs.h:366,
 from include/linux/security.h:25,
 from include/linux/mm.h:15,
 from /usr/src/modules/kvm/external-module-compat.h:600,
 from command line:1:
include/linux/quota.h: At top level:
include/linux/quota.h:250: error: field ‘dq_lock’ has incomplete type
include/linux/quota.h:320: error: field ‘dqio_mutex’ has incomplete type
include/linux/quota.h:321: error: field ‘dqonoff_mutex’ has incomplete type
In file included from include/linux/security.h:25,
 from include/linux/mm.h:15,
 from /usr/src/modules/kvm/external-module-compat.h:600,
 from command line:1:
include/linux/fs.h:525: error: field ‘bd_mutex’ has incomplete type
include/linux/fs.h:615: error: field ‘i_mutex’ has incomplete type
include/linux/fs.h:643: error: field ‘inotify_mutex’ has incomplete type
In file included from include/linux/security.h:25,
 from include/linux/mm.h:15,
 from /usr/src/modules/kvm/external-module-compat.h:600,
 from command line:1:
include/linux/fs.h:995: error: field ‘s_lock’ has incomplete type
include/linux/fs.h:1028: error: field ‘s_vfs_rename_mutex’ has incomplete type
In file included from /usr/src/modules/kvm/svm.c:16:
/usr/src/modules/kvm/include/linux/kvm_host.h:74: error: field ‘mutex’ has 
incomplete type
/usr/src/modules/kvm/include/linux/kvm_host.h:110: error: field ‘lock’ has 
incomplete type
make[4]: *** [/usr/src/modules/kvm/svm.o] Error 1
make[3]: *** [_module_/usr/src/modules/kvm] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.24-1-amd64'
make[2]: *** [all] Error 2
make[2]: Leaving directory 

Bug#467260: kvm-source: FTBFS with 2.6.24 kernel

2008-02-24 Thread Jan Luebbe
Hi!

On Sun, 2008-02-24 at 10:20 +0100, Mike Hommey wrote:
 Package: kvm-source
 Version: 61+dfsg-1
 Severity: serious
 Justification: FTBFS
 
 Can't build kvm-source 61 with 2.6.24 kernel:

*snip build errors*

 -- System Information:
 Debian Release: lenny/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
 Architecture: amd64 (x86_64)
 
 Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)

Are you building kvm-source against this kernel?

 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
 Shell: /bin/sh linked to /bin/bash

I just tried to build for amd64 with make-kpkg against the kernel.org
tree i usually use and with module-assistant against the debian amd64
kernel with:

module-assistant -k /usr/src/linux-headers-2.6.24-1-amd64/ build kvm-source

Both tries produced usable packages. I'll send you the ones for
2.6.24-1-amd64 in a seperate mail.

What did you do differently?

Jan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#467260: kvm-source: FTBFS with 2.6.24 kernel

2008-02-24 Thread Mike Hommey
On Sun, Feb 24, 2008 at 01:11:06PM +0100, Jan Luebbe wrote:
 Hi!
 
 On Sun, 2008-02-24 at 10:20 +0100, Mike Hommey wrote:
  Package: kvm-source
  Version: 61+dfsg-1
  Severity: serious
  Justification: FTBFS
  
  Can't build kvm-source 61 with 2.6.24 kernel:
 
 *snip build errors*
 
  -- System Information:
  Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
  Architecture: amd64 (x86_64)
  
  Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
 
 Are you building kvm-source against this kernel?

Yes

  Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
  Shell: /bin/sh linked to /bin/bash
 
 I just tried to build for amd64 with make-kpkg against the kernel.org
 tree i usually use and with module-assistant against the debian amd64
 kernel with:
 
 module-assistant -k /usr/src/linux-headers-2.6.24-1-amd64/ build kvm-source
 
 Both tries produced usable packages. I'll send you the ones for
 2.6.24-1-amd64 in a seperate mail.
 
 What did you do differently?

Absolutely nothing, except using the -t option of m-a, which doesn't change
anything to the build itself.

FWIW:
# dpkg -l linux*2.6.24* | grep ^ii
ii  linux-headers-2.6.24-1-amd64 2.6.24-4   
  Header files for Linux 2.6.24 on AMD64
ii  linux-headers-2.6.24-1-common2.6.24-4   
  Common header files for Linux 2.6.24
ii  linux-image-2.6.24-1-amd64   2.6.24-4   
  Linux 2.6.24 image on AMD64
ii  linux-kbuild-2.6.24  2.6.24-1   
  Kbuild infrastructure for Linux 2.6.24

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]