Skip to contentSkip to conversation

Latest version in Git doesn't link - any ideas?

Qemu-devel Nigel Horne 3 participants 5 messages Aug 11, 2010 – Aug 15, 2010

lore
Share & tools
lore
#0 lore raw

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
...
LINK arm-softmmu/qemu-system-arm
ivshmem.o: In function `ivshmem_mmio_map':
ivshmem.c:(.text+0x80f): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.o: In function ivshmem_read':
ivshmem.c:(.text+0x9fc): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.c:(.text+0xa6c): undefined reference to kvm_set_ioeventfd_mmio_long'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1
make: *** [subdir-arm-softmmu] Error 2

-Nigel

Signature · 3 lines
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter.
NJH Music, ICQ#20252325, twitter: @nigelhorne
[email protected] http://www.bandsman.co.uk
#1 lore raw

I've seen some activity in this area of late, but the code still fails to link. Any clues anyone?

Quoted 16 lines

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
...
LINK arm-softmmu/qemu-system-arm
ivshmem.o: In function `ivshmem_mmio_map':
ivshmem.c:(.text+0x80f): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.o: In function ivshmem_read':
ivshmem.c:(.text+0x9fc): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.c:(.text+0xa6c): undefined reference to kvm_set_ioeventfd_mmio_long'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1
make: *** [subdir-arm-softmmu] Error 2

-Nigel

Signature · 3 lines
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter.
NJH Music, ICQ#20252325, twitter: @nigelhorne
[email protected] http://www.bandsman.co.uk
#2 lore raw

Am 14.08.2010 23:35, schrieb Nigel Horne:

Quoted 19 lines

I've seen some activity in this area of late, but the code still fails to link. Any clues anyone?

Quoted 16 lines

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
...
LINK arm-softmmu/qemu-system-arm
ivshmem.o: In function `ivshmem_mmio_map':
ivshmem.c:(.text+0x80f): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.o: In function ivshmem_read':
ivshmem.c:(.text+0x9fc): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.c:(.text+0xa6c): undefined reference to kvm_set_ioeventfd_mmio_long'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1
make: *** [subdir-arm-softmmu] Error 2

-Nigel

Try changing the entry for ivshmem.o (which is not needed for targets without kvm) in Makefile.target like this:

obj-$(CONFIG_KVM) += ivshmem.o

Regards
Stefan

#3 lore raw

Yup, it was my patch. Sorry about that. Patches are in the list, just need to be merged.

Cam

Quoted 36 lines · Stefan Weil

Am 14.08.2010 23:35, schrieb Nigel Horne:

Quoted 25 lines

I've seen some activity in this area of late, but the code still fails to link.  Any clues anyone?

Quoted 20 lines

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm make
...
LINK  arm-softmmu/qemu-system-arm
ivshmem.o: In function `ivshmem_mmio_map':
ivshmem.c:(.text+0x80f): undefined reference to `kvm_set_ioeventfd_mmio_long'
ivshmem.o: In function `ivshmem_read':
ivshmem.c:(.text+0x9fc): undefined reference to kvm_set_ioeventfd_mmio_long' ivshmem.c:(.text+0xa6c): undefined reference to kvm_set_ioeventfd_mmio_long'
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1
make: *** [subdir-arm-softmmu] Error 2

-Nigel

Try changing the entry for ivshmem.o (which is not needed for targets without kvm) in Makefile.target like this:

obj-$(CONFIG_KVM) += ivshmem.o

Regards
Stefan

#4 lore raw
Quoted 2 lines · Cam Macdonell

Yup, it was my patch. Sorry about that. Patches are in the list, just need to be merged.

It works now - thanks!

Quoted 1 line

Cam

-Nigel