All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: KVM list <kvm@vger.kernel.org>
Subject: compiling git -85rc
Date: Sat, 18 Apr 2009 14:09:39 +0400	[thread overview]
Message-ID: <49E9A6E3.6000100@msgid.tls.msk.ru> (raw)

For quite some time the compilation of userspace is
broken on my environment.  I'm not sure if it's new
or it was this way before -- at least kvm-84 builds
fine.

The problem happens when the kernel running is 64bits
and the userspace is 32bits.  In the source tree,
qemu/ directory correctly configures itself to use
-m32 compiler flag (the default anyway), but other
directories -- libkvm/ and user/ uses x86_64 for
$(ARCH) and hence -m64 and /lib64.  And sure thing,
the link stage does not work because -lkvm is not
compatible (32 vs 64 bits).

I had to change
  include config-$(ARCH).mak
into
  include config-i386.mak
in libkvm/Makefile and in user/Makefile to build it.

Maybe, just may be, it's sufficient to do a
  make ARCH=i386
step instead - I'll try that too.

Comments?

Thanks.

/mjt

             reply	other threads:[~2009-04-18 10:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-18 10:09 Michael Tokarev [this message]
2009-04-19 11:49 ` compiling git -85rc 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=49E9A6E3.6000100@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --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.