From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: compiling git -85rc Date: Sun, 19 Apr 2009 14:49:50 +0300 Message-ID: <49EB0FDE.10509@redhat.com> References: <49E9A6E3.6000100@msgid.tls.msk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM list To: Michael Tokarev Return-path: Received: from mx2.redhat.com ([66.187.237.31]:57429 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756008AbZDSLuB (ORCPT ); Sun, 19 Apr 2009 07:50:01 -0400 In-Reply-To: <49E9A6E3.6000100@msgid.tls.msk.ru> Sender: kvm-owner@vger.kernel.org List-ID: 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.