Skip to contentSkip to conversation

stable build: 203 builds: 4 failed, 199 passed, 5 errors, 41 warnings (v4.10.1)

DISCUSSION Arnd Bergmann 5 participants 14 messages Feb 28, 2017 – Mar 16, 2017 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line · kernelci.org bot

stable build: 203 builds: 4 failed, 199 passed, 5 errors, 41 warnings

A lot of fixes for these build problems have now landed in mainline, and we could backport them as soon as they are considered stable enough. If all of these make it into stable, we should have a clean build on MIPS and ARM, and only the KASAN warnings remaining x86 and arm64.

Quoted 5 lines

capcella_defconfig (mips) — PASS, 0 errors, 1 warning, 0 section mismatches

Warnings:
crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]

7d6e91050267 ("crypto: improve gcc optimization flags for serpent and wp512")

Quoted 14 lines

defconfig+CONFIG_KASAN=y (x86) — PASS, 0 errors, 5 warnings, 0 section mismatches

Warnings:
drivers/tty/vt/keyboard.c:1470:1: warning: the frame size of 2344 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:1410:1: warning: the frame size of 2232 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:4389:1: warning: the frame size of 2232 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:5689:1: warning: the frame size of 2064 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:1895:1: warning: the frame size of 3720 bytes is larger than 2048 bytes [-Wframe-larger-than=]

I'm still working on the fix, the same thing happens in mainline.

Quoted 5 lines

Warnings:
arch/mips/configs/ip22_defconfig:70:warning: symbol value 'm' invalid for NF_CT_PROTO_DCCP
arch/mips/configs/ip22_defconfig:71:warning: symbol value 'm' invalid for NF_CT_PROTO_UDPLITE

9ddc16ad8e0b ("MIPS: Update defconfigs for NF_CT_PROTO_DCCP/UDPLITE change")

Quoted 7 lines

ip27_defconfig (mips) — FAIL, 4 errors, 1 warning, 0 section mismatches

Errors:
arch/mips/include/asm/mach-generic/spaces.h:28:0: error: "CAC_BASE" redefined [-Werror] arch/mips/include/asm/mach-generic/spaces.h:28:0: error: "CAC_BASE" redefined [-Werror]

1742ac265046 ("MIPS: VDSO: avoid duplicate CAC_BASE definition")

Quoted 5 lines

drivers/net/ethernet/qlogic/qlge/qlge_main.c:4819:1: error: insn does not satisfy its constraints:
drivers/net/ethernet/qlogic/qlge/qlge_main.c:4819:1: internal compiler
error: in extract_constrain_insn, at recog.c:2190
Warnings:

b61764946839 ("MIPS: ip27: Disable qlge driver in defconfig")

Quoted 2 lines

arch/mips/configs/ip27_defconfig:136:warning: symbol value 'm' invalid for SCSI_DH

ea58fca1842a ("MIPS: Update ip27_defconfig for SCSI_DH change")

Quoted 5 lines

ip28_defconfig (mips) — FAIL, 1 error, 0 warnings, 0 section mismatches

Errors:
arch/mips/sgi-ip22/Platform:29: *** gcc doesn't support needed option -mr10k-cache-barrier=store. Stop.

23ca9b522383 ("MIPS: ip22: Fix ip28 build for modern gcc")

Quoted 5 lines

lemote2f_defconfig (mips) — PASS, 0 errors, 2 warnings, 0 section mismatches

Warnings:
arch/mips/configs/lemote2f_defconfig:42:warning: symbol value 'm' invalid for CPU_FREQ_STAT

b3f6046186ef ("MIPS: Update lemote2f_defconfig for CPU_FREQ_STAT change")

Quoted 6 lines

msp71xx_defconfig (mips) — PASS, 0 errors, 1 warning, 0 section mismatches

Warnings:
drivers/mtd/maps/pmcmsp-flash.c:149:30: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

906b268477bc ("mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy")

Quoted 7 lines

rt305x_defconfig (mips) — PASS, 0 errors, 5 warnings, 0 section mismatches

