public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Compilation problems with git tree
@ 2008-04-07 23:03 Zdenek Kabelac
  2008-04-08 13:24 ` Marcelo Tosatti
  2008-04-08 21:58 ` Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Zdenek Kabelac @ 2008-04-07 23:03 UTC (permalink / raw)
  To: kvm-devel

Hi

I've tried to compile git tree for kvm-userspace.git
I've used these configure options:

--disable-gcc-check --with-patched-kernel

using x86-64 platform

I've got this error:

ar rcs libqemu.a exec.o kqemu.o cpu-exec.o host-utils.o
translate-all.o translate.o op.o tcg/tcg.o tcg/tcg-dyngen.o
tcg/tcg-runtime.o qemu-kvm.o fpu/softfloat-native.o helper.o helper2.o
qemu-kvm-x86.o kvm-tpr-opt.o qemu-kvm-helper.o disas.o i386-dis.o
gcc -L /home/kabi/export/kvm-userspace/qemu/../libkvm  -g  -m64 -o
qemu-system-x86_64 vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o
migration.o block-raw-posix.o lsi53c895a.o esp.o usb-ohci.o
eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o hypercall.o
virtio.o virtio-net.o virtio-blk.o device-hotplug.o ide.o pckbd.o
ps2.o vga.o sb16.o es1370.o dma.o fdc.o mc146818rtc.o serial.o i8259.o
i8254.o pcspk.o pc.o cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
usb-uhci.o vmmouse.o vmport.o vmware_vga.o extboot.o gdbstub.o
../libqemu_common.a libqemu.a  -lm -lz -lkvm -lgnutls   -lrt -lpthread
-lutil -lSDL -lpthread  -lcurses
pc.o: In function `pc_init1':
/home/kabi/export/kvm-userspace/qemu/hw/pc.c:987: undefined reference
to `kvm_pit_init'
collect2: ld returned 1 exit status


Obviously kvm_pit_init seems to be compiled in only for i386 - I've
disables this code by #if 0

But then during code run I've got this coredump:
'ti' seems to be containing some garbage - am I using the latest code ??
(as this is the last commit I could see:

commit 5208ce19dca268f84a2b9441c2fbb6129161e44c
Author: Marcelo Tosatti <mtosatti@redhat.com>
Date:   Thu Apr 3 20:24:37 2008 -0300)


Core was generated by `qemu-kvm -s -m 320 -smp 2 -net nic,model=pcnet
-net user -redir'.
Program terminated with signal 11, Segmentation fault.

#0  0x00000000004849a7 in tcp_reass (tp=0x7fabec000d60, ti=0xec000d60,
m=0x0) at slirp/tcp_input.c:208
208		if (ti == (struct tcpiphdr *)tp || ti->ti_seq != tp->rcv_nxt)
Missing separate debuginfos, use: debuginfo-install SDL.x86_64
glibc.x86_64 gnutls.x86_64 libX11.x86_64 libXau.x86_64
libXcursor.x86_64 libXdmcp.x86_64 libXext.x86_64 libXfixes.x86_64
libXrandr.x86_64 libXrender.x86_64 libgcrypt.x86_64
libgpg-error.x86_64 libtasn1.x86_64 libxcb.x86_64 ncurses.x86_64
zlib.x86_64
(gdb) bt
#0  0x00000000004849a7 in tcp_reass (tp=0x7fabec000d60, ti=0xec000d60,
m=0x0) at slirp/tcp_input.c:208
#1  0x0000000000485c3b in tcp_input (m=0x2ba7260, iphlen=<value
optimized out>, inso=<value optimized out>)
    at slirp/tcp_input.c:1052
#2  0x0000000000406aa1 in qemu_send_packet (vc1=0x2b9b0b0,
buf=0x2c9dd58 "RT", size=54)
    at /home/kabi/export/kvm-userspace/qemu/vl.c:3758
#3  0x0000000000426211 in pcnet_transmit (s=0x2c9d990) at
/home/kabi/export/kvm-userspace/qemu/hw/pcnet.c:1272
#4  0x0000000000426898 in pcnet_poll_timer (opaque=<value optimized
out>) at /home/kabi/export/kvm-userspace/qemu/hw/pcnet.c:1335
#5  0x0000000000426f30 in pcnet_ioport_writew (opaque=0x7fabec000d60,
addr=0, val=0)
    at /home/kabi/export/kvm-userspace/qemu/hw/pcnet.c:1617
#6  0x00000000005050f1 in kvm_outw (opaque=<value optimized out>,
addr=0, data=0)
    at /home/kabi/export/kvm-userspace/qemu/qemu-kvm.c:515
#7  0x00000000005252b4 in handle_io (kvm=0x2ac4000,
run=0x7fac0bc73000, vcpu=1) at libkvm.c:721
#8  0x0000000000525972 in kvm_run (kvm=0x2ac4000, vcpu=1) at libkvm.c:889
#9  0x0000000000505636 in kvm_cpu_exec (env=<value optimized out>) at
/home/kabi/export/kvm-userspace/qemu/qemu-kvm.c:146
#10 0x00000000005058e0 in ap_main_loop (_env=<value optimized out>) at
/home/kabi/export/kvm-userspace/qemu/qemu-kvm.c:330
#11 0x000000371600740a in start_thread () from /lib64/libpthread.so.0
#12 0x00000037154e678d in clone () from /lib64/libc.so.6


Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compilation problems with git tree
  2008-04-07 23:03 Compilation problems with git tree Zdenek Kabelac
@ 2008-04-08 13:24 ` Marcelo Tosatti
  2008-04-08 15:18   ` Zdenek Kabelac
  2008-04-08 21:58 ` Avi Kivity
  1 sibling, 1 reply; 4+ messages in thread
