Fix committed, thanks for reporting this. On 02.11.2013 22:14, Javier Vasquez wrote: > I'm getting the following error when compiling from latest git repo > (e7b66a28de17b085a9b71d6c500b0b139e94d818) on mipsel (loongson-2f): > > gcc -DHAVE_CONFIG_H -I. -Wall -W -I./include -DGRUB_UTIL=1 > -DGRUB_LIBDIR=\"/usr/lib/grub\" -DLOCALEDIR=\"/usr/share/locale\" > -DGRUB_FILE=\"grub-core/osdep/getroot.c\" -I. -I. -I. -I. -I./include > -I./include -I./grub-core/lib/libgcrypt-grub/include > -I./grub-core/lib/libgcrypt-grub/src/ -I./grub-core/gnulib > -I./grub-core/gnulib -Wall -W -Wshadow > -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Wattributes > -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations > -Wdisabled-optimization -Wdiv-by-zero -Wendif-labels -Wfloat-equal > -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit > -Wimplicit-function-declaration -Wimplicit-int -Winit-self > -Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces > -Wmissing-field-initializers -Wmissing-format-attribute -Wmultichar > -Wnonnull -Woverflow -Wparentheses -Wpointer-arith > -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow > -Wsign-compare -Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef > -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label > -Wunused-parameter -Wunused-value -Wunused-variable -Wvariadic-macros > -Wvolatile-register-var -Wwrite-strings -Wnested-externs > -Wstrict-prototypes -Wpointer-sign -Werror -Wno-undef > -Wno-sign-compare -Wno-unused -Wno-unused-parameter > -Wno-redundant-decls -Wno-unreachable-code -Wno-conversion > -Wno-old-style-definition -Wno-unsafe-loop-optimizations -MT > grub-core/osdep/libgrubkern_a-getroot.o -MD -MP -MF > grub-core/osdep/.deps-util/libgrubkern_a-getroot.Tpo -c -o > grub-core/osdep/libgrubkern_a-getroot.o `test -f > 'grub-core/osdep/getroot.c' || echo './'`grub-core/osdep/getroot.c > In file included from grub-core/osdep/getroot.c:2:0: > grub-core/osdep/linux/getroot.c: In function ?get_btrfs_fs_prefix?: > grub-core/osdep/linux/getroot.c:317:10: error: cast increases required > alignment of target type [-Werror=cast-align] > nid = (grub_uint64_t *) (sargs.buf + 16); > ^ > grub-core/osdep/linux/getroot.c:319:9: error: cast increases required > alignment of target type [-Werror=cast-align] > br = (struct grub_btrfs_root_backref *) (sargs.buf + 32); > ^ > grub-core/osdep/linux/getroot.c:345:10: error: cast increases required > alignment of target type [-Werror=cast-align] > nid = (grub_uint64_t *) (sargs.buf + 16); > ^ > grub-core/osdep/linux/getroot.c:348:9: error: cast increases required > alignment of target type [-Werror=cast-align] > ir = (struct grub_btrfs_inode_ref *) (sargs.buf + 32); > ^ > cc1: all warnings being treated as errors > make[2]: *** [grub-core/osdep/libgrubkern_a-getroot.o] Error 1 > make[2]: Leaving directory > `/home/general/download/grub/grub-e7b66a28de17b085a9b71d6c500b0b139e94d818' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/general/download/grub/grub-e7b66a28de17b085a9b71d6c500b0b139e94d818' > make: *** [all] Error 2 > > Any idea? > > -- > Javier. > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel