grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Fwd: [grub-devel] error when compiling getroot
Date: Sun, 03 Nov 2013 00:44:12 +0100	[thread overview]
Message-ID: <52758E4C.6090608@gmail.com> (raw)
In-Reply-To: <CALUrRGdLZxmvp_4R_eB=Ox0d7nJcegvz_LOrCi3U3K1qJyqH8g@mail.gmail.com>

[-- 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 --]

      reply	other threads:[~2013-11-02 23:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52758E4C.6090608@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).