[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] build: fix build failure with gcc 11.2 by disabling -fcf-pro
From: |
Peter Maydell |
Subject: |
Re: [PATCH] build: fix build failure with gcc 11.2 by disabling -fcf-protection |
Date: |
Fri, 18 Feb 2022 13:13:59 +0000 |
On Tue, 8 Feb 2022 at 21:29, Vineet Gupta <vineetg@rivosinc.com> wrote:
>
> When doing RV qemu builds with host gcc 11.2, ran into following build failure
>
> | cc -MMD -MP -MT linuxboot_dma.o -MF ./linuxboot_dma.d -O2 -g -march=i486
> -Wall \
> | -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings
> -Wmissing-prototypes \
> | -Wold-style-declaration -Wold-style-definition -Wtype-limits
> -Wformat-security \
> | -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body
> -Wnested-externs \
> | -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2
> -Wno-missing-include-dirs \
> | -Wno-shift-negative-value -Wno-psabi -fno-pie -ffreestanding
> -IQEMU/include \
> | -fno-stack-protector -m16 -Wa,-32 \
> | -c QEMU/pc-bios/optionrom/linuxboot_dma.c -o linuxboot_dma.o
> |cc1: error: ‘-fcf-protection’ is not compatible with this target
>
> Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
> ---
> This might be a crude fix to the problem
I think this patch
https://patchew.org/QEMU/20220103090112.312202-1-bjorn@kernel.org/
fixes the same problem...
thanks
-- PMM