Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLmRP-00050r-OD for qemu-devel@nongnu.org; Fri, 18 Dec 2009 18:40:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLmRJ-0004oD-BU for qemu-devel@nongnu.org; Fri, 18 Dec 2009 18:40:59 -0500 Received: from [199.232.76.173] (port=39752 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLmRJ-0004o0-6K for qemu-devel@nongnu.org; Fri, 18 Dec 2009 18:40:53 -0500 Received: from qw-out-1920.google.com ([74.125.92.145]:9778) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLmRJ-0007NA-G0 for qemu-devel@nongnu.org; Fri, 18 Dec 2009 18:40:53 -0500 Received: by qw-out-1920.google.com with SMTP id 5so603793qwc.4 for ; Fri, 18 Dec 2009 15:40:51 -0800 (PST) Date: Fri, 18 Dec 2009 18:40:48 -0500 From: Kevin O'Connor Message-ID: <20091218234048.GA875@morn.localdomain> References: <1261134964-12427-1-git-send-email-kraxel@redhat.com> <4B2BA2B4.3030508@codemonkey.ws> <4B2BA528.9080104@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B2BA528.9080104@redhat.com> Subject: [Qemu-devel] Re: [SeaBIOS] [PATCH 0/4] qemu option loading List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: seabios@seabios.org, qemu-devel@nongnu.org On Fri, Dec 18, 2009 at 04:52:08PM +0100, Gerd Hoffmann wrote: > On 12/18/09 16:41, Anthony Liguori wrote: >> I needed the following patch for this series to build: >> >> --- a/src/optionroms.c >> +++ b/src/optionroms.c >> @@ -13,6 +13,7 @@ >> +#include "paravirt.h" // qemu_cfg_* > >> --- a/src/paravirt.h >> +++ b/src/paravirt.h >> +u32 qemu_cfg_read_file(QemuCfgFile *entry, void *dst, u32 maxlen); > > Patch is very reasonable. > > /me wonders how it did build for me without warning about the missing > prototype ... SeaBIOS tries to use -fwhole-program to optimize the build. Unfortunately, that option appears to be a bit "bleeding edge", and some gcc versions have a hard time with it. So, SeaBIOS supports two ways to build with -fwhole-program - one with "-combine", and one with a textual inclusion of all files. Unfortunately, some errors can be masked in one type of build that are exposed in the other type. The next major version of gcc should have support for "-flto". Once distros start shipping it, I think seabios should just support the new lto mechanism and the standard non-whole-program build. That should simplify these build issues. -Kevin