* [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
0 siblings, 1 reply; 3+ 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] 3+ 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 [linux-next:master 3035/6048] sh4-linux-nm: 'drivers/soc/litex/litex_soc_ctrl.o': No such file kernel test robot
@ 2021-01-28 4:05 ` Souptick Joarder
2021-02-08 6:29 ` Rong Chen
0 siblings, 1 reply; 3+ 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] 3+ 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; 3+ 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 [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-08 6:29 UTC | newest]
Thread overview: 3+ 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-28 4:05 ` Souptick Joarder
2021-02-08 6:29 ` Rong Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox