[U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1

Andy Shevchenko andy.shevchenko at gmail.com
Mon Aug 6 15:13:41 UTC 2018


On Sun, Jul 29, 2018 at 3:09 PM, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> On 07/29/2018 02:40 AM, Bin Meng wrote:

> Ubuntu Cosmic has gcc 8.2. Setting up a virtual machine with
> virt-manager is quite easy.

Can you check if output of `gcc -v` has --enable-default-pie?
If so (I bet it is the case), can you try the following patch (sorry,
it's mangled, needs manual apply)

--- a/Makefile
+++ b/Makefile
@@ -371,6 +371,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__

KBUILD_CFLAGS   := -Wall -Wstrict-prototypes \
                  -Wno-format-security \
+                  -fno-pie \
                  -fno-builtin -ffreestanding $(CSTD_FLAG)
KBUILD_CFLAGS  += -fshort-wchar
KBUILD_AFLAGS   := -D__ASSEMBLY__

P.S. I have no time right now to test this myself though.

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list