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

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jul 29 12:09:05 UTC 2018


On 07/29/2018 02:40 AM, Bin Meng wrote:
> Hi Heinrich,
> 
> On Sat, Jul 28, 2018 at 11:42 PM, Heinrich Schuchardt
> <xypron.glpk at gmx.de> wrote:
>> Debian Buster has upgraded gcc to version 8.1.
> 
> Do you know any pre-built gcc 8.1 that can be used on other
> distributions than Debian Buster, so that I can take a look? I am
> currently on Ubuntu 16.04.
> 

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

>>
>> 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.
>>
> 
> Without '-g', does gcc 8.1 build?

Yes, if I remove the lines setting -g in /Makefile I have no build problem.

> 
>> Compilation on x86 works fine with gcc 7.3.
>> gcc 7.3 simply does not generate the line at all.
>>
> 
> Does gcc 8.1 on Debin Buster come with multilib support? I vaguely
> remember old version did not which would cause build error.
> 

There is also a gcc-multilib package with version 8.1 in Debian Buster.

Best regards

Heinrich

>> To generate the complete assembler code use gcc with options
>> -S -fverbose-asm.
>>
> 
> Regards,
> Bin
> 



More information about the U-Boot mailing list