* grub-core compile error on FreeBSD
@ 2014-10-14 11:14 Beeblebrox
2014-10-14 13:30 ` Andrei Borzenkov
2014-10-14 15:59 ` Beeblebrox
0 siblings, 2 replies; 5+ messages in thread
From: Beeblebrox @ 2014-10-14 11:14 UTC (permalink / raw)
To: grub-devel
Git repo is at latest head. compile fails due to "missing field 'components' initializer":
gmake[2]: Entering directory '/asp/git/grub/grub-core'
gmake all-am
gmake[3]: Entering directory '/asp/git/grub/grub-core'
cc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem /usr/lib/include -DGRUB_FILE=\"loader/i386/pc/linux.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare
-Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations
-Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -m32 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -fno-stack-protector -Werror -ffreestanding -MT loader/i386/pc/linux16_module-linux.o -MD -MP -MF loader/i386/pc/.deps-core/linux16_module-linux.Tpo -c -o loader/i386/pc/linux16_module-linux.o `test -f 'loader/i386/pc/linux.c' || echo './'`loader/i386/pc/linux.c
loader/i386/pc/linux.c:391:54: error: missing field 'components' initializer
[-Werror,-Wmissing-field-initializers]
struct grub_linux_initrd_context initrd_ctx = { 0, };
^
1 error generated.
Makefile:33097: recipe for target 'loader/i386/pc/linux16_module-linux.o' failed
gmake[3]: *** [loader/i386/pc/linux16_module-linux.o] Error 1
gmake[3]: Leaving directory '/asp/git/grub/grub-core'
Makefile:22888: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/asp/git/grub/grub-core'
Makefile:11537: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/asp/git/grub'
Makefile:3933: recipe for target 'all' failed
gmake: *** [all] Error 2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub-core compile error on FreeBSD
2014-10-14 11:14 grub-core compile error on FreeBSD Beeblebrox
@ 2014-10-14 13:30 ` Andrei Borzenkov
2014-10-14 15:59 ` Beeblebrox
1 sibling, 0 replies; 5+ messages in thread
From: Andrei Borzenkov @ 2014-10-14 13:30 UTC (permalink / raw)
To: The development of GNU GRUB
On Tue, Oct 14, 2014 at 3:14 PM, Beeblebrox <zaphod@berentweb.com> wrote:
> Git repo is at latest head. compile fails due to "missing field 'components' initializer":
>
And your compiler and version is ... ?
> gmake[2]: Entering directory '/asp/git/grub/grub-core'
> gmake all-am
> gmake[3]: Entering directory '/asp/git/grub/grub-core'
> cc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -nostdinc -isystem /usr/lib/include -DGRUB_FILE=\"loader/i386/pc/linux.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare
> -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations
> -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -m32 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -fno-stack-protector -Werror -ffreestanding -MT loader/i386/pc/linux16_module-linux.o -MD -MP -MF loader/i386/pc/.deps-core/linux16_module-linux.Tpo -c -o loader/i386/pc/linux16_module-linux.o `test -f 'loader/i386/pc/linux.c' || echo './'`loader/i386/pc/linux.c
> loader/i386/pc/linux.c:391:54: error: missing field 'components' initializer
> [-Werror,-Wmissing-field-initializers]
> struct grub_linux_initrd_context initrd_ctx = { 0, };
> ^
> 1 error generated.
> Makefile:33097: recipe for target 'loader/i386/pc/linux16_module-linux.o' failed
> gmake[3]: *** [loader/i386/pc/linux16_module-linux.o] Error 1
> gmake[3]: Leaving directory '/asp/git/grub/grub-core'
> Makefile:22888: recipe for target 'all' failed
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory '/asp/git/grub/grub-core'
> Makefile:11537: recipe for target 'all-recursive' failed
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory '/asp/git/grub'
> Makefile:3933: recipe for target 'all' failed
> gmake: *** [all] Error 2
>
> _______________________________________________
> 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: grub-core compile error on FreeBSD
2014-10-14 11:14 grub-core compile error on FreeBSD Beeblebrox
2014-10-14 13:30 ` Andrei Borzenkov
@ 2014-10-14 15:59 ` Beeblebrox
2014-10-14 16:31 ` Andrei Borzenkov
1 sibling, 1 reply; 5+ messages in thread
From: Beeblebrox @ 2014-10-14 15:59 UTC (permalink / raw)
To: grub-devel
> And your compiler and version is ... ?
What I posted previously was from (clang version 3.4.1)
When I use gcc (gcc version 4.8.3) by invoking "USE_GCC=any", the error is:
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -DGRUB_FILE=\"net/http.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast
-Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -m32 -mrtd -mregparm=3 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -Qn -fno-stack-protector -Wtrampolines -Werror -ffreestanding -MT
net/http_module-http.o -MD -MP -MF net/.deps-core/http_module-http.Tpo -c -o net/http_module-http.o `test -f 'net/http.c' || echo './'`net/http.c
In file included from ../include/grub/misc.h:24:0,
from net/http.c:19:
../include/grub/types.h:22:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
Makefile:30997: recipe for target 'net/http_module-http.o' failed
gmake[3]: *** [net/http_module-http.o] Error 1
gmake[3]: Leaving directory '/asp/git/grub/grub-core'
Makefile:22888: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/asp/git/grub/grub-core'
Makefile:11537: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/asp/git/grub'
Makefile:3933: recipe for target 'all' failed
gmake: *** [all] Error 2
--
FreeBSD_amd64_11-Current_RadeonKMS
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub-core compile error on FreeBSD
2014-10-14 15:59 ` Beeblebrox
@ 2014-10-14 16:31 ` Andrei Borzenkov
2014-10-14 18:26 ` Beeblebrox
0 siblings, 1 reply; 5+ messages in thread
From: Andrei Borzenkov @ 2014-10-14 16:31 UTC (permalink / raw)
To: The development of GNU GRUB; +Cc: zaphod
В Tue, 14 Oct 2014 18:59:59 +0300
Beeblebrox <zaphod@berentweb.com> пишет:
> > And your compiler and version is ... ?
>
> What I posted previously was from (clang version 3.4.1)
>
Could you test current master, it should fix it.
> When I use gcc (gcc version 4.8.3) by invoking "USE_GCC=any", the error is:
>
> gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -DGRUB_FILE=\"net/http.c\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -Os -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast
> -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -march=i386 -m32 -mrtd -mregparm=3 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -freg-struct-return -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -Qn -fno-stack-protector -Wtrampolines -Werror -ffreestanding -MT
> net/http_module-http.o -MD -MP -MF net/.deps-core/http_module-http.Tpo -c -o net/http_module-http.o `test -f 'net/http.c' || echo './'`net/http.c
> In file included from ../include/grub/misc.h:24:0,
> from net/http.c:19:
> ../include/grub/types.h:22:20: fatal error: config.h: No such file or directory
> #include <config.h>
> ^
> compilation terminated.
Please test with clean build directory.
> Makefile:30997: recipe for target 'net/http_module-http.o' failed
> gmake[3]: *** [net/http_module-http.o] Error 1
> gmake[3]: Leaving directory '/asp/git/grub/grub-core'
> Makefile:22888: recipe for target 'all' failed
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory '/asp/git/grub/grub-core'
> Makefile:11537: recipe for target 'all-recursive' failed
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory '/asp/git/grub'
> Makefile:3933: recipe for target 'all' failed
> gmake: *** [all] Error 2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: grub-core compile error on FreeBSD
2014-10-14 16:31 ` Andrei Borzenkov
@ 2014-10-14 18:26 ` Beeblebrox
0 siblings, 0 replies; 5+ messages in thread
From: Beeblebrox @ 2014-10-14 18:26 UTC (permalink / raw)
To: Andrei Borzenkov; +Cc: The development of GNU GRUB
Hi Andrey,
> Could you test current master, it should fix it.
Compiles & installs very nicely now.
Used clang compiler (did not invoke USE_GCC=any)
Thanks & regards.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-14 18:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-14 11:14 grub-core compile error on FreeBSD Beeblebrox
2014-10-14 13:30 ` Andrei Borzenkov
2014-10-14 15:59 ` Beeblebrox
2014-10-14 16:31 ` Andrei Borzenkov
2014-10-14 18:26 ` Beeblebrox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.