kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* compiling git -85rc
@ 2009-04-18 10:09 Michael Tokarev
  2009-04-19 11:49 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2009-04-18 10:09 UTC (permalink / raw)
  To: KVM list

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

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

* Re: compiling git -85rc
  2009-04-18 10:09 compiling git -85rc Michael Tokarev
@ 2009-04-19 11:49 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-04-19 11:49 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: KVM list

Michael Tokarev wrote:
> 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.
>

That's a bug, I'll fix it up.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


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

end of thread, other threads:[~2009-04-19 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18 10:09 compiling git -85rc Michael Tokarev
2009-04-19 11:49 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).