All of lore.kernel.org
 help / color / mirror / Atom feed
* [build failure] GCC 4.1.3 support?
@ 2012-07-27 22:15 Grégoire Sutre
  2012-07-27 23:21 ` Grégoire Sutre
  0 siblings, 1 reply; 2+ messages in thread
From: Grégoire Sutre @ 2012-07-27 22:15 UTC (permalink / raw)
  To: The development of GNU GRUB

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


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

* Re: [build failure] GCC 4.1.3 support?
  2012-07-27 22:15 [build failure] GCC 4.1.3 support? Grégoire Sutre
@ 2012-07-27 23:21 ` Grégoire Sutre
  0 siblings, 0 replies; 2+ messages in thread
From: Grégoire Sutre @ 2012-07-27 23:21 UTC (permalink / raw)
  To: grub-devel

More data, this time on Debian GNU/Linux (squeeze) amd64.

- successful build with GCC 4.4.5
- build failure with GCC 4.3.5

The failure with GCC 4.3.5 is:

make[2]: Entering directory `/tmp/grub-2.00'
gcc-4.3 -DHAVE_CONFIG_H -I.   -Wall -W -I./include -DGRUB_UTIL=1 
-DGRUB_LIBDIR=\"/usr/local/lib/grub\" 
-DLOCALEDIR=\"/usr/local/share/locale\" -DGRUB_FILE=\"util/misc.c\" -I. 
-I. -I. -I. -I./include -I./include  -I./grub-core/gnulib 
-I./grub-core/gnulib                -Wall -W -Wshadow 
-Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress 
-Wattributes -Wcast-align -Wchar-subscripts -Wcomment 
-Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero 
-Wempty-body -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 
-Wmissing-noreturn -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 
util/libgrubkern_a-misc.o -MD -MP -MF 
util/.deps-util/libgrubkern_a-misc.Tpo -c -o util/libgrubkern_a-misc.o 
`test -f 'util/misc.c' || echo './'`util/misc.c
cc1: warnings being treated as errors
cc1: error: -funit-at-a-time is required for inlining of functions that 
are only called once
make[2]: *** [util/libgrubkern_a-misc.o] Error 1
make[2]: Leaving directory `/tmp/grub-2.00'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/grub-2.00'
make: *** [all] Error 2

Grégoire


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

end of thread, other threads:[~2012-07-27 23:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-27 22:15 [build failure] GCC 4.1.3 support? Grégoire Sutre
2012-07-27 23:21 ` Grégoire Sutre

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.