Warnings:
arch/mips/ralink/prom.c:70:2: warning: 'argc' is used uninitialized in this function [-Wuninitialized]
arch/mips/ralink/prom.c:70:2: warning: 'argv' is used uninitialized in this function [-Wuninitialized]

9c48568b3692 ("MIPS: ralink: Cosmetic change to prom_init().")

Quoted 4 lines

arch/mips/ralink/timer.c:104:13: warning: 'rt_timer_disable' defined but not used [-Wunused-function]
arch/mips/ralink/timer.c:74:13: warning: 'rt_timer_free' defined but not used [-Wunused-function]

d92240d12a9c ("MIPS: ralink: Remove unused timer functions")

Quoted 2 lines

arch/mips/ralink/rt305x.c:92:13: warning: 'rt305x_wdt_reset' defined but not used [-Wunused-function]

886f9c69fc68 ("MIPS: ralink: Remove unused rt*_wdt_reset functions")

Arnd

maintainer
#2 lore raw
Quoted 104 lines · Arnd Bergmann
Quoted 1 line · kernelci.org bot

stable build: 203 builds: 4 failed, 199 passed, 5 errors, 41 warnings

A lot of fixes for these build problems have now landed in mainline, and we could backport them as soon as they are considered stable enough. If all of these make it into stable, we should have a clean build on MIPS and ARM, and only the KASAN warnings remaining x86 and arm64.

Quoted 5 lines

capcella_defconfig (mips) — PASS, 0 errors, 1 warning, 0 section mismatches

Warnings:
crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]

7d6e91050267 ("crypto: improve gcc optimization flags for serpent and wp512")

Quoted 14 lines

defconfig+CONFIG_KASAN=y (x86) — PASS, 0 errors, 5 warnings, 0 section mismatches

Warnings:
drivers/tty/vt/keyboard.c:1470:1: warning: the frame size of 2344 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:1410:1: warning: the frame size of 2232 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:4389:1: warning: the frame size of 2232 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:5689:1: warning: the frame size of 2064 bytes is larger than 2048 bytes [-Wframe-larger-than=] net/wireless/nl80211.c:1895:1: warning: the frame size of 3720 bytes is larger than 2048 bytes [-Wframe-larger-than=]

I'm still working on the fix, the same thing happens in mainline.

Quoted 5 lines

Warnings:
arch/mips/configs/ip22_defconfig:70:warning: symbol value 'm' invalid for NF_CT_PROTO_DCCP
arch/mips/configs/ip22_defconfig:71:warning: symbol value 'm' invalid for NF_CT_PROTO_UDPLITE

9ddc16ad8e0b ("MIPS: Update defconfigs for NF_CT_PROTO_DCCP/UDPLITE change")

Quoted 7 lines

ip27_defconfig (mips) — FAIL, 4 errors, 1 warning, 0 section mismatches

Errors:
arch/mips/include/asm/mach-generic/spaces.h:28:0: error: "CAC_BASE" redefined [-Werror] arch/mips/include/asm/mach-generic/spaces.h:28:0: error: "CAC_BASE" redefined [-Werror]

1742ac265046 ("MIPS: VDSO: avoid duplicate CAC_BASE definition")

Quoted 5 lines

drivers/net/ethernet/qlogic/qlge/qlge_main.c:4819:1: error: insn does not satisfy its constraints:
drivers/net/ethernet/qlogic/qlge/qlge_main.c:4819:1: internal compiler
error: in extract_constrain_insn, at recog.c:2190
Warnings:

b61764946839 ("MIPS: ip27: Disable qlge driver in defconfig")

Quoted 2 lines

arch/mips/configs/ip27_defconfig:136:warning: symbol value 'm' invalid for SCSI_DH

ea58fca1842a ("MIPS: Update ip27_defconfig for SCSI_DH change")

Quoted 5 lines

ip28_defconfig (mips) — FAIL, 1 error, 0 warnings, 0 section mismatches

