From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DMqLs-0002bc-JF for mharc-grub-devel@gnu.org; Sat, 16 Apr 2005 12:41:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMqIH-00010t-O4 for grub-devel@gnu.org; Sat, 16 Apr 2005 12:37:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMqI5-0000vB-VX for grub-devel@gnu.org; Sat, 16 Apr 2005 12:37:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMqI5-0000nv-Or for grub-devel@gnu.org; Sat, 16 Apr 2005 12:37:05 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMq8K-0002eL-85 for grub-devel@gnu.org; Sat, 16 Apr 2005 12:27:00 -0400 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 9A82DA24D; Sat, 16 Apr 2005 18:24:48 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 30612-01; Sat, 16 Apr 2005 18:24:46 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 38D79A241; Sat, 16 Apr 2005 18:24:46 +0200 (CEST) Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id BE711C046; Sat, 16 Apr 2005 18:24:45 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: Jeff Bailey References: <1113657277.5563.6.camel@localhost> From: Marco Gerards Date: Sat, 16 Apr 2005 18:24:45 +0200 In-Reply-To: <1113657277.5563.6.camel@localhost> (Jeff Bailey's message of "Sat, 16 Apr 2005 09:14:37 -0400") Message-ID: <87hdi6d702.fsf@student.han.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Cc: grub-devel@gnu.org Subject: Re: CC not honoured in build system 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: Sat, 16 Apr 2005 16:40:59 -0000 Jeff Bailey writes: Hi Jeff, The right mailinglist for discussing GRUB 2 is grub-devel. Please send a CC to Jeff because he might not be subscribed. > Building grub2 from CVS around April 1st doesn't respect either > command-line CC settings, or the detected CC from autoconf. The first > part of the build goes fine: [...] > gcc -Icommands -I./commands -I. -Iinclude -I./include -Wall -W > -DGRUB_DATADIR=3D\"/usr/share/grub/powerpc-ieee1275\" -g -O2 -DGRUB_UTIL= =3D1 > -c -o grub_emu-commands_ls.o commands/ls.c > commands/ls.c: In function =A1grub_ls_list_files=A2: > commands/ls.c:107: erreur: invalid storage class for function > =A1print_files=A2 > commands/ls.c:115: erreur: invalid storage class for function > =A1print_files_long=A2commands/ls.c: In function =A1grub_cmd_ls=A2: > commands/ls.c:223: erreur: invalid storage class for function > =A1grub_ls_print_files=A2 > make[1]: *** [grub_emu-commands_ls.o] Erreur 1 > > (I'm doing this because grub fails to build with gcc-4. It appears to > be trying to use nested functions or something in some way that gcc-4 > doesn't like.) It is related to nested functions. For example there is this nested function: static int grub_ls_print_files (const char *filename, int dir) { ... } I think this should be: auto int grub_ls_print_files (const char *filename, int dir); int grub_ls_print_files (const char *filename, int dir) { } > From looking at the Makefile, it looks like it's using BUILD_CC instead > of CC (which is set correctly). I don't speak Ruby, so I can't go any > further than that. I have tested this and it seems to be fixed when using my patch: http://lists.gnu.org/archive/html/grub-devel/2005-04/msg00048.html When this patch is committed and the build errors are fixed, I will contact you about it. Thanks, Marco