All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Xu, Jiajun" <jiajun.xu@intel.com>
To: "'avi@redhat.com'" <avi@redhat.com>
Cc: 'kvm-devel' <kvm@vger.kernel.org>
Subject: libkvm not compile with latest qemu-kvm
Date: Thu, 21 May 2009 16:42:04 +0800	[thread overview]
Message-ID: <0463F45F3606F4428ED35AC8C709F92E0896145719@pdsmsx502.ccr.corp.intel.com> (raw)

Hi Avi,
I found libkvm.a not compiled with latest qemu-kvm with following error message:
####
gcc  -I. -I.. -I/home/jiajun/kvm/qemu-kvm/target-i386 -I/home/jiajun/kvm/qemu-kvm -MMD -MT qemu-kvm-helper.o -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__user= -I/home/jiajun/kvm/qemu-kvm/tcg -I/home/jiajun/kvm/qemu-kvm/tcg/x86_64 -I/home/jiajun/kvm/qemu-kvm/fpu   -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/home/jiajun/kvm/qemu-kvm/slirp -O2 -g -fno-strict-aliasing -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -I/home/jiajun/kvm/qemu-kvm/kvm/libkvm  -m64 -I/home/jiajun/kvm/qemu-kvm/kvm/include -I/home/jiajun/kvm/qemu-kvm/kvm/include/x86 -c -o qemu-kvm-helper.o /home/jiajun/kvm/qemu-kvm/qemu-kvm-helper.c
  CC    x86_64-softmmu/kvm-tpr-opt.o
  CC    x86_64-softmmu/disas.o
  CC    x86_64-softmmu/i386-dis.o
  CC    x86_64-softmmu/vl.o
  CC    x86_64-softmmu/gdbstub-xml.o
/home/jiajun/kvm/qemu-kvm/vl.c:4885: warning: âalloc_mem_areaâ defined but not used
  AR    x86_64-softmmu/libqemu.a
  LINK  x86_64-softmmu/qemu-system-x86_64
gcc: libkvm.a: No such file or directory
make[1]: *** [qemu-system-x86_64] Error 1
make: *** [subdir-x86_64-softmmu] Error 2
####

After I modified the Makefile.target, it can pass:

diff --git a/Makefile.target b/Makefile.target
index 575466c..78bf5d7 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -796,7 +796,7 @@ vl.o: qemu-options.h

 $(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS)
 $(QEMU_PROG): ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
-$(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a $(HWLIB)
+$(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a $(HWLIB) $(DEPLIBS)
        $(call LINK,$(OBJS))

 $(QEMU_PROG): ARLIBS += $(DEPLIBS)


Best Regards
Jiajun

             reply	other threads:[~2009-05-21  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-21  8:42 Xu, Jiajun [this message]
2009-05-21 11:56 ` libkvm not compile with latest qemu-kvm 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=0463F45F3606F4428ED35AC8C709F92E0896145719@pdsmsx502.ccr.corp.intel.com \
    --to=jiajun.xu@intel.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.