All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1
@ 2018-07-28 15:42 Heinrich Schuchardt
  2018-07-29  0:40 ` Bin Meng
  0 siblings, 1 reply; 7+ messages in thread
From: Heinrich Schuchardt @ 2018-07-28 15:42 UTC (permalink / raw)
  To: u-boot

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}

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1
@ 2019-02-15 16:03 Ayush Dosaj
  2019-02-16 13:35 ` Ayush Dosaj
  0 siblings, 1 reply; 7+ messages in thread
From: Ayush Dosaj @ 2019-02-15 16:03 UTC (permalink / raw)
  To: u-boot

I have one question, where to remove "-g" and in which make file ?
I am stuck on this BUG. Please Help me out.
-- 
Ayush Dosaj
VIT Vellore

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-16 13:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-28 15:42 [U-Boot] [BUG] qemu-x86_defconfig does not build with GCC 8.1 Heinrich Schuchardt
2018-07-29  0:40 ` Bin Meng
2018-07-29 12:09   ` Heinrich Schuchardt
2018-08-06 15:13     ` Andy Shevchenko
2018-08-06 16:36       ` Heinrich Schuchardt
2019-02-15 16:03 Ayush Dosaj
2019-02-16 13:35 ` Ayush Dosaj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.