linux-next: build failure after merge of the block tree
Subsystems (2)
Hi Nicolas,
After merging the block tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
ERROR: ".blk_queue_write_cache" [drivers/block/virtio_blk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/ps3disk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/nbd.ko] undefined!
Caused by commit
089095b8eef9 ("kbuild: better abstract vmlinux sequential prerequisites")
from the kbuild-pite tree.
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 9 lines · Stephen Rothwell
Hi Nicolas,
After merging the block tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:ERROR: ".blk_queue_write_cache" [
drivers/block/virtio_blk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/ps3disk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/nbd.ko] undefined!
Quoted 7 lines
Caused by commit
089095b8eef9("kbuild: better abstract vmlinux sequential prerequisites")from the kbuild-pite tree.
I have reverted that commit for today.
I can't reproduce this with today's linux-next and the revert reverted. Also, CONFIG_TRIM_UNUSED_KSYMS is disabled in the defconfig as expected, so I have no idea what went wrong.
Michal
Hi Michal,
Quoted 15 lines · On Tue, 26 Apr 2016 15:30:01 +0200 Michal Marek <[email protected]> wrote:
Quoted 13 lines · Stephen Rothwell
Hi Nicolas,
After merging the block tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:ERROR: ".blk_queue_write_cache" [
drivers/block/virtio_blk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/ps3disk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/nbd.ko] undefined!Caused by commit
089095b8eef9("kbuild: better abstract vmlinux sequential prerequisites")
Quoted 7 lines
Quoted 3 lines
from the kbuild-pite tree.
I have reverted that commit for today.
I can't reproduce this with today's linux-next and the revert reverted. Also,
CONFIG_TRIM_UNUSED_KSYMSis disabled in the defconfig as expected, so I have no idea what went wrong.
Yeah, I couldn't figure it out either, but the revert made it work for me. Could it be that I do incremental builds - so today, I would have built commit b087ce990625 ("Merge remote-tracking branch 'input/next'") which worked, then commit 9d67df654092 ("Merge remote-tracking branch 'block/for-next'") which failed.
The only suspect code in the block tree has been there since April 13 with no build failures.
Anyway, I can see how things go tomorrow, but I hate it when things seem fragile like this.
Signature · 2 lines
Cheers, Stephen Rothwell
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 32 lines · Stephen Rothwell
Hi Michal,
Quoted 15 lines · On Tue, 26 Apr 2016 15:30:01 +0200 Michal Marek <[email protected]> wrote:
Quoted 13 lines · Stephen Rothwell
Hi Nicolas,
After merging the block tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:ERROR: ".blk_queue_write_cache" [
drivers/block/virtio_blk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/ps3disk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/nbd.ko] undefined!Caused by commit
089095b8eef9("kbuild: better abstract vmlinux sequential prerequisites")Quoted 7 lines
Quoted 3 lines
from the kbuild-pite tree.
I have reverted that commit for today.
I can't reproduce this with today's linux-next and the revert reverted. Also,
CONFIG_TRIM_UNUSED_KSYMSis disabled in the defconfig as expected, so I have no idea what went wrong.Yeah, I couldn't figure it out either, but the revert made it work for me. Could it be that I do incremental builds - so today, I would have built commit
b087ce990625("Merge remote-tracking branch 'input/next'") which worked, then commit9d67df654092("Merge remote-tracking branch 'block/for-next'") which failed.
Quoted 5 lines
The only suspect code in the block tree has been there since April 13 with no build failures.
Anyway, I can see how things go tomorrow, but I hate it when things seem fragile like this.
If you can reproduce this build failure, could you try a make mrproper and attempt it again? I, too, would like to find an explanation and a way to reproduce.
Nicolas
Quoted 37 lines · Nicolas Pitre
Quoted 35 lines · Stephen Rothwell
Hi Michal,
Quoted 15 lines · On Tue, 26 Apr 2016 15:30:01 +0200 Michal Marek <[email protected]> wrote:
Quoted 13 lines · Stephen Rothwell
Hi Nicolas,
After merging the block tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:ERROR: ".blk_queue_write_cache" [
drivers/block/virtio_blk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/ps3disk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/nbd.ko] undefined!Caused by commit
089095b8eef9("kbuild: better abstract vmlinux sequential prerequisites")Quoted 7 lines
Quoted 3 lines
from the kbuild-pite tree.
I have reverted that commit for today.
I can't reproduce this with today's linux-next and the revert reverted. Also,
CONFIG_TRIM_UNUSED_KSYMSis disabled in the defconfig as expected, so I have no idea what went wrong.Yeah, I couldn't figure it out either, but the revert made it work for me. Could it be that I do incremental builds - so today, I would have built commit
b087ce990625("Merge remote-tracking branch 'input/next'") which worked, then commit9d67df654092("Merge remote-tracking branch 'block/for-next'") which failed.The only suspect code in the block tree has been there since April 13 with no build failures.
Quoted 6 lines
Quoted 2 lines
Anyway, I can see how things go tomorrow, but I hate it when things seem fragile like this.
If you can reproduce this build failure, could you try a make mrproper and attempt it again? I, too, would like to find an explanation and a way to reproduce.
I just took a look at it, and it doesn't make any sense to me...
Signature · 1 line
Jens Axboe
Hi Nicolas,
Quoted 4 lines · On Tue, 26 Apr 2016 10:40:57 -0400 (EDT) Nicolas Pitre…
If you can reproduce this build failure, could you try a make mrproper and attempt it again? I, too, would like to find an explanation and a way to reproduce.
I reset my build tree to commit 9d67df654092 ("Merge remote-tracking branch 'block/for-next'") and the build failed with:
ERROR: ".local_clock" [drivers/vhost/vhost_net.ko] undefined!
ERROR: ".local_clock" [drivers/misc/cxl/cxl.ko] undefined!
:-(
So I did a "make mrproper" and did the build again.
That built correctly.
Then I reset the tree to commit b087ce990625 ("Merge remote-tracking branch 'input/next'"), did a "make mrproper", "make ppc64_defconfig", "make" and that built correctly. So I fast forwarded back to the block tree merge and did "make ppc64_defconfig" and "make" and that failed with:
ERROR: ".blk_queue_write_cache" [drivers/block/virtio_blk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/ps3disk.ko] undefined!
ERROR: ".blk_queue_write_cache" [drivers/block/nbd.ko] undefined!
Doing the revert made it build, then doing "reset --hard HEAD^" (i.e. undoing the revert) also kept the build working.
These builds all have a separate object directory and are powerpc64le hosted powerpc64be cross builds and use "make -j80".
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 11 lines · Stephen Rothwell
Hi Nicolas,
Quoted 4 lines · On Tue, 26 Apr 2016 10:40:57 -0400 (EDT) Nicolas Pitre…
If you can reproduce this build failure, could you try a make mrproper and attempt it again? I, too, would like to find an explanation and a way to reproduce.
I reset my build tree to commit
9d67df654092("Merge remote-tracking branch 'block/for-next'") and the build failed with:
Quoted 9 lines
ERROR: ".local_clock" [
drivers/vhost/vhost_net.ko] undefined!
ERROR: ".local_clock" [drivers/misc/cxl/cxl.ko] undefined!:-(
So I did a "make mrproper" and did the build again.
That built correctly.
[...]
OK! After digging and diffing through 750 megabytes of make debug logs I finally found the explanation. The if_changed directive is useless against phony targets.
@Stephen: could you replace the revert with the patch below in your tree?
@Michal: could you fold the patch below into commit 2441e78b19 in your tree?
Makefile +1 -1
@@ -953,7 +953,7 @@ include/generated/autoksyms.h: FORCE cmd_link-vmlinux = $(CONFIG_SHELL) $< $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) quiet_cmd_link-vmlinux = LINK $@ -vmlinux: scripts/link-vmlinux.sh vmlinux_prereq FORCE +vmlinux: scripts/link-vmlinux.sh vmlinux_prereq $(vmlinux-deps) FORCE +$(call if_changed,link-vmlinux) # Build samples along the rest of the kernel
Hi Nicolas,
Quoted 4 lines · On Tue, 26 Apr 2016 16:48:44 -0400 (EDT) Nicolas Pitre…
OK! After digging and diffing through 750 megabytes of make debug logs I finally found the explanation. The
if_changeddirective is useless against phony targets.
Thanks for working this out.
Quoted 1 line
@Stephen: could you replace the revert with the patch below in your tree?
Will do, unless Michal beats me to it.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 24 lines · Nicolas Pitre
Quoted 20 lines · Stephen Rothwell
Hi Nicolas,
Quoted 4 lines · On Tue, 26 Apr 2016 10:40:57 -0400 (EDT) Nicolas Pitre…
If you can reproduce this build failure, could you try a make mrproper and attempt it again? I, too, would like to find an explanation and a way to reproduce.
I reset my build tree to commit
9d67df654092("Merge remote-tracking branch 'block/for-next'") and the build failed with:ERROR: ".local_clock" [
drivers/vhost/vhost_net.ko] undefined!
ERROR: ".local_clock" [drivers/misc/cxl/cxl.ko] undefined!:-(
So I did a "make mrproper" and did the build again.
That built correctly.
[...]
Quoted 7 lines
OK! After digging and diffing through 750 megabytes of make debug logs I finally found the explanation. The
if_changeddirective is useless against phony targets.@Stephen: could you replace the revert with the patch below in your tree?
@Michal: could you fold the patch below into commit
2441e78b19in your tree?
I prefer not to overwrite the topic branches unless necessary and I wanted to credit Stephen, so I committed your patch with a fabricated commit message and your signoff (since you wanted to fold it into a patch that you had already signed off).
Michal
Quoted 29 lines · Michal Marek
Quoted 28 lines · Nicolas Pitre
Quoted 11 lines · Stephen Rothwell
Hi Nicolas,
Quoted 4 lines · On Tue, 26 Apr 2016 10:40:57 -0400 (EDT) Nicolas Pitre…
If you can reproduce this build failure, could you try a make mrproper and attempt it again? I, too, would like to find an explanation and a way to reproduce.
I reset my build tree to commit
9d67df654092("Merge remote-tracking branch 'block/for-next'") and the build failed with:Quoted 9 lines
ERROR: ".local_clock" [
drivers/vhost/vhost_net.ko] undefined!
ERROR: ".local_clock" [drivers/misc/cxl/cxl.ko] undefined!:-(
So I did a "make mrproper" and did the build again.
That built correctly.
[...]
OK! After digging and diffing through 750 megabytes of make debug logs I finally found the explanation. The
if_changeddirective is useless against phony targets.
Quoted 8 lines
Quoted 3 lines
@Stephen: could you replace the revert with the patch below in your tree?
@Michal: could you fold the patch below into commit
2441e78b19in your tree?I prefer not to overwrite the topic branches unless necessary and I wanted to credit Stephen, so I committed your patch with a fabricated commit message and your signoff (since you wanted to fold it into a patch that you had already signed off).
Fine with me.
Nicolas