Hi,
Configuring GRUB 2.00 on NetBSD 5.1.2 gives the following error:
checking if C symbols get an underscore after compilation... configure:
error: gcc failed to produce assembly code
This comes from warnings -Waddress, -Wempty-body and -Woverflow
that are not supported by gcc on this system, which is:
gcc (GCC) 4.1.3 20080704 prerelease (NetBSD nb2 20081120)
The file INSTALL indicates, as requirement, GCC 4.1.3 or later.
Is this requirement obsolete? I guess so, since there isn't
much build-testing done with GCC 4.1.3 nowadays. So which GCC
version should be understood as the real requirement?
Grégoire
Excerpt from config.log:
configure:20704: checking if C symbols get an underscore after compilation
configure:20720: gcc -Os -Wall -W -Wshadow -Wold-style-definition
-Wpointer-arith -Wundef -Wextra -Waddress -Wattri
butes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations
-Wdisabled-optimization -Wdiv-by-zero -Wemp
ty-body -Wendif-labels -Wfloat-equal -Wformat-extra-args
-Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-functi
on-declaration -Wimplicit-int -Winit-self -Wint-to-pointer-cast
-Winvalid-pch -Wmain -Wmissing-braces -Wmissing-fiel
d-initializers -Wmissing-format-attribute -Wmissing-noreturn -Wmultichar
-Wnonnull -Woverflow -Wparentheses -Wpointe
r-arith -Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow
-Wsign-compare -Wstrict-aliasing -Wswitch -Wtr
igraphs -Wundef -Wunknown-pragmas -Wunused -Wunused-function
-Wunused-label -Wunused-parameter -Wunused-value -Wunu
sed-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings
-Wnested-externs -Wstrict-prototypes -Wpointe
r-sign -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations
-falign-jumps=1 -falign-loops=1 -falign-func
tions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector
-mno-stack-arg-probe -Werror -nostdlib -Wl,
--defsym,___main=0x8100 -Wno-error -S conftest.c
cc1: error: unrecognized command line option "-Waddress"
cc1: error: unrecognized command line option "-Wempty-body"
cc1: error: unrecognized command line option "-Woverflow"
configure:20723: $? = 1
configure:20727: error: gcc failed to produce assembly code
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel