Solution is here:
commit 29ff4881e498192118065dbc722e7302df740f6d
Author: Paolo Bonzini <email address hidden>
Date: Tue Oct 25 15:26:43 2016 +0200
autodetect -Wno-frame-address
Not all targets have -Wframe-address, and those that don't will
report an error if -Wno-frame-address is passed (because of -Werror).
So autodetect it.
diff --git a/Makefile b/Makefile
index 0ffe234..5201472 100644
--- a/Makefile
+++ b/Makefile
@@ -45,14 +45,16 @@ cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
Solution is here: 118065dbc722e73 02df740f6d
commit 29ff4881e498192
Author: Paolo Bonzini <email address hidden>
Date: Tue Oct 25 15:26:43 2016 +0200
autodetect -Wno-frame-address
Not all targets have -Wframe-address, and those that don't will
report an error if -Wno-frame-address is passed (because of -Werror).
So autodetect it.
diff --git a/Makefile b/Makefile
index 0ffe234..5201472 100644
--- a/Makefile
+++ b/Makefile
@@ -45,14 +45,16 @@ cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
CFLAGS += -g pointer- flag=-f$ (if $(KEEP_ FRAME_POINTER) ,no-,)omit- frame-pointer frame_pointer := $(call cc-option, $(frame- pointer- flag), "") protector, "") protector_ all := $(call cc-option, -fno-stack- protector- all, "") frame_pointer) protector) protector_ all) address)
-CFLAGS += $(autodepend-flags) -Wall -Werror -Wno-frame-address
+CFLAGS += $(autodepend-flags) -Wall -Werror
frame-
fomit_
fnostack_protector := $(call cc-option, -fno-stack-
fnostack_
+wno_frame_address := $(call cc-option, -Wno-frame-address, "")
CFLAGS += $(fomit_
CFLAGS += $(fno_stack_
CFLAGS += $(fno_stack_
+CFLAGS += $(wno_frame_
CXXFLAGS += $(CFLAGS)