Skip to contentSkip to conversation

linux-next: build failure after merge of the ftrace tree

DISCUSSION Stephen Rothwell 3 participants 11 messages Jan 12, 2022 – Jan 14, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 4 lines · On Wed, 12 Jan 2022 11:31:03 +1100 Stephen Rothwell <[email protected]>…

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

Quoted 8 lines

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw
Quoted 10 lines · On Fri, 14 Jan 2022 12:02:40 +1100 Stephen Rothwell <[email protected]>…

Hi all,

Quoted 7 lines · On Wed, 12 Jan 2022 11:31:03 +1100 Stephen Rothwell <[email protected]>…

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

Quoted 8 lines
Quoted 5 lines

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

#3 lore raw
In reply to Stephen Rothwell
Quoted 10 lines · On Fri, 14 Jan 2022 12:02:40 +1100 Stephen Rothwell <[email protected]>…

Hi all,

Quoted 7 lines · On Wed, 12 Jan 2022 11:31:03 +1100 Stephen Rothwell <[email protected]>…

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

Quoted 8 lines
Quoted 5 lines

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

#4 lore raw

Hi Steve,

Quoted 3 lines · 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.

Quoted 2 lines

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#5 lore raw

Hi Steve,

Quoted 9 lines · On Fri, 14 Jan 2022 13:58:08 +1100 Stephen Rothwell <[email protected]>…
Quoted 3 lines · 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

Quoted 7 lines

I am doing a native build on ppc64le.

Quoted 2 lines

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#6 lore raw
Quoted 14 lines · On Fri, 14 Jan 2022 14:02:58 +1100 Stephen Rothwell <[email protected]>…

Hi Steve,

Quoted 11 lines · On Fri, 14 Jan 2022 13:58:08 +1100 Stephen Rothwell <[email protected]>…
Quoted 3 lines · 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.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

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

#7 lore raw

Hi Steve,

Quoted 3 lines · 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 :-(

Quoted 2 lines

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
Quoted 1 line

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).

Signature · 2 lines
Cheers,
Stephen Rothwell
#8 lore raw
Quoted 5 lines · On Fri, 14 Jan 2022 14:34:18 +1100 Stephen Rothwell <[email protected]>…
Quoted 1 line

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

scripts/link-vmlinux.sh +3 -3
index dd9955f45774..5cdd9bc5c385 100755
@@ -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
#9 lore raw

Hi, steven

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

Quoted 38 lines · Steven Rostedt
Quoted 5 lines · On Fri, 14 Jan 2022 14:34:18 +1100 Stephen Rothwell <[email protected]>…
Quoted 1 line

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

scripts/link-vmlinux.sh +3 -3
index dd9955f45774..5cdd9bc5c385 100755
@@ -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
#10 lore raw
In reply to Steven Rostedt

Hi Steve

Quoted 4 lines · 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:

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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.

Signature · 2 lines
Cheers,
Stephen Rothwell