Errors:
arch/mips/sgi-ip22/Platform:29: *** gcc doesn't support needed option -mr10k-cache-barrier=store. Stop.

23ca9b522383 ("MIPS: ip22: Fix ip28 build for modern gcc")

Quoted 5 lines

lemote2f_defconfig (mips) — PASS, 0 errors, 2 warnings, 0 section mismatches

Warnings:
arch/mips/configs/lemote2f_defconfig:42:warning: symbol value 'm' invalid for CPU_FREQ_STAT

b3f6046186ef ("MIPS: Update lemote2f_defconfig for CPU_FREQ_STAT change")

Quoted 6 lines

msp71xx_defconfig (mips) — PASS, 0 errors, 1 warning, 0 section mismatches

Warnings:
drivers/mtd/maps/pmcmsp-flash.c:149:30: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

906b268477bc ("mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy")

Quoted 7 lines

rt305x_defconfig (mips) — PASS, 0 errors, 5 warnings, 0 section mismatches

Warnings:
arch/mips/ralink/prom.c:70:2: warning: 'argc' is used uninitialized in this function [-Wuninitialized]
arch/mips/ralink/prom.c:70:2: warning: 'argv' is used uninitialized in this function [-Wuninitialized]

9c48568b3692 ("MIPS: ralink: Cosmetic change to prom_init().")

Quoted 4 lines

arch/mips/ralink/timer.c:104:13: warning: 'rt_timer_disable' defined but not used [-Wunused-function]
arch/mips/ralink/timer.c:74:13: warning: 'rt_timer_free' defined but not used [-Wunused-function]

Quoted 6 lines

d92240d12a9c ("MIPS: ralink: Remove unused timer functions")

Quoted 2 lines

arch/mips/ralink/rt305x.c:92:13: warning: 'rt305x_wdt_reset' defined but not used [-Wunused-function]

886f9c69fc68 ("MIPS: ralink: Remove unused rt*_wdt_reset functions")

All now queued up in the stable trees, thanks.

greg k-h

#3 lore raw
Quoted 2 lines · gregkh

All now queued up in the stable trees, thanks.

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

https://storage.kernelci.org/next/next-20170309/x86-allmodconfig+CONFIG_OF=n/build.log

The same warning is referenced in this email:
http://lkml.iu.edu/hypermail/linux/kernel/1612.0/04384.html

but I can't figure out what patch is supposed to address it, or if that patch made it into mainline.

Curiously, only allmodconfig+CONFIG_OF=n seems to be broken, not plain allmodconfig, maybe this could be related to rebuilding in the same object tree without "make clean". Also, all recent kernels (since December) until next-20170309 seem to be affected, but it does not show up on the latest linux-next (next-20170310). I don't seen anything in next-20170310 that could have addressed it, so it may also be a coincidence that we don't hit a certain race condition during build this time.

Adding Ingo, Arnaldo and Stephen to Cc, maybe they know what is going on here.

Arnd

#4 lore raw

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 9 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

- Arnaldo

Quoted 20 lines

https://storage.kernelci.org/next/next-20170309/x86-allmodconfig+CONFIG_OF=n/build.log

The same warning is referenced in this email:
http://lkml.iu.edu/hypermail/linux/kernel/1612.0/04384.html

but I can't figure out what patch is supposed to address it, or if that patch made it into mainline.

Curiously, only allmodconfig+CONFIG_OF=n seems to be broken, not plain allmodconfig, maybe this could be related to rebuilding in the same object tree without "make clean". Also, all recent kernels (since December) until next-20170309 seem to be affected, but it does not show up on the latest linux-next (next-20170310). I don't seen anything in next-20170310 that could have addressed it, so it may also be a coincidence that we don't hit a certain race condition during build this time.

Adding Ingo, Arnaldo and Stephen to Cc, maybe they know what is going on here.

Arnd

#5 lore raw
Quoted 5 lines · Arnaldo Carvalho de Melo

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 4 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Quoted 7 lines
Quoted 5 lines

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

jirka

Quoted 23 lines

- Arnaldo

Quoted 20 lines

https://storage.kernelci.org/next/next-20170309/x86-allmodconfig+CONFIG_OF=n/build.log

The same warning is referenced in this email:
http://lkml.iu.edu/hypermail/linux/kernel/1612.0/04384.html

but I can't figure out what patch is supposed to address it, or if that patch made it into mainline.

Curiously, only allmodconfig+CONFIG_OF=n seems to be broken, not plain allmodconfig, maybe this could be related to rebuilding in the same object tree without "make clean". Also, all recent kernels (since December) until next-20170309 seem to be affected, but it does not show up on the latest linux-next (next-20170310). I don't seen anything in next-20170310 that could have addressed it, so it may also be a coincidence that we don't hit a certain race condition during build this time.

Adding Ingo, Arnaldo and Stephen to Cc, maybe they know what is going on here.

Arnd

#6 lore raw
Quoted 12 lines · Jiri Olsa
Quoted 11 lines · Arnaldo Carvalho de Melo

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 9 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Quoted 8 lines
Quoted 1 line

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

Arnd

#7 lore raw
Quoted 18 lines · Arnd Bergmann
Quoted 17 lines · Jiri Olsa
Quoted 5 lines · Arnaldo Carvalho de Melo

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 4 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Quoted 7 lines
Quoted 5 lines

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

Quoted 6 lines
Quoted 3 lines

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

jirka

#8 lore raw
Quoted 19 lines · Jiri Olsa
Quoted 18 lines · Arnd Bergmann
Quoted 17 lines · Jiri Olsa
Quoted 5 lines · Arnaldo Carvalho de Melo

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 4 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Quoted 7 lines
Quoted 5 lines

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

Arnd

#9 lore raw

Em Thu, Mar 16, 2017 at 03:39:36PM +0100, Arnd Bergmann escreveu:

Quoted 24 lines · Jiri Olsa
Quoted 23 lines · Arnd Bergmann
Quoted 22 lines · Jiri Olsa
Quoted 20 lines · Arnaldo Carvalho de Melo
Quoted 5 lines

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 4 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Quoted 7 lines
Quoted 5 lines

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

Humm, can't we have just one fixdep?

- Arnaldo

#10 lore raw
Quoted 33 lines · Arnaldo Carvalho de Melo

Em Thu, Mar 16, 2017 at 03:39:36PM +0100, Arnd Bergmann escreveu:

Quoted 32 lines · Jiri Olsa
Quoted 19 lines · Arnd Bergmann
Quoted 18 lines · Jiri Olsa
Quoted 17 lines · Arnaldo Carvalho de Melo
Quoted 5 lines

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 4 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Quoted 7 lines
Quoted 5 lines

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

right, the thing is that objtool is standalone application like perf, and before their builds can go the 'fixdep' needs to be there.. that's a condition to use the tools/build framework

not sure how offensive it'd be to current Makefiles if we come with some generalized code to do that.. I'll think about it, but I think we might be better of the way we are now

Quoted 2 lines

Humm, can't we have just one fixdep?

we have.. it's just the matter who will build it first ;-)

jirka

#11 lore raw

Em Thu, Mar 16, 2017 at 04:17:04PM +0100, Jiri Olsa escreveu:

Quoted 18 lines · Arnaldo Carvalho de Melo
Quoted 12 lines

Em Thu, Mar 16, 2017 at 03:39:36PM +0100, Arnd Bergmann escreveu:

Quoted 11 lines · Jiri Olsa
Quoted 6 lines · Arnd Bergmann
Quoted 3 lines · Jiri Olsa

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

right, the thing is that objtool is standalone application like perf, and before their builds can go the 'fixdep' needs to be there.. that's a condition to use the tools/build framework

Quoted 7 lines

not sure how offensive it'd be to current Makefiles if we come with some generalized code to do that.. I'll think about it, but I think we might be better of the way we are now

Quoted 1 line

Humm, can't we have just one fixdep?

we have.. it's just the matter who will build it first ;-)

Ok, I haven't said "can't we have just one fixdep?", what I really said was "can't we make sure we don't have races building it?" ;-)

- Arnaldo

#12 lore raw
Quoted 23 lines · Arnaldo Carvalho de Melo

Em Thu, Mar 16, 2017 at 04:17:04PM +0100, Jiri Olsa escreveu:

Quoted 21 lines · Arnaldo Carvalho de Melo
Quoted 12 lines

Em Thu, Mar 16, 2017 at 03:39:36PM +0100, Arnd Bergmann escreveu:

Quoted 11 lines · Jiri Olsa
Quoted 6 lines · Arnd Bergmann
Quoted 3 lines · Jiri Olsa

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

right, the thing is that objtool is standalone application like perf, and before their builds can go the 'fixdep' needs to be there.. that's a condition to use the tools/build framework

not sure how offensive it'd be to current Makefiles if we come with some generalized code to do that.. I'll think about it, but I think we might be better of the way we are now

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Humm, can't we have just one fixdep?

we have.. it's just the matter who will build it first ;-)

Ok, I haven't said "can't we have just one fixdep?", what I really said was "can't we make sure we don't have races building it?" ;-)

I hope so ;-) but so far I cannot think of anything better than what was introduced in:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

jirka

#13 lore raw
In reply to Arnd Bergmann
Quoted 27 lines · Arnd Bergmann
Quoted 26 lines · Jiri Olsa
Quoted 24 lines · Arnd Bergmann
Quoted 12 lines · Jiri Olsa
Quoted 11 lines · Arnaldo Carvalho de Melo

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 9 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Quoted 8 lines
Quoted 1 line

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

Quoted 7 lines
Quoted 1 line

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

Arnd

i came up quickly with attached change.. not too much tested, but basically it's the idea applied to objtool

looks like we could generalize some of those pieces, I'll try to look at it next week if nobody beats me to it ;-)

thanks,
jirka

---

tools/lib/subcmd/Makefile +33 -2
index 3d1c3b5b5150..a00942fbe43b 100644
@@ -1,6 +1,18 @@
 include ../../scripts/Makefile.include
 include ../../scripts/utilities.mak		# QUIET_CLEAN
 
+all:
+
+config := 1
+
+NON_CONFIG_TARGETS := clean
+
+ifdef MAKECMDGOALS
+ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
+  config := 0
+endif
+endif
+
 ifeq ($(srctree),)
 srctree := $(patsubst %/,%,$(dir $(CURDIR)))
 srctree := $(patsubst %/,%,$(dir $(srctree)))
@@ -45,7 +57,24 @@ all:
 export srctree OUTPUT CC LD CFLAGS V
 include $(srctree)/tools/build/Makefile.include
 
-all: fixdep $(LIBFILE)
+ifdef FIXDEP
+  force_fixdep := 0
+else
+  force_fixdep := $(config)
+endif
+
+ifeq ($(force_fixdep),1)
+goals := $(filter-out all sub-make, $(MAKECMDGOALS))
+
+$(goals) all: sub-make
+
+sub-make: fixdep
+	$(Q)$(MAKE) FIXDEP=1 -f Makefile $(goals)
+
+else # force_fixdep
+
+
+all: $(LIBFILE)
 
 $(SUBCMD_IN): FORCE
 	@$(MAKE) $(build)=libsubcmd
@@ -59,4 +88,6 @@ clean:
 
 FORCE:
 
-.PHONY: clean FORCE
+endif # force_fixdep
+
+.PHONY: clean FORCE sub-make
tools/objtool/Makefile +35 -5
index 27e019c09bd2..8c78a9114ab5 100644
@@ -1,6 +1,18 @@
 include ../scripts/Makefile.include
 include ../scripts/Makefile.arch
 
+all:
+
+config := 1
+
+NON_CONFIG_TARGETS := clean
+
+ifdef MAKECMDGOALS
+ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
+  config := 0
+endif
+endif
+
 ifeq ($(ARCH),x86_64)
 ARCH := x86
 endif
@@ -22,8 +34,6 @@ LIBSUBCMD		= $(LIBSUBCMD_OUTPUT)libsubcmd.a
 OBJTOOL    := $(OUTPUT)objtool
 OBJTOOL_IN := $(OBJTOOL)-in.o
 
-all: $(OBJTOOL)
-
 INCLUDES := -I$(srctree)/tools/include -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi
 CFLAGS   += -Wall -Werror $(EXTRA_WARNINGS) -fomit-frame-pointer -O2 -g $(INCLUDES)
 LDFLAGS  += -lelf $(LIBSUBCMD)
@@ -36,7 +46,25 @@ AWK = awk
 export srctree OUTPUT CFLAGS SRCARCH AWK
 include $(srctree)/tools/build/Makefile.include
 
-$(OBJTOOL_IN): fixdep FORCE
+ifdef FIXDEP
+  force_fixdep := 0
+else
+  force_fixdep := $(config)
+endif
+
+ifeq ($(force_fixdep),1)
+goals := $(filter-out all sub-make, $(MAKECMDGOALS))
+
+$(goals) all: sub-make
+
+sub-make: fixdep
+	$(Q)$(MAKE) FIXDEP=1 -f Makefile $(goals)
+
+else # force_fixdep
+
+all: $(OBJTOOL)
+
+$(OBJTOOL_IN): FORCE
 	@$(MAKE) $(build)=objtool
 
 # Busybox's diff doesn't have -I, avoid warning in that case
@@ -55,7 +83,7 @@ $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN)
 	$(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@
 
 
-$(LIBSUBCMD): fixdep FORCE
+$(LIBSUBCMD): FORCE
 	$(Q)$(MAKE) -C $(SUBCMD_SRCDIR) OUTPUT=$(LIBSUBCMD_OUTPUT)
 
 clean:
@@ -65,4 +93,6 @@ clean:
 
 FORCE:
 
-.PHONY: clean FORCE
+endif # force_fixdep
+
+.PHONY: clean FORCE sub-make
#14 lore raw
In reply to Arnd Bergmann
Quoted 24 lines · Arnd Bergmann
Quoted 23 lines · Jiri Olsa
Quoted 22 lines · Arnd Bergmann
Quoted 20 lines · Jiri Olsa
Quoted 5 lines · Arnaldo Carvalho de Melo

Em Wed, Mar 15, 2017 at 02:15:22PM +0100, Arnd Bergmann escreveu:

Quoted 4 lines · gregkh
Quoted 2 lines

All now queued up in the stable trees, thanks.

Quoted 7 lines
Quoted 5 lines

Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me.

/bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmodconfig+CONFIG_OF=n/label/builder/next/build-x86/tools/objtool//fixdep:
Permission denied

Jiri? Josh?

hum, looks like it imight be related to this fix we did for perf:
abb26210a395 perf tools: Force fixdep compilation at the start of the build

it's forcing fixdep to be build as first.. having it as a simple dependency (which AFAICS is objtool case), the make -jX occasionaly raced on high cpu servers, and executed unfinished binary, hence the permission fail

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

It's probably another variation of this bug, but the commit you cite got merged into 4.10-rc1, while the problem still persists in mainline (4.11-rc2+).

the problem is in objtool build right? the fix was for perf build

Ah, got it. Yes, that must be it then. I supposed we coul duplicate what you did for perf in objtool, but a cleaner way would be to generalize it for all of tools/, right?

This is a shot in the dark, since I don't have a way to recreate, but can you try the following patch? This should make sure that objtool only tries to build fixdep once.

tools/build/Makefile.include +3 -1
index ad22e4e..179f4f0 100644
@@ -1,6 +1,8 @@
 build := -f $(srctree)/tools/build/Makefile.build dir=. obj
 
-fixdep:
+fixdep: $(OUTPUT)fixdep
+
+$(OUTPUT)fixdep:
 	$(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep
 
 .PHONY: fixdep