Re: error when compiling dts preprocessed with -g3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Oct 12, 2021 at 8:16 AM Adrian Fiergolski
<adrian.fiergolski@xxxxxxxxxxxxx> wrote:
>
> Hi David,
>
> I am being hit by this problem again. This time on Ubuntu 20.04 LTS with
> gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04), yocto (hardknott) and
> kernel v5.10.
>
> As it's standard kernel built, I am using scripts/Makefile.lib from
> kernel sources. This line [1] causes the problem. As you indicated, it
> calls the preprocessor and afterwards dtc.

How is '-g3' getting introduced here? You are externally overriding
HOSTCC with 'gcc -g3' or something like that?

Just add '-g0' to the command line in [1]. Debug info is never useful
here. The documentation for -g3 clearly says it keeps #defines which
is fundamentally incompatible with our usage of the preprocessor.

Rob



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux