Bug#601974: regression: grub-probe can not find /dev/xvda1 (block device inside XEN)

Csillag Kristof csillag.kristof at gmail.com
Wed Nov 17 17:30:06 UTC 2010


2010-11-17 18:24 keltezéssel, Vladimir 'φ-coder/phcoder' Serbinenko írta:
>> Compiling the trunk version was not smooth: it failed on a warning
>> because of compiler directives. Needed to override this manually.
>>
>>   
>>     
> What's the exact warning? I'd like to fix it.
>   


When compiling grub-core/disk/mdraid1x_linux.c:

intranet:~/g/grub/grub-core# gcc -Werror -DHAVE_CONFIG_H -I. -I..  -Wall
-W -I../include -I../include  -DGRUB_MACHINE_PCBIOS=1
-DGRUB_MACHINE=I386_PC -nostdinc -isystem
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/include
-DGRUB_FILE=\"disk/mdraid1x_linux.c\" -I. -I. -I.. -I.. -I../include
-I../include     -Os -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
-DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1  -mrtd
-mregparm=3       -ffreestanding   -MT
disk/mdraid1x_module-mdraid1x_linux.o -MD -MP -MF
disk/.deps-core/mdraid1x_module-mdraid1x_linux.Tpo -c -o
disk/mdraid1x_module-mdraid1x_linux.o `test -f 'disk/mdraid1x_linux.c'
|| echo './'`disk/mdraid1x_linux.c
cc1: warnings being treated as errors
disk/mdraid1x_linux.c: In function 'grub_mdraid_detect':
disk/mdraid1x_linux.c:108: error: 'sector' may be used uninitialized in
this function



Best wishes:

   Kristof





More information about the Pkg-grub-devel mailing list