From: Marcelo Tosatti @ 2008-04-08 13:24 UTC (permalink / raw)
  To: Zdenek Kabelac; +Cc: kvm-devel

On Tue, Apr 08, 2008 at 01:03:58AM +0200, Zdenek Kabelac wrote:
> Hi
> 
> I've tried to compile git tree for kvm-userspace.git
> I've used these configure options:
> 
> --disable-gcc-check --with-patched-kernel
> 
> using x86-64 platform
> 
> I've got this error:
> 
> ar rcs libqemu.a exec.o kqemu.o cpu-exec.o host-utils.o
> translate-all.o translate.o op.o tcg/tcg.o tcg/tcg-dyngen.o
> tcg/tcg-runtime.o qemu-kvm.o fpu/softfloat-native.o helper.o helper2.o
> qemu-kvm-x86.o kvm-tpr-opt.o qemu-kvm-helper.o disas.o i386-dis.o
> gcc -L /home/kabi/export/kvm-userspace/qemu/../libkvm  -g  -m64 -o
> qemu-system-x86_64 vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o
> migration.o block-raw-posix.o lsi53c895a.o esp.o usb-ohci.o
> eeprom93xx.o eepro100.o ne2000.o pcnet.o rtl8139.o e1000.o hypercall.o
> virtio.o virtio-net.o virtio-blk.o device-hotplug.o ide.o pckbd.o
> ps2.o vga.o sb16.o es1370.o dma.o fdc.o mc146818rtc.o serial.o i8259.o
> i8254.o pcspk.o pc.o cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
> usb-uhci.o vmmouse.o vmport.o vmware_vga.o extboot.o gdbstub.o
> ../libqemu_common.a libqemu.a  -lm -lz -lkvm -lgnutls   -lrt -lpthread
> -lutil -lSDL -lpthread  -lcurses
> pc.o: In function `pc_init1':
> /home/kabi/export/kvm-userspace/qemu/hw/pc.c:987: undefined reference
> to `kvm_pit_init'
> collect2: ld returned 1 exit status
> 
> 
> Obviously kvm_pit_init seems to be compiled in only for i386 - I've
> disables this code by #if 0

Update your host kernel. It seems backward compatibility is broken.

> 
> But then during code run I've got this coredump:
> 'ti' seems to be containing some garbage - am I using the latest code ??
> (as this is the last commit I could see:
> 
> commit 5208ce19dca268f84a2b9441c2fbb6129161e44c
> Author: Marcelo Tosatti <mtosatti@redhat.com>
> Date:   Thu Apr 3 20:24:37 2008 -0300)
> 
> 
> Core was generated by `qemu-kvm -s -m 320 -smp 2 -net nic,model=pcnet
> -net user -redir'.
> Program terminated with signal 11, Segmentation fault.
> 
> #0  0x00000000004849a7 in tcp_reass (tp=0x7fabec000d60, ti=0xec000d60,
> m=0x0) at slirp/tcp_input.c:208
> 208		if (ti == (struct tcpiphdr *)tp || ti->ti_seq != tp->rcv_nxt)
> Missing separate debuginfos, use: debuginfo-install SDL.x86_64
> glibc.x86_64 gnutls.x86_64 libX11.x86_64 libXau.x86_64
> libXcursor.x86_64 libXdmcp.x86_64 libXext.x86_64 libXfixes.x86_64
> libXrandr.x86_64 libXrender.x86_64 libgcrypt.x86_64
> libgpg-error.x86_64 libtasn1.x86_64 libxcb.x86_64 ncurses.x86_64
> zlib.x86_64
> (gdb) bt
> #0  0x00000000004849a7 in tcp_reass (tp=0x7fabec000d60, ti=0xec000d60,
> m=0x0) at slirp/tcp_input.c:208
> #1  0x0000000000485c3b in tcp_input (m=0x2ba7260, iphlen=<value
> optimized out>, inso=<value optimized out>)
>     at slirp/tcp_input.c:1052
> #2  0x0000000000406aa1 in qemu_send_packet (vc1=0x2b9b0b0,
> buf=0x2c9dd58 "RT", size=54)
>     at /home/kabi/export/kvm-userspace/qemu/vl.c:3758
> #3  0x0000000000426211 in pcnet_transmit (s=0x2c9d990) at
> /home/kabi/export/kvm-userspace/qemu/hw/pcnet.c:1272
> #4  0x0000000000426898 in pcnet_poll_timer (opaque=<value optimized
> out>) at /home/kabi/export/kvm-userspace/qemu/hw/pcnet.c:1335
> #5  0x0000000000426f30 in pcnet_ioport_writew (opaque=0x7fabec000d60,
> addr=0, val=0)
>     at /home/kabi/export/kvm-userspace/qemu/hw/pcnet.c:1617
> #6  0x00000000005050f1 in kvm_outw (opaque=<value optimized out>,
> addr=0, data=0)
>     at /home/kabi/export/kvm-userspace/qemu/qemu-kvm.c:515
> #7  0x00000000005252b4 in handle_io (kvm=0x2ac4000,
> run=0x7fac0bc73000, vcpu=1) at libkvm.c:721
> #8  0x0000000000525972 in kvm_run (kvm=0x2ac4000, vcpu=1) at libkvm.c:889
> #9  0x0000000000505636 in kvm_cpu_exec (env=<value optimized out>) at
> /home/kabi/export/kvm-userspace/qemu/qemu-kvm.c:146
> #10 0x00000000005058e0 in ap_main_loop (_env=<value optimized out>) at
> /home/kabi/export/kvm-userspace/qemu/qemu-kvm.c:330
> #11 0x000000371600740a in start_thread () from /lib64/libpthread.so.0
> #12 0x00000037154e678d in clone () from /lib64/libc.so.6
>

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compilation problems with git tree
  2008-04-08 13:24 ` Marcelo Tosatti
