[U-Boot] [BUG] efi-x86_app_defconfig does not build with gcc 8.2

Bin Meng bmeng.cn at gmail.com
Mon Oct 8 23:28:36 UTC 2018


Hi Andy,

On Tue, Oct 9, 2018 at 12:31 AM Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> On Mon, Oct 08, 2018 at 11:31:32PM +0800, Bin Meng wrote:
> > +Andy
> >
> > On Sat, Sep 8, 2018 at 5:00 PM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> > >
> > > make mrproper && make efi-x86_app_defconfig && make
> > >
> > > results in
> > >
> > >   CC      common/image.o
> > > {standard input}: Assembler messages:
> > > {standard input}:21662: Error: junk at end of line, first unrecognized
> > > character is `@'
> > > {standard input}:21707: Error: junk at end of line, first unrecognized
> > > character is `@'
> > > {standard input}:21662: Error: can't resolve `end.6878'
> > > {.u_boot_list_2_fit_loadable_3 section} - `start.6875'
> > > {.u_boot_list_2_fit_loadable_1 section}
> > > {standard input}:21707: Error: can't resolve `end.6878'
> > > {.u_boot_list_2_fit_loadable_3 section} - `start.6875'
> > > {.u_boot_list_2_fit_loadable_1 section}
> > >
> > > I am using Debian Buster with gcc-8.2.0.
> > >
> > > Building with gcc-7.3.0 works fine.
> > >
> > > We had a similar issue for qemu-x86_defconfig in
> > > https://lists.denx.de/pipermail/u-boot/2018-July/336393.html
> > > which has been resolved.
> >
> > I can reproduce this with kernel.org GCC 8.1.0 toolchain now. But I
> > have no idea how this error is related to anything. Andy may have some
> > idea.
>
> Does below fixes the issue (check also if the resulting binary runs)?
>
> --- a/arch/x86/config.mk
> +++ b/arch/x86/config.mk
> @@ -41,7 +41,7 @@ OBJCOPYFLAGS_EFI := -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
>  ifeq ($(IS_32BIT),y)
>  CFLAGS_NON_EFI := -mregparm=3
>  endif
> -CFLAGS_EFI := -fpic -fshort-wchar
> +CFLAGS_EFI := -fshort-wchar
>

Thanks for checking. I tried this but the resulted binary does not
boot. Hangs at "U-Boot EFI " and no console output anymore.

Regards,
Bin


More information about the U-Boot mailing list