All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
@ 2021-01-26  3:15 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-01-26  3:15 UTC (permalink / raw)
  To: Gabriel Somlo; +Cc: kbuild-all, Linux Memory Management List, Stafford Horne

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

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@intel.com>

All errors (new ones prefixed by >>):

>> sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24272 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
@ 2021-01-26  3:15 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-01-26  3:15 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1348 bytes --]

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@intel.com>

All errors (new ones prefixed by >>):

>> sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24272 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
  2021-01-26  3:15 ` kernel test robot
  (?)
@ 2021-01-28  4:05 ` Souptick Joarder
  2021-02-08  6:29     ` Rong Chen
  -1 siblings, 1 reply; 6+ messages in thread
From: Souptick Joarder @ 2021-01-28  4:05 UTC (permalink / raw)
  To: kernel test robot
  Cc: Gabriel Somlo, kbuild-all, Linux Memory Management List, Stafford Horne

On Tue, Jan 26, 2021 at 8:46 AM kernel test robot <lkp@intel.com> 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@intel.com>
>
> 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.

>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
  2021-01-28  4:05 ` Souptick Joarder
@ 2021-02-08  6:29     ` Rong Chen
  0 siblings, 0 replies; 6+ messages in thread
From: Rong Chen @ 2021-02-08  6:29 UTC (permalink / raw)
  To: Souptick Joarder, kernel test robot
  Cc: Gabriel Somlo, kbuild-all, Linux Memory Management List, Stafford Horne



On 1/28/21 12:05 PM, Souptick Joarder wrote:
> On Tue, Jan 26, 2021 at 8:46 AM kernel test robot <lkp@intel.com> 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@intel.com>
>>
>> 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
@ 2021-02-08  6:29     ` Rong Chen
  0 siblings, 0 replies; 6+ messages in thread
From: Rong Chen @ 2021-02-08  6:29 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3168 bytes --]



On 1/28/21 12:05 PM, Souptick Joarder wrote:
> On Tue, Jan 26, 2021 at 8:46 AM kernel test robot <lkp@intel.com> 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@intel.com>
>>
>> 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] scripts/recordmcount.pl: support big endian for ARCH sh
  2021-01-26  3:15 ` kernel test robot
  (?)
  (?)
@ 2021-02-10 15:04 ` Rong Chen
  -1 siblings, 0 replies; 6+ messages in thread
From: Rong Chen @ 2021-02-10 15:04 UTC (permalink / raw)
  To: Andrew Morton, Yoshinori Sato, Rich Felker
  Cc: linux-sh, linux-kernel, Rong Chen, kernel test robot

The kernel test robot reported the following issue:
    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

The problem is that the format of input file is elf32-shbig-linux,
but sh4-linux-objcopy wants to output a file which format is elf32-sh-linux:

  $ sh4-linux-objdump -d drivers/soc/litex/litex_soc_ctrl.o | grep format
  drivers/soc/litex/litex_soc_ctrl.o:     file format elf32-shbig-linux

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/linux-mm/202101261118.GbbYSlHu-lkp@intel.com
Signed-off-by: Rong Chen <rong.a.chen@intel.com>
---
 scripts/recordmcount.pl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-10 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26  3:15 [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file kernel test robot
2021-01-26  3:15 ` kernel test robot
2021-01-28  4:05 ` Souptick Joarder
2021-02-08  6:29   ` Rong Chen
2021-02-08  6:29     ` Rong Chen
2021-02-10 15:04 ` [PATCH] scripts/recordmcount.pl: support big endian for ARCH sh Rong Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.