From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M7XiX-0003Hg-7s for qemu-devel@nongnu.org; Fri, 22 May 2009 12:35:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7XiS-00038Z-H8 for qemu-devel@nongnu.org; Fri, 22 May 2009 12:35:32 -0400 Received: from [199.232.76.173] (port=54671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7XiS-00038O-BB for qemu-devel@nongnu.org; Fri, 22 May 2009 12:35:28 -0400 Received: from yx-out-1718.google.com ([74.125.44.157]:12842) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M7XiR-0006JV-Vo for qemu-devel@nongnu.org; Fri, 22 May 2009 12:35:28 -0400 Received: by yx-out-1718.google.com with SMTP id 6so988252yxn.82 for ; Fri, 22 May 2009 09:35:27 -0700 (PDT) Message-ID: <4A16D44C.7000805@codemonkey.ws> Date: Fri, 22 May 2009 11:35:24 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Windows runtime error References: <4A1609CD.4000904@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Consul , qemu-devel@nongnu.org Blue Swirl wrote: > On 5/22/09, Anthony Liguori wrote: > >> Consul wrote: >> >> >>> This commit breaks Windows giving runtime error "Unknown device >>> >> 'virtio-balloon-pci'" >> >>> ec6bd8dea77478f32981a5df49f66ca2430ad19d >>> >>> Author: Blue Swirl 2009-05-21 11:22:59 >>> Committer: Blue Swirl 2009-05-21 11:22:59 >>> Parent: 2567f5796c38238d6f2055f074e347a0338140ce (Compile >>> >> most Xen files only once) >> >>> Fix arm-softmmu breakage >>> >>> Don't use whole-archive for hwlib or libqemu objects >>> >>> Signed-off-by: Blue Swirl >>> >>> >> hwlib definitely needs whole-archive. >> > > No, it works fine without it. > virtio-pci has a constructor and all static functions. It'll be removed from the archive without whole-archive. This is failure that we're seeing. In general, hwlib will need whole-archive because hwlib will contain things with constructors. >> Why did this break arm-softmmu? It builds fine for me. >> > > Because fdc.o was forced to be linked in with whole-archive but the > stuff that it depends on may be undefined on ARM. With whole-archive > removed from hwlib, fdc.o is not referenced in anywhere in arm-softmmu > and it will not be pulled in. > fdc.o shouldn't be in hwlib if it depends on stuff not defined in a particular architecture. Regards, Anthony Liguori