public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Zdenek Kabelac <zdenek.kabelac@gmail.com>
Cc: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: Re: Compilation problems with git tree
Date: Tue, 8 Apr 2008 10:24:38 -0300	[thread overview]
Message-ID: <20080408132438.GA7558@dmt> (raw)
In-Reply-To: <c4e36d110804071603j5190211cncb0ee3cbbb86663@mail.gmail.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:
> 
> 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

  reply	other threads:[~2008-04-08 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-07 23:03 Compilation problems with git tree Zdenek Kabelac
2008-04-08 13:24 ` Marcelo Tosatti [this message]
2008-04-08 15:18   ` Zdenek Kabelac
2008-04-08 21:58 ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080408132438.GA7558@dmt \
    --to=mtosatti@redhat.com \
    --cc=kvm-devel@lists.sourceforge.net \
    --cc=zdenek.kabelac@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox