* build issue with 631a820: missing initialiser [-Werror=missing-field-initializers]
@ 2014-10-14 2:45 The Gluglug
2014-10-14 5:33 ` Andrei Borzenkov
0 siblings, 1 reply; 5+ messages in thread
From: The Gluglug @ 2014-10-14 2:45 UTC (permalink / raw)
To: grub-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here is how I try to build GRUB (to be used as a coreboot payload):
git clone git://git.savannah.gnu.org/grub.git
cd grub
./autogen.sh
./configure --with-platform=coreboot
make
Usually this works, but recently I get this error:
loader/i386/pc/linux.c: In function ‘grub_cmd_initrd’:
loader/i386/pc/linux.c:391:10: error: missing initialiser
[-Werror=missing-field-initializers]
loader/i386/pc/linux.c:391:10: error: (near initialisation for
‘initrd_ctx.components’) [-Werror=missing-field-initializers]
cc1: all warnings being treated as errors
make[3]: *** [loader/i386/pc/linux16_module-linux.o] Error 1
make[3]: Leaving directory `/home/user/libreboot/grub/grub-core'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/libreboot/grub/grub-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/libreboot/grub'
make: *** [all] Error 2
I tracked it down to commit 631a82003851ca68bfaf87e12be5c94e14cd2a91.
Short of reverting the commit, what is the best way to go about
solving this issue?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBAgAGBQJUPI5IAAoJEP9Ft0z50c+Ug64IAMeQEmnQcj82JEBllTh1rAs7
2YT39SxdzUmQK2LG5Lq6yv7Soh3hgVhObHhokGrs8lEgzV4jVELkPnzIrLFG/Mqk
akOXQSUlM8ra7ZNwTW5ThlDETqQjkj98T2yL2sDXClBCm/u9FFzN6eybcM0jUIfd
pa8rW53B4snG5DOmcmjvo5VQX1Gr7WPYUGPiSuqfqlqePhsiUkea6jzMmkTwhukW
oqeyFmNrZ3VIzobhy/4wKmD104/IzLeyaaMBlWOLl4qc9/HSLJhR5i62BaqC2GAS
jEjDfO0uvrE7C24St902lBezCPxyB11lhZEU18uy/KA1BY08C2Ie0qmHPmvaGls=
=mk/h
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: build issue with 631a820: missing initialiser [-Werror=missing-field-initializers]
2014-10-14 2:45 build issue with 631a820: missing initialiser [-Werror=missing-field-initializers] The Gluglug
@ 2014-10-14 5:33 ` Andrei Borzenkov
2014-10-14 5:43 ` Bryan Hundven
0 siblings, 1 reply; 5+ messages in thread
From: Andrei Borzenkov @ 2014-10-14 5:33 UTC (permalink / raw)
To: The development of GNU GRUB
On Tue, Oct 14, 2014 at 6:45 AM, The Gluglug <info@gluglug.org.uk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Here is how I try to build GRUB (to be used as a coreboot payload):
>
> git clone git://git.savannah.gnu.org/grub.git
> cd grub
> ./autogen.sh
> ./configure --with-platform=coreboot
> make
>
> Usually this works, but recently I get this error:
>
> loader/i386/pc/linux.c: In function ‘grub_cmd_initrd’:
> loader/i386/pc/linux.c:391:10: error: missing initialiser
> [-Werror=missing-field-initializers]
> loader/i386/pc/linux.c:391:10: error: (near initialisation for
> ‘initrd_ctx.components’) [-Werror=missing-field-initializers]
Hmm ... it builds fine here, with gcc 4.8. What compiler and version?
> cc1: all warnings being treated as errors
> make[3]: *** [loader/i386/pc/linux16_module-linux.o] Error 1
> make[3]: Leaving directory `/home/user/libreboot/grub/grub-core'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/user/libreboot/grub/grub-core'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/user/libreboot/grub'
> make: *** [all] Error 2
>
> I tracked it down to commit 631a82003851ca68bfaf87e12be5c94e14cd2a91.
> Short of reverting the commit, what is the best way to go about
> solving this issue?
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iQEcBAEBAgAGBQJUPI5IAAoJEP9Ft0z50c+Ug64IAMeQEmnQcj82JEBllTh1rAs7
> 2YT39SxdzUmQK2LG5Lq6yv7Soh3hgVhObHhokGrs8lEgzV4jVELkPnzIrLFG/Mqk
> akOXQSUlM8ra7ZNwTW5ThlDETqQjkj98T2yL2sDXClBCm/u9FFzN6eybcM0jUIfd
> pa8rW53B4snG5DOmcmjvo5VQX1Gr7WPYUGPiSuqfqlqePhsiUkea6jzMmkTwhukW
> oqeyFmNrZ3VIzobhy/4wKmD104/IzLeyaaMBlWOLl4qc9/HSLJhR5i62BaqC2GAS
> jEjDfO0uvrE7C24St902lBezCPxyB11lhZEU18uy/KA1BY08C2Ie0qmHPmvaGls=
> =mk/h
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: build issue with 631a820: missing initialiser [-Werror=missing-field-initializers]
2014-10-14 5:33 ` Andrei Borzenkov
@ 2014-10-14 5:43 ` Bryan Hundven
0 siblings, 0 replies; 5+ messages in thread
From: Bryan Hundven @ 2014-10-14 5:43 UTC (permalink / raw)
To: The development of GNU GRUB
On Mon, Oct 13, 2014 at 10:33 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
> On Tue, Oct 14, 2014 at 6:45 AM, The Gluglug <info@gluglug.org.uk> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Here is how I try to build GRUB (to be used as a coreboot payload):
>>
>> git clone git://git.savannah.gnu.org/grub.git
>> cd grub
>> ./autogen.sh
>> ./configure --with-platform=coreboot
>> make
>>
>> Usually this works, but recently I get this error:
>>
>> loader/i386/pc/linux.c: In function 'grub_cmd_initrd':
>> loader/i386/pc/linux.c:391:10: error: missing initialiser
>> [-Werror=missing-field-initializers]
>> loader/i386/pc/linux.c:391:10: error: (near initialisation for
>> 'initrd_ctx.components') [-Werror=missing-field-initializers]
>
> Hmm ... it builds fine here, with gcc 4.8. What compiler and version?
Also builds fine for me:
gcc (Debian 4.9.1-16) 4.9.1
-Bryan
>> cc1: all warnings being treated as errors
>> make[3]: *** [loader/i386/pc/linux16_module-linux.o] Error 1
>> make[3]: Leaving directory `/home/user/libreboot/grub/grub-core'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/home/user/libreboot/grub/grub-core'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/user/libreboot/grub'
>> make: *** [all] Error 2
>>
>> I tracked it down to commit 631a82003851ca68bfaf87e12be5c94e14cd2a91.
>> Short of reverting the commit, what is the best way to go about
>> solving this issue?
>>
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (GNU/Linux)
>>
>> iQEcBAEBAgAGBQJUPI5IAAoJEP9Ft0z50c+Ug64IAMeQEmnQcj82JEBllTh1rAs7
>> 2YT39SxdzUmQK2LG5Lq6yv7Soh3hgVhObHhokGrs8lEgzV4jVELkPnzIrLFG/Mqk
>> akOXQSUlM8ra7ZNwTW5ThlDETqQjkj98T2yL2sDXClBCm/u9FFzN6eybcM0jUIfd
>> pa8rW53B4snG5DOmcmjvo5VQX1Gr7WPYUGPiSuqfqlqePhsiUkea6jzMmkTwhukW
>> oqeyFmNrZ3VIzobhy/4wKmD104/IzLeyaaMBlWOLl4qc9/HSLJhR5i62BaqC2GAS
>> jEjDfO0uvrE7C24St902lBezCPxyB11lhZEU18uy/KA1BY08C2Ie0qmHPmvaGls=
>> =mk/h
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: build issue with 631a820: missing initialiser [-Werror=missing-field-initializers]
@ 2014-10-14 14:37 The Gluglug
2014-10-14 16:29 ` Andrei Borzenkov
0 siblings, 1 reply; 5+ messages in thread
From: The Gluglug @ 2014-10-14 14:37 UTC (permalink / raw)
To: arvidjaar, grub-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Hmm ... it builds fine here, with gcc 4.8. What compiler and
> version?
GCC 4.6.3
Distro: Trisquel 6 (based on Ubuntu 12.04).
So I should upgrade GCC?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBAgAGBQJUPTUcAAoJEP9Ft0z50c+UZNoH/3sg50rNfAkG8txSM+5WOhHb
bZkmhbcYEKi0IlcCGoDSXh4A/vdZsUtkDtZv0lglSvfq2quNGcjfvW4OowekFe6F
4ZacBaaCb2kgNLivBXQXXoWcuVSxxzK0w0UJi7DCCBSE1EXBRoyiNSgvaHjiSzPd
Wn9jPrMEfomdFPyUlI1VWaoryiTSItUGHw/lHQrE7qtzhtSZfCdH5HdQvt0ZQNG4
tWy8V6JYtvXn+8aavyrFyzLWu4Uka6pvMEMfG4j1dhaMVmpC35bM6ciEFSV8/GL/
qUnr4d8XJdPFdDmZQ9GEiV/rlbPt+dta1WXFNPvX+0MCYvIV59xVgKiNMjMPP4A=
=JGgT
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: build issue with 631a820: missing initialiser [-Werror=missing-field-initializers]
2014-10-14 14:37 The Gluglug
@ 2014-10-14 16:29 ` Andrei Borzenkov
0 siblings, 0 replies; 5+ messages in thread
From: Andrei Borzenkov @ 2014-10-14 16:29 UTC (permalink / raw)
To: The Gluglug; +Cc: grub-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В Tue, 14 Oct 2014 15:37:16 +0100
The Gluglug <info@gluglug.org.uk> пишет:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > Hmm ... it builds fine here, with gcc 4.8. What compiler and
> > version?
>
> GCC 4.6.3
>
> Distro: Trisquel 6 (based on Ubuntu 12.04).
>
> So I should upgrade GCC?
That probably makes sense anyway but for this specific problem I pushed
a fix. Please update from GIT and retest.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlQ9T3YACgkQR6LMutpd94zBbACgitZLDI7Xqgpo+Sd+beG79P6U
xiQAniDYvxZNPCcGyIvdMO0WPLjovW3E
=8fix
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-14 16:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-14 2:45 build issue with 631a820: missing initialiser [-Werror=missing-field-initializers] The Gluglug
2014-10-14 5:33 ` Andrei Borzenkov
2014-10-14 5:43 ` Bryan Hundven
-- strict thread matches above, loose matches on Subject: below --
2014-10-14 14:37 The Gluglug
2014-10-14 16:29 ` Andrei Borzenkov
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).