From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CcDyd-0006Hm-TC for mharc-grub-devel@gnu.org; Wed, 08 Dec 2004 21:24:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcDyb-0006Dk-49 for grub-devel@gnu.org; Wed, 08 Dec 2004 21:24:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcDya-0006D8-38 for grub-devel@gnu.org; Wed, 08 Dec 2004 21:24:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcDyZ-0006Cy-V1 for grub-devel@gnu.org; Wed, 08 Dec 2004 21:24:15 -0500 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CcDof-0007Ay-Ts for grub-devel@gnu.org; Wed, 08 Dec 2004 21:14:02 -0500 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id E414CF8ACB28 for ; Thu, 9 Dec 2004 03:13:59 +0100 (CET) Received: from 127.0.0.1 ([127.0.0.1] helo=localhost) by ASSP-nospam ; 9 Dec 04 02:13:59 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: grub-devel@gnu.org Date: Thu, 9 Dec 2004 03:16:04 +0100 User-Agent: KMail/1.6.1 References: <87sm6iqs9s.fsf@night.trouble.net> <87d5xlhtcb.fsf@marco.marco-g.com> <87brd4q5wq.fsf@night.trouble.net> In-Reply-To: <87brd4q5wq.fsf@night.trouble.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Message-Id: <200412090316.04926.okuji@enbug.org> 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: Thu, 09 Dec 2004 02:24:17 -0000 On Wednesday 08 December 2004 14:24, Johan Rydberg wrote: > 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. Ok. > 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? Why do we use stdint.h? As far as I see, it is used only for powerpc-specific code. This should be removed. GRUB must use its own types defined in include/grub/types.h. alloca should not be used. It must be replaced with something else (e.g. grub_malloc). Note that alloca requires a C library in some architectures. > Another issue regarding BUILD_CC. The normal convention is that if > you want to build something that should run on the build machine, you > use something similar to BUILD_CC. That's why I think the following > patch is self-explaining. You are right. I didn't notice the bug, because I usually specify CC and BUILD_CC manually. > That brings us the next issue; BUILD_CC is used to build > _everything_, including the host-specific object files, and since > BUILD_CC is set to /usr/bin/gcc in my cross-compiler environment it > will try to compile PPC assembler sources with a i386 compiler. Not > good. Why? Host-specific objects are compiled by CC instead of BUILD_CC. Okuji