Re: [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 1/28/21 12:05 PM, Souptick Joarder wrote:
On Tue, Jan 26, 2021 at 8:46 AM kernel test robot <lkp@xxxxxxxxx> wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   59fa6a163ffabc1bf25c5e0e33899e268a96d3cc
commit: 9d93a9e8aab3f82b6742dd034a6a81d4025cd82e [3035/6048] drivers/soc/litex: move generic accessors to litex.h
config: sh-randconfig-r025-20210125 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
         chmod +x ~/bin/make.cross
         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=9d93a9e8aab3f82b6742dd034a6a81d4025cd82e
         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
         git fetch --no-tags linux-next master
         git checkout 9d93a9e8aab3f82b6742dd034a6a81d4025cd82e
         # save the attached .config to linux build tree
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
This file exists and required are also enabled.

Hi Souptick,

The issue is related to ARCH sh if ftrace enabled in kconfig file:

$ make CROSS_COMPILE=sh4-linux- ARCH=sh M=drivers/soc/litex
  CC [M]  drivers/soc/litex/litex_soc_ctrl.o
sh4-linux-objcopy: Unable to change endianness of input file(s)
sh4-linux-ld: cannot find drivers/soc/litex/.tmp_gl_litex_soc_ctrl.o: No such file or directory sh4-linux-objcopy: 'drivers/soc/litex/.tmp_mx_litex_soc_ctrl.o': No such file rm: cannot remove 'drivers/soc/litex/.tmp_gl_litex_soc_ctrl.o': No such file or directory rm: cannot remove 'drivers/soc/litex/.tmp_mx_litex_soc_ctrl.o': No such file or directory
sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
WARNING: Symbol version dump "Module.symvers" is missing.
         Modules may not have dependencies or modversions.
  MODPOST drivers/soc/litex/Module.symvers
drivers/soc/litex/litex_soc_ctrl.o: No such file or directory
make[1]: *** [scripts/Makefile.modpost:111: drivers/soc/litex/Module.symvers] Error 1
make: *** [Makefile:1709: modules] Error 2

and the below change can fix it.

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 56c801502b9a..867860ea57da 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -265,7 +265,11 @@ if ($arch eq "x86_64") {

     # force flags for this arch
     $ld .= " -m shlelf_linux";
-    $objcopy .= " -O elf32-sh-linux";
+    if ($endian eq "big") {
+        $objcopy .= " -O elf32-shbig-linux";
+    } else {
+        $objcopy .= " -O elf32-sh-linux";
+    }

 } elsif ($arch eq "powerpc") {
     my $ldemulation;

Best Regards,
Rong Chen





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux