2022-01-12 00:31:09

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build failure after merge of the ftrace tree

Hi all,

After merging the ftrace tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

Inconsistent kallsyms data
Try make KALLSYMS_EXTRA_PASS=1 as a workaround

I am not sure what caused this - maybe commit

4f1f18311591 ("scripts: ftrace - move the sort-processing in ftrace_init")

I have used the ftrace tree from next-20220111 for today.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (488.00 B)
OpenPGP digital signature

2022-01-14 01:02:47

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

Hi all,

On Wed, 12 Jan 2022 11:31:03 +1100 Stephen Rothwell <[email protected]> wrote:
>
> After merging the ftrace tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> Inconsistent kallsyms data
> Try make KALLSYMS_EXTRA_PASS=1 as a workaround
>
> I am not sure what caused this - maybe commit
>
> 4f1f18311591 ("scripts: ftrace - move the sort-processing in ftrace_init")
>
> I have used the ftrace tree from next-20220111 for today.

I am still getting this.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (488.00 B)
OpenPGP digital signature

2022-01-14 01:04:37

by Steven Rostedt

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

On Fri, 14 Jan 2022 12:02:40 +1100
Stephen Rothwell <[email protected]> wrote:

> Hi all,
>
> On Wed, 12 Jan 2022 11:31:03 +1100 Stephen Rothwell <[email protected]> wrote:
> >
> > After merging the ftrace tree, today's linux-next build (powerpc
> > ppc64_defconfig) failed like this:
> >
> > Inconsistent kallsyms data
> > Try make KALLSYMS_EXTRA_PASS=1 as a workaround
> >
> > I am not sure what caused this - maybe commit
> >
> > 4f1f18311591 ("scripts: ftrace - move the sort-processing in ftrace_init")
> >
> > I have used the ftrace tree from next-20220111 for today.
>
> I am still getting this.
>

OK, I'll take a look.

-- Steve

2022-01-14 02:16:40

by Steven Rostedt

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

On Fri, 14 Jan 2022 12:02:40 +1100
Stephen Rothwell <[email protected]> wrote:

> Hi all,
>
> On Wed, 12 Jan 2022 11:31:03 +1100 Stephen Rothwell <[email protected]> wrote:
> >
> > After merging the ftrace tree, today's linux-next build (powerpc
> > ppc64_defconfig) failed like this:
> >
> > Inconsistent kallsyms data
> > Try make KALLSYMS_EXTRA_PASS=1 as a workaround
> >
> > I am not sure what caused this - maybe commit
> >
> > 4f1f18311591 ("scripts: ftrace - move the sort-processing in ftrace_init")
> >
> > I have used the ftrace tree from next-20220111 for today.
>
> I am still getting this.
>

What compiler are you using, because I built my branch against all archs
and it didn't have an issue.

I can try to see if it is with linux-next and something my tree has with
other updates.

-- Steve

2022-01-14 02:58:15

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

Hi Steve,

On Thu, 13 Jan 2022 21:16:33 -0500 Steven Rostedt <[email protected]> wrote:
>
> What compiler are you using, because I built my branch against all archs
> and it didn't have an issue.

gcc (Debian 10.3.0-11) 10.3.0
GNU ld (GNU Binutils for Debian) 2.37

I am doing a native build on ppc64le.

> I can try to see if it is with linux-next and something my tree has with
> other updates.

Thanks. There are some changes in the kbuild tree that may interact, I
guess.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (488.00 B)
OpenPGP digital signature

2022-01-14 03:03:03

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

Hi Steve,

On Fri, 14 Jan 2022 13:58:08 +1100 Stephen Rothwell <[email protected]> wrote:
>
> On Thu, 13 Jan 2022 21:16:33 -0500 Steven Rostedt <[email protected]> wrote:
> >
> > What compiler are you using, because I built my branch against all archs
> > and it didn't have an issue.
>
> gcc (Debian 10.3.0-11) 10.3.0
> GNU ld (GNU Binutils for Debian) 2.37
>
> I am doing a native build on ppc64le.
>
> > I can try to see if it is with linux-next and something my tree has with
> > other updates.
>
> Thanks. There are some changes in the kbuild tree that may interact, I
> guess.

It also presumably could depend on the actual kernel config being tested.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (488.00 B)
OpenPGP digital signature

2022-01-14 03:25:47

by Steven Rostedt

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

On Fri, 14 Jan 2022 14:02:58 +1100
Stephen Rothwell <[email protected]> wrote:

> Hi Steve,
>
> On Fri, 14 Jan 2022 13:58:08 +1100 Stephen Rothwell <[email protected]> wrote:
> >
> > On Thu, 13 Jan 2022 21:16:33 -0500 Steven Rostedt <[email protected]> wrote:
> > >
> > > What compiler are you using, because I built my branch against all archs
> > > and it didn't have an issue.
> >
> > gcc (Debian 10.3.0-11) 10.3.0
> > GNU ld (GNU Binutils for Debian) 2.37
> >
> > I am doing a native build on ppc64le.
> >
> > > I can try to see if it is with linux-next and something my tree has with
> > > other updates.
> >
> > Thanks. There are some changes in the kbuild tree that may interact, I
> > guess.
>
> It also presumably could depend on the actual kernel config being tested.
>

I can't reproduce it, and doing searches on this error, seems that it
happens "randomly". I haven't found what can cause it yet.

I don't have a way to build nativly, but if you send me your config, I
can still try to cross compile it to see if it triggers.

Does it fail on anything else?

-- Steve

2022-01-14 03:34:24

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

Hi Steve,

On Thu, 13 Jan 2022 22:25:39 -0500 Steven Rostedt <[email protected]> wrote:
>
> I can't reproduce it, and doing searches on this error, seems that it
> happens "randomly". I haven't found what can cause it yet.

rats :-(

> I don't have a way to build nativly, but if you send me your config, I
> can still try to cross compile it to see if it triggers.

I just use ppc64_defconfig (which may vary depending on what is merged
into my tree at the time). I don't save actual .config files, sorry.

So:

$ make ARCH=powerpc ppc64_defconfig

> Does it fail on anything else?

This is the first build I do after merging each tree, so I don't know
about others. I may be able to do some testing later today (after
linux-next is released).

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (488.00 B)
OpenPGP digital signature

2022-01-14 03:50:57

by Steven Rostedt

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

On Fri, 14 Jan 2022 14:34:18 +1100
Stephen Rothwell <[email protected]> wrote:

> > Does it fail on anything else?
>
> This is the first build I do after merging each tree, so I don't know
> about others. I may be able to do some testing later today (after
> linux-next is released).

Could you see if this fixes it? This is a revert of part of the patch.
Yinan, was there a reason you moved this code?

-- Steve

diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index dd9955f45774..5cdd9bc5c385 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -400,9 +400,6 @@ if [ -n "${CONFIG_DEBUG_INFO_BTF}" -a -n "${CONFIG_BPF}" ]; then
${RESOLVE_BTFIDS} vmlinux
fi

-info SYSMAP System.map
-mksysmap vmlinux System.map
-
if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then
info SORTTAB vmlinux
if ! sorttable vmlinux; then
@@ -411,6 +408,9 @@ if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then
fi
fi

+info SYSMAP System.map
+mksysmap vmlinux System.map
+
# step a (see comment above)
if [ -n "${CONFIG_KALLSYMS}" ]; then
mksysmap ${kallsyms_vmlinux} .tmp_System.map

2022-01-14 05:12:10

by Yinan Liu

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

Hi, steven

When sorttable is executed, system.map is queried, so the creation
of system.map is moved forward. Did that make a difference?

在 2022/1/14 上午11:50, Steven Rostedt 写道:
> On Fri, 14 Jan 2022 14:34:18 +1100
> Stephen Rothwell <[email protected]> wrote:
>
>>> Does it fail on anything else?
>>
>> This is the first build I do after merging each tree, so I don't know
>> about others. I may be able to do some testing later today (after
>> linux-next is released).
>
> Could you see if this fixes it? This is a revert of part of the patch.
> Yinan, was there a reason you moved this code?
>
> -- Steve
>
> diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
> index dd9955f45774..5cdd9bc5c385 100755
> --- a/scripts/link-vmlinux.sh
> +++ b/scripts/link-vmlinux.sh
> @@ -400,9 +400,6 @@ if [ -n "${CONFIG_DEBUG_INFO_BTF}" -a -n "${CONFIG_BPF}" ]; then
> ${RESOLVE_BTFIDS} vmlinux
> fi
>
> -info SYSMAP System.map
> -mksysmap vmlinux System.map
> -
> if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then
> info SORTTAB vmlinux
> if ! sorttable vmlinux; then
> @@ -411,6 +408,9 @@ if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then
> fi
> fi
>
> +info SYSMAP System.map
> +mksysmap vmlinux System.map
> +
> # step a (see comment above)
> if [ -n "${CONFIG_KALLSYMS}" ]; then
> mksysmap ${kallsyms_vmlinux} .tmp_System.map

2022-01-14 06:42:21

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build failure after merge of the ftrace tree

Hi Steve

On Thu, 13 Jan 2022 22:50:48 -0500 Steven Rostedt <[email protected]> wrote:
>
> On Fri, 14 Jan 2022 14:34:18 +1100
> Stephen Rothwell <[email protected]> wrote:
>
> > > Does it fail on anything else?
> >
> > This is the first build I do after merging each tree, so I don't know
> > about others. I may be able to do some testing later today (after
> > linux-next is released).
>
> Could you see if this fixes it? This is a revert of part of the patch.
> Yinan, was there a reason you moved this code?

It is my fault, sorry. I got the merge resolution wrong and managed to
remove both copies of:

info SYSMAP System.map
mksysmap vmlinux System.map

putting it back before

if [ -n "${CONFIG_BUILDTIME_TABLE_SORT}" ]; then

makes it work!

I am so sorry. I will fix up my merge resolution for Monday.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (488.00 B)
OpenPGP digital signature