grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix build breakage by ieee1275 ofconsole


From: Joey Korkames
Subject: [PATCH] fix build breakage by ieee1275 ofconsole
Date: Tue, 23 Feb 2010 17:52:12 -0700

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

Attachment: ofconsole_fix.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]