From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1Cc3Uo-0002Tc-BO for mharc-grub-devel@gnu.org; Wed, 08 Dec 2004 10:12:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cc3Un-0002TQ-F2 for grub-devel@gnu.org; Wed, 08 Dec 2004 10:12:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cc3Um-0002Se-SE for grub-devel@gnu.org; Wed, 08 Dec 2004 10:12:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc3Um-0002Rf-K1 for grub-devel@gnu.org; Wed, 08 Dec 2004 10:12:48 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cc3KY-0001yt-1q for grub-devel@gnu.org; Wed, 08 Dec 2004 10:02:14 -0500 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id DE0B8A02B; Wed, 8 Dec 2004 15:58:48 +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 15060-08; Wed, 8 Dec 2004 15:58:46 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id F0767A023; Wed, 8 Dec 2004 15:58:45 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 9A6E6C05F; Wed, 8 Dec 2004 15:58:45 +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> From: Marco Gerards Date: Wed, 08 Dec 2004 14:57:43 +0000 In-Reply-To: <87brd4q5wq.fsf@night.trouble.net> (Johan Rydberg's message of "Wed, 08 Dec 2004 14:24:37 +0100") Message-ID: <878y887s7s.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 15:12:49 -0000 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... > 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? Instead of alloca we can also use something like: ... { int foo[size] ... } In most cases that will remove the dependency on alloca. IMHO it is better not to use alloca. > 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. That sounds sane to me. I assume this fixes Timothy's problem as well. > 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. > > My suggestion is to create a new class for programs that should be > host-specific, and let Utilities be compiled on the build machine. > See the patch. Ok, that sounds sane. But what if you really want to cross-compile a complete system (including libc, GRUB, etc)? Can you make one big patch with a changelog entry so it can be committed after Okuji agrees with the patch? Thanks, Marco