Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 426516

Summary: app-emulation/qemu-kvm-1.1 - In function `virtio_pci_set_guest_notifiers': virtio-pci.c:(.text+0xaf7): undefined reference to `kvm_kernel_irqchip'
Product: Gentoo Linux Reporter: Kevin Faulkner <kondor6c>
Component: Current packagesAssignee: Gentoo QEMU Project <qemu+disabled>
Status: RESOLVED DUPLICATE    
Severity: minor CC: madcored, Thomas.Eschenbacher, wking
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kevin Faulkner 2012-07-14 06:00:36 UTC
<snip>
  CC    arm-softmmu/op_helper.o
  CC    arm-softmmu/helper.o
  CC    arm-softmmu/cpu.o
  CC    arm-softmmu/neon_helper.o
  CC    arm-softmmu/iwmmxt_helper.o
  CC    arm-softmmu/disas.o
  LINK  i386-softmmu/qemu-system-i386
  LINK  arm-softmmu/qemu-system-arm
../libhw32/virtio-pci.o: In function `virtio_pci_set_guest_notifiers':
virtio-pci.c:(.text+0xaf7): undefined reference to `kvm_kernel_irqchip'
virtio-pci.c:(.text+0xb4c): undefined reference to `kvm_kernel_irqchip'
../libhw32/msi.o: In function `msi_init':
msi.c:(.text+0x727): undefined reference to `kvm_kernel_irqchip'
../libhw32/msi.o: In function `msi_uninit':
msi.c:(.text+0x8a8): undefined reference to `kvm_kernel_irqchip'
../libhw32/msi.o: In function `msi_reset':
msi.c:(.text+0x978): undefined reference to `kvm_kernel_irqchip'
../libhw32/msi.o:msi.c:(.text+0xc60): more undefined references to `kvm_kernel_irqchip' follow
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1


This appears to only be a problem when using arm as a target

Reproducible: Always

Steps to Reproduce:
1. edit to include arm QEMU_SOFTMMU_TARGETS="arm"
2. emerge =app-emulation/qemu-kvm-1.1
3.
Actual Results:  
see description for error

Expected Results:  
compile successfully
Comment 1 W. Trevor King 2012-07-15 11:25:20 UTC
The subject of your bug should include the full package name (app-emulation/qemu), possibly with the version number (app-emulation/qemu-1.0.1) not just `qemu`.

Regarding the bug, see [1], which provides a patch fixing what seems to be your error.

[1]: https://patchwork.kernel.org/patch/1160751/
Comment 2 Alexandre Borges Marcelo 2012-07-17 16:43:33 UTC
I can confirm that app-emulator/qemu-kvm-1.1.[01] fails to build for the following softmmu targets: alpha arm m68k mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc64. 
The patch from Comment 1 resolved the issue, although I only tested if the package compiled.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-19 15:31:35 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 4 Thomas 2012-07-20 18:07:36 UTC
It seems that this problem has already been discussed and solved in qemu-kvm upstream. A patch can be found here:

https://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=bbf3b80401d55ac3339160cefa17f0015317f512

(worked for me)
Comment 5 Alexandre Borges Marcelo 2012-07-22 22:41:19 UTC
Just found out this is a duplicate of bug 425418.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2012-07-24 14:05:58 UTC

*** This bug has been marked as a duplicate of bug 425418 ***