All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rong Chen <rong.a.chen@intel.com>
To: Souptick Joarder <jrdr.linux@gmail.com>,
	kernel test robot <lkp@intel.com>
Cc: Gabriel Somlo <gsomlo@gmail.com>,
	kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Stafford Horne <shorne@gmail.com>
Subject: Re: [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
Date: Mon, 8 Feb 2021 14:29:05 +0800	[thread overview]
Message-ID: <c8621853-0ef9-62c4-65fb-20a52f13ba34@intel.com> (raw)
In-Reply-To: <CAFqt6zbK-t6XNofOTKLCVT+X_tiwXHmh9i1E=qvQy-3fqyj-sA@mail.gmail.com>



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


WARNING: multiple messages have this Message-ID (diff)
From: Rong Chen <rong.a.chen@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file
Date: Mon, 08 Feb 2021 14:29:05 +0800	[thread overview]
Message-ID: <c8621853-0ef9-62c4-65fb-20a52f13ba34@intel.com> (raw)
In-Reply-To: <CAFqt6zbK-t6XNofOTKLCVT+X_tiwXHmh9i1E=qvQy-3fqyj-sA@mail.gmail.com>

[-- 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

  reply	other threads:[~2021-02-08  6:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2021-02-08  6:29     ` Rong Chen
2021-02-10 15:04 ` [PATCH] scripts/recordmcount.pl: support big endian for ARCH sh Rong Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8621853-0ef9-62c4-65fb-20a52f13ba34@intel.com \
    --to=rong.a.chen@intel.com \
    --cc=gsomlo@gmail.com \
    --cc=jrdr.linux@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=lkp@intel.com \
    --cc=shorne@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.