Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nk5UC-0007mC-D2 for mharc-grub-devel@gnu.org; Tue, 23 Feb 2010 19:52:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nk5UA-0007lI-LZ for grub-devel@gnu.org; Tue, 23 Feb 2010 19:52:18 -0500 Received: from [140.186.70.92] (port=37759 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk5U9-0007ko-B5 for grub-devel@gnu.org; Tue, 23 Feb 2010 19:52:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nk5U8-00087E-6g for grub-devel@gnu.org; Tue, 23 Feb 2010 19:52:17 -0500 Received: from fed1rmmtao104.cox.net ([68.230.241.42]:44666) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk5U7-000876-Qk for grub-devel@gnu.org; Tue, 23 Feb 2010 19:52:16 -0500 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao104.cox.net (InterMail vM.8.00.01.00 201-2244-105-20090324) with ESMTP id <20100224005212.YLPP16123.fed1rmmtao104.cox.net@fed1rmimpo02.cox.net>; Tue, 23 Feb 2010 19:52:12 -0500 Received: from mail.phx1.kidfixit.com ([68.110.127.170]) by fed1rmimpo02.cox.net with bizsmtp id lcsD1d0013gixDg04csDGx; Tue, 23 Feb 2010 19:52:13 -0500 X-VR-Score: -30.00 X-Authority-Analysis: v=1.1 cv=zS9SgV63hfBKgCfMNmcWTXDxxMKGbBeTgNVRdCpsi3s= c=1 sm=1 a=oMgX3zfXcHUA:10 a=wuBMPUXIKj/V06tqseGGQw==:17 a=7dB1dAP78M8sy22avqMA:9 a=k6QpgKt3wfpwDaPuM20A:7 a=aIB2cS-GZCJNbdtkqIJgLLBsxZ0A:4 a=PW2c1j6TnfcWLU7iuy4A:9 a=FFDPvXgBIzFegTL27W89cZE7tVgA:4 a=wuBMPUXIKj/V06tqseGGQw==:117 X-CM-Score: 0.00 Received: from toolshiner.phx1.kidfixit.com (unknown [10.1.0.2]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.phx1.kidfixit.com (Postfix) with ESMTP id 993DD808FFE4; Wed, 24 Feb 2010 00:52:12 +0000 (UTC) Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Joey Korkames To: grub-devel@gnu.org Date: Tue, 23 Feb 2010 17:52:12 -0700 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_toolshiner.phx1.kidfixit.com-1266972732-0000" X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) Cc: mrabran@br.ibm.com Subject: [PATCH] fix build breakage by ieee1275 ofconsole X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 00:52:19 -0000 This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_toolshiner.phx1.kidfixit.com-1266972732-0000 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit A recent trunk commit (r2213) prevents me from building grub2 (Debian Lenny amd64): here's my fix. I have no idea what the end result is (and have no PPC equipment to test with), so maybe someone who understands this code can clarify things. The error that was being generated: # make ... gcc -Ikern/generic -I/build/grub2-1.98~20100223/kern/generic -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.3.2/include -I/build/grub2-1.98~20100223/include -I. -I./include -Wall -W -Os -DGRUB_MACHINE_IEEE1275=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -ffreestanding -mrtd -mregparm=3 -I/build/grub2-1.98~20100223/debian/grub-extras/zfs/include -MD -c -o kernel_img-kern_generic_millisleep.o /build/grub2-1.98~20100223/kern/generic/millisleep.c gcc -Ikern/ieee1275 -I/build/grub2-1.98~20100223/kern/ieee1275 -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.3.2/include -I/build/grub2-1.98~20100223/include -I. -I./include -Wall -W -Os -DGRUB_MACHINE_IEEE1275=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -ffreestanding -mrtd -mregparm=3 -I/build/grub2-1.98~20100223/debian/grub-extras/zfs/include -MD -c -o kernel_img-kern_ieee1275_ieee1275.o /build/grub2-1.98~20100223/kern/ieee1275/ieee1275.c gcc -Iterm/ieee1275 -I/build/grub2-1.98~20100223/term/ieee1275 -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.3.2/include -I/build/grub2-1.98~20100223/include -I. -I./include -Wall -W -Os -DGRUB_MACHINE_IEEE1275=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -ffreestanding -mrtd -mregparm=3 -I/build/grub2-1.98~20100223/debian/grub-extras/zfs/include -MD -c -o kernel_img-term_ieee1275_ofconsole.o /build/grub2-1.98~20100223/term/ieee1275/ofconsole.c cc1: warnings being treated as errors /build/grub2-1.98~20100223/term/ieee1275/ofconsole.c: In function 'grub_ofconsole_readkey': /build/grub2-1.98~20100223/term/ieee1275/ofconsole.c:260: error: declaration of 'start' shadows a previous local /build/grub2-1.98~20100223/term/ieee1275/ofconsole.c:214: error: shadowed declaration is here make[1]: *** [kernel_img-term_ieee1275_ofconsole.o] Error 1 make[1]: Leaving directory `/build/grub2-1.98~20100223/build/grub-ieee1275' make: *** [build/grub-ieee1275] Error 2 -joey --=_toolshiner.phx1.kidfixit.com-1266972732-0000 Content-Disposition: attachment; FILENAME="ofconsole_fix.diff" Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit === modified file 'term/ieee1275/ofconsole.c' --- term/ieee1275/ofconsole.c 2010-02-20 10:23:13 +0000 +++ term/ieee1275/ofconsole.c 2010-02-24 00:23:34 +0000 @@ -257,7 +257,6 @@ break; case '3': { - grub_uint64_t start; grub_ieee1275_read (stdin_ihandle, &c, 1, &actual); /* On 9600 we have to wait up to 12 milliseconds. */ start = grub_get_time_ms (); --=_toolshiner.phx1.kidfixit.com-1266972732-0000--