@ 2008-04-08 15:18   ` Zdenek Kabelac
  0 siblings, 0 replies; 4+ messages in thread
From: Zdenek Kabelac @ 2008-04-08 15:18 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: kvm-devel

2008/4/8, Marcelo Tosatti <mtosatti@redhat.com>:
> On Tue, Apr 08, 2008 at 01:03:58AM +0200, Zdenek Kabelac wrote:
>  > Hi
>  >
>  > I've tried to compile git tree for kvm-userspace.git
>  > I've used these configure options:
>  >
>  > --disable-gcc-check --with-patched-kernel
>  >
>  > using x86-64 platform
>  >
>  > I've got this error:
>  >
>  > pc.o: In function `pc_init1':
>  > /home/kabi/export/kvm-userspace/qemu/hw/pc.c:987: undefined reference
>  > to `kvm_pit_init'
>  > collect2: ld returned 1 exit status
>  >
>  >
>  > Obviously kvm_pit_init seems to be compiled in only for i386 - I've
>  > disables this code by #if 0
>

>
> Update your host kernel. It seems backward compatibility is broken.
>


>  > Core was generated by `qemu-kvm -s -m 320 -smp 2 -net nic,model=pcnet
>  > -net user -redir'.
>  > Program terminated with signal 11, Segmentation fault.
>  >
>  > #0  0x00000000004849a7 in tcp_reass (tp=0x7fabec000d60, ti=0xec000d60,
>  > m=0x0) at slirp/tcp_input.c:208


Hmm - to get fixed first compilation problem - or the second coredump crash ?

Because I need to use some combination of other kernel trees for now
I'll stay with linux git tree 2.6.25-rc8 - hopefully patches from  kvm
git tree will get there soon.

I think I'll survive the occasional crash (2x/day) caused by this
backward incompatibility.

As compared with kvm-64  I no longer experience sudden  qemu-kvm stops,
which I had to resolve by attaching strace to qemu procees - that
magically 'unfreezed' qemu
and it was happening quite often.

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compilation problems with git tree
  2008-04-07 23:03 Compilation problems with git tree Zdenek Kabelac
  2008-04-08 13:24 ` Marcelo Tosatti
@ 2008-04-08 21:58 ` Avi Kivity
  1 sibling, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2008-04-08 21:58 UTC (permalink / raw)
  To: Zdenek Kabelac; +Cc: kvm-devel

Zdenek Kabelac wrote:
> Core was generated by `qemu-kvm -s -m 320 -smp 2 -net nic,model=pcnet
> -net user -redir'.
> Program terminated with signal 11, Segmentation fault.
>
> #0  0x00000000004849a7 in tcp_reass (tp=0x7fabec000d60, ti=0xec000d60,
> m=0x0) at slirp/tcp_input.c:208
>   

User mode networking has known issues on 64-bit hosts.  Try using 
bridged networking.

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-08 21:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-07 23:03 Compilation problems with git tree Zdenek Kabelac
2008-04-08 13:24 ` Marcelo Tosatti
2008-04-08 15:18   ` Zdenek Kabelac
2008-04-08 21:58 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox