From: Michael Tokarev Subject: compiling git -85rc Date: Sat, 18 Apr 2009 14:09:39 +0400 Message-ID: <49E9A6E3.6000100@msgid.tls.msk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: KVM list Return-path: Received: from isrv.corpit.ru ([81.13.33.159]:49232 "EHLO isrv.corpit.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbZDRKJl (ORCPT ); Sat, 18 Apr 2009 06:09:41 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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