From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm-87 fails to compile under uClibc Date: Wed, 08 Jul 2009 20:07:50 +0300 Message-ID: <4A54D266.9020001@redhat.com> References: <1246934566.27337.65.camel@localhost.localdomain> <4A53117E.8050305@redhat.com> <1246966290.32432.24.camel@localhost.localdomain> <4A5334FC.50100@redhat.com> <1247072361.13629.15.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm To: Cristi Magherusan Return-path: Received: from mx2.redhat.com ([66.187.237.31]:36255 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754352AbZGHRF3 (ORCPT ); Wed, 8 Jul 2009 13:05:29 -0400 In-Reply-To: <1247072361.13629.15.camel@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: On 07/08/2009 07:59 PM, Cristi Magherusan wrote: >> You can reduce qemu size by not compiling tcg; that'll save you a lot >> more than the kernel. >> > How do I disable it? is it the --disable-cpu-emulation configure flag? > Unfortunately that one breaks compilation, and I reproduced this both in > my system and inside the buildroot toolchain that I'm using. > It doesn't work now but I certainly want it to. If you can come up with a simple patch I'll apply it. $ size x86_64-softmmu/tcg/*.o x86_64-softmmu/fpu/*.o x86_64-softmmu/translate*.o x86_64-softmmu/helper.o text data bss dec hex filename 79296 2880 24 82200 14118 x86_64-softmmu/tcg/tcg.o 316 0 0 316 13c x86_64-softmmu/tcg/tcg-runtime.o 3575 0 0 3575 df7 x86_64-softmmu/fpu/softfloat-native.o 723 0 8 731 2db x86_64-softmmu/translate-all.o 367810 0 88 367898 59d1a x86_64-softmmu/translate.o 15553 1232 16 16801 41a1 x86_64-softmmu/helper.o There's almost half a meg here. -- error compiling committee.c: too many arguments to function