[U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1
Heinrich Schuchardt
xypron.glpk at gmx.de
Sat Jul 28 15:42:37 UTC 2018
Debian Buster has upgraded gcc to version 8.1.
With gcc 8.1 I get an error when trying to build qemu-x86_defconfig
{standard input}: Assembler messages:
{standard input}:7465: Error: junk at end of line, first unrecognized
character is `@'
The problematic line in the generated assembler code is
.long end.6133 at gotoff-start.6130@gotoff
This difference relates to the length of a linker generated list and is
only needed for debugging. It is not generated when compiling without
option -g.
Compilation on x86 works fine with gcc 7.3.
gcc 7.3 simply does not generate the line at all.
To generate the complete assembler code use gcc with options
-S -fverbose-asm.
Best regards
Heinrich
gcc -Wp,-MD,common/.command.o.d -nostdinc -isystem
/usr/lib/gcc/x86_64-linux-gnu/8/include -Iinclude -I./arch/x86/include
-include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall
-Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding
-std=gnu11 -fshort-wchar -Os -fno-stack-protector
-fno-delete-null-pointer-checks -fmacro-prefix-map=./= -g -fstack-usage
-Wno-format-nonliteral -Werror=date-time -fno-strict-aliasing
-fomit-frame-pointer -fno-toplevel-reorder -fno-dwarf2-cfi-asm
-march=i386 -m32 -mregparm=3 -D__I386__ -ffunction-sections
-fvisibility=hidden -pipe -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(command)"
-D"KBUILD_MODNAME=KBUILD_STR(command)" -c -o common/command.o
common/command.c
{standard input}: Assembler messages:
{standard input}:7465: Error: junk at end of line, first unrecognized
character is `@'
{standard input}:10573: Error: junk at end of line, first unrecognized
character is `@'
{standard input}:10587: Error: junk at end of line, first unrecognized
character is `@'
{standard input}:7465: Error: can't resolve `end.6133'
{.u_boot_list_2_cmd_3 section} - `start.6130' {.u_boot_list_2_cmd_1 section}
{standard input}:10573: Error: can't resolve `end.6164'
{.u_boot_list_2_cmd_3 section} - `start.6161' {.u_boot_list_2_cmd_1 section}
{standard input}:10587: Error: can't resolve `end.6164'
{.u_boot_list_2_cmd_3 section} - `start.6161' {.u_boot_list_2_cmd_1 section}
More information about the U-Boot
mailing list