linux-next: build failure after merge of the ftrace tree
Subsystems (2)
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
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 workaroundI am not sure what caused this - maybe commit
4f1f18311591("scripts: ftrace - move the sort-processing inftrace_init")I have used the ftrace tree from next-20220111 for today.
I am still getting this.
Signature · 2 lines
Cheers, 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 inftrace_init")I have used the ftrace tree from next-20220111 for today.
I am still getting this.
OK, I'll take a look.
-- Steve
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 inftrace_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
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
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
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.37I 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
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
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
@@ -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
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@@ -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
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