Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1Cc9d8-0001uj-IZ for mharc-grub-devel@gnu.org; Wed, 08 Dec 2004 16:45:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cc9d5-0001tg-6k for grub-devel@gnu.org; Wed, 08 Dec 2004 16:45:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cc9d2-0001sG-CY for grub-devel@gnu.org; Wed, 08 Dec 2004 16:45:44 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc9d2-0001ql-1F for grub-devel@gnu.org; Wed, 08 Dec 2004 16:45:44 -0500 Received: from [199.232.41.5] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Cc9SU-0008Pu-IX for grub-devel@gnu.org; Wed, 08 Dec 2004 16:34:50 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by mx20.gnu.org with esmtp (Exim 4.34) id 1Cc7Fn-00072O-G7 for grub-devel@gnu.org; Wed, 08 Dec 2004 14:13:35 -0500 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 641EA83A7; Wed, 8 Dec 2004 20:11:38 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 17706-06; Wed, 8 Dec 2004 20:11:36 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 436EC9FC5; Wed, 8 Dec 2004 20:11:36 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id DA4F0C060; Wed, 8 Dec 2004 20:11:35 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: Johan Rydberg References: <87sm6iqs9s.fsf@night.trouble.net> <87acsqp3fe.fsf@marco.marco-g.com> <87k6rtoyrj.fsf@night.trouble.net> <87hdmxhufk.fsf@marco.marco-g.com> <87fz2hotzi.fsf@night.trouble.net> <87d5xlhtcb.fsf@marco.marco-g.com> <87brd4q5wq.fsf@night.trouble.net> <878y887s7s.fsf@marco.marco-g.com> <873bygpzzi.fsf@night.trouble.net> From: Marco Gerards Date: Wed, 08 Dec 2004 19:10:33 +0000 In-Reply-To: <873bygpzzi.fsf@night.trouble.net> (Johan Rydberg's message of "Wed, 08 Dec 2004 16:32:33 +0100") Message-ID: <874qiw7gie.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Cc: The development of GRUB 2 Subject: Re: multiboot X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 21:45:47 -0000 Johan Rydberg writes: > Marco Gerards writes: > >> Johan Rydberg writes: >> >>> The initial problem was that AC_CHECK_SIZEOF doesn't work if you're >>> cross-compiling. I fixed this by using AC_COMPILE_CHECK_SIZEOF [1] >>> instead. >> >> This sounds right to me, but I do not see this in the patch... > > Of course not. I didn't include it :) I'm sure you can download the > m4 macro, install it in acinclude.m4 and change AC_CHECK_SIZEOF to > AC_COMPILE_CHECK_SIZEOF. If you're as lazy as I am, I can include it > in a later patch. As you know, I am lazy... ;) >>> But the major problem is that parts of GRUB2 requires a C library to >>> be installed, at least headers such as alloca.h and stdint.h. Is this >>> really a valid demand? >> >> Is this required for grubof? IIRC those headers are not a part of the >> C library, but a part of gcc or libgcc or so. Am I right about that? > > My GCC installation (3.2.2 configured for powerpc-elf) installed the > following headers: [...] > A little more research shows that both stdint.h and alloca.h is part > of glibc: [...] > So either we stop using then, or write our own versions. Ok, agreed. >> Instead of alloca we can also use something like: >> [...] >> In most cases that will remove the dependency on alloca. IMHO it is >> better not to use alloca. > > It is also possible to use __builtin_alloca if alloca.h is missing, > provided that there's a requirement for GCC. There is a gcc requirement already, that is not a problem. Thanks, Marco