grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[build failure] GCC 4.1.3 support?


From: Grégoire Sutre
Subject: [build failure] GCC 4.1.3 support?
Date: Sat, 28 Jul 2012 00:15:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]