grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* Fwd: [grub-devel] error when compiling getroot
       [not found] <CALUrRGd-rh9JLaWeMxnPpOXZP0ujyc9MFhAijEjxLtB-zh82=A@mail.gmail.com>
@ 2013-11-02 21:14 ` Javier Vasquez
  2013-11-02 23:44   ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Javier Vasquez @ 2013-11-02 21:14 UTC (permalink / raw)
  To: The development of GNU GRUB

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: [grub-devel] error when compiling getroot
  2013-11-02 21:14 ` Fwd: [grub-devel] error when compiling getroot Javier Vasquez
@ 2013-11-02 23:44   ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-11-02 23:44 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 3463 bytes --]

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
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-02 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CALUrRGd-rh9JLaWeMxnPpOXZP0ujyc9MFhAijEjxLtB-zh82=A@mail.gmail.com>
2013-11-02 21:14 ` Fwd: [grub-devel] error when compiling getroot Javier Vasquez
2013-11-02 23:44   ` Vladimir 'φ-coder/phcoder' Serbinenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).