Re: microblaze-linux-ld: cannot find sound/soc/jz4740/jz4740-i2s.o: No such file or directory

From: Masahiro Yamada
Date: Thu Aug 23 2018 - 05:49:53 EST


Hi.


2018-08-23 7:40 GMT+09:00 kbuild test robot <lkp@xxxxxxxxx>:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 899fbc33fd775b9dfa363db28f322272920a2196
> commit: 0fbe9a245c60bedebb6dd329966f463bb724450a microblaze: add endianness options to LDFLAGS instead of LD
> date: 4 weeks ago
> config: microblaze-allmodconfig (attached as .config)
> compiler: microblaze-linux-gcc (GCC) 8.1.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 0fbe9a245c60bedebb6dd329966f463bb724450a
> # save the attached .config to linux build tree
> GCC_VERSION=8.1.0 make.cross ARCH=microblaze
>
> All errors (new ones prefixed by >>):
>
>>> microblaze-linux-ld: cannot find sound/soc/jz4740/jz4740-i2s.o: No such file or directory
> --
>>> microblaze-linux-ld: cannot find sound/soc/jz4740/qi_lb60.o: No such file or directory
> --
>>> microblaze-linux-ld: cannot find sound/soc/kirkwood/kirkwood-dma.o: No such file or directory
>>> microblaze-linux-ld: cannot find sound/soc/kirkwood/kirkwood-i2s.o: No such file or directory
> --
>>> microblaze-linux-ld: cannot find sound/soc/kirkwood/armada-370-db.o: No such file or directory
> --
>>> microblaze-linux-ld: cannot find drivers/media/usb/uvc/uvc_driver.o: No such file or directory
>>> microblaze-linux-ld: cannot find drivers/media/usb/uvc/uvc_v4l2.o: No such file or directory
> --
>>> microblaze-linux-ld: cannot find drivers/gpu/drm/vc4/vc4_fence.o: No such file or directory
>>> microblaze-linux-ld: cannot find drivers/gpu/drm/vc4/vc4_gem.o: No such file or directory
> --
>>> microblaze-linux-ld: cannot find drivers/media/pci/cobalt/cobalt-driver.o: No such file or directory
>>> microblaze-linux-ld: cannot find drivers/media/pci/cobalt/cobalt-v4l2.o: No such file or directory
>>> microblaze-linux-ld: cannot find drivers/media/pci/cobalt/cobalt-flash.o: No such file or directory
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation


Thanks for the report.

I will fix this.

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 93b8e24..f5d7612 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -220,7 +220,7 @@ sub_cmd_record_mcount = set -e ; perl
$(srctree)/scripts/recordmcount.pl "$(ARCH
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
"$(if $(CONFIG_64BIT),64,32)" \
"$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \
- "$(LD)" "$(NM)" "$(RM)" "$(MV)" \
+ "$(LD) $(LDFLAGS)" "$(NM)" "$(RM)" "$(MV)" \
"$(if $(part-of-module),1,0)" "$(@)";
recordmcount_source := $(srctree)/scripts/recordmcount.pl
endif # BUILD_C_RECORDMCOUNT





--
Best Regards
Masahiro Yamada