2018-04-26 02:26:04

by kernel test robot

[permalink] [raw]
Subject: Makefile:636: arch/score/Makefile: No such file or directory

Hi Arnd,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 26ed24e429d89e045e5eb2d2b75215244347b7f2
commit: b8c9c8f0190f4004d3d4364edb2dea5978dfc824 arch: remove score port
date: 7 weeks ago
config: score-spct6600_defconfig
compiler: score-elf-gcc (GCC) 4.9.4
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b8c9c8f0190f4004d3d4364edb2dea5978dfc824
make.cross ARCH=score spct6600_defconfig
make.cross ARCH=score

All errors (new ones prefixed by >>):

>> Makefile:636: arch/score/Makefile: No such file or directory
>> make[1]: *** No rule to make target 'arch/score/Makefile'.
make[1]: Failed to remake makefile 'arch/score/Makefile'.
make: *** [sub-make] Error 2
--
Makefile:505: arch/score/Makefile: No such file or directory
>> make[1]: *** No rule to make target 'arch/score/Makefile'.
make[1]: Failed to remake makefile 'arch/score/Makefile'.
>> Kconfig:12: can't open file "arch/score/Kconfig"
make[2]: *** [oldconfig] Error 1
make[1]: *** [oldconfig] Error 2
make: *** [sub-make] Error 2
--
Makefile:505: arch/score/Makefile: No such file or directory
>> make[1]: *** No rule to make target 'arch/score/Makefile'.
make[1]: Failed to remake makefile 'arch/score/Makefile'.
>> Kconfig:12: can't open file "arch/score/Kconfig"
make[2]: *** [olddefconfig] Error 1
make[2]: Target 'oldnoconfig' not remade because of errors.
make[1]: *** [oldnoconfig] Error 2
make: *** [sub-make] Error 2
--
Makefile:505: arch/score/Makefile: No such file or directory
>> make[1]: *** No rule to make target 'arch/score/Makefile'.
make[1]: Failed to remake makefile 'arch/score/Makefile'.
>> Kconfig:12: can't open file "arch/score/Kconfig"
make[2]: *** [spct6600_defconfig] Error 1
make[1]: *** [spct6600_defconfig] Error 2
make: *** [sub-make] Error 2

vim +636 Makefile

433dc2eb Masahiro Yamada 2017-10-12 630
6dd3f13e Michal Marek 2015-07-16 631 # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
6dd3f13e Michal Marek 2015-07-16 632 # values of the respective KBUILD_* variables
6dd3f13e Michal Marek 2015-07-16 633 ARCH_CPPFLAGS :=
6dd3f13e Michal Marek 2015-07-16 634 ARCH_AFLAGS :=
6dd3f13e Michal Marek 2015-07-16 635 ARCH_CFLAGS :=
a436bb7b Masahiro Yamada 2015-03-27 @636 include arch/$(SRCARCH)/Makefile
a1c48bb1 Geert Uytterhoeven 2014-05-27 637

:::::: The code at line 636 was first introduced by commit
:::::: a436bb7b806383ae0593cab53d17fc9676270cd3 kbuild: use relative path more to include Makefile

:::::: TO: Masahiro Yamada <[email protected]>
:::::: CC: Michal Marek <[email protected]>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation


2018-04-26 07:16:25

by Arnd Bergmann

[permalink] [raw]
Subject: Re: Makefile:636: arch/score/Makefile: No such file or directory

On Thu, Apr 26, 2018 at 4:23 AM, kbuild test robot <[email protected]> wrote:
> Hi Arnd,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 26ed24e429d89e045e5eb2d2b75215244347b7f2
> commit: b8c9c8f0190f4004d3d4364edb2dea5978dfc824 arch: remove score port
> date: 7 weeks ago
> config: score-spct6600_defconfig

Please stop trying to build the removed architectures: tile, blackfin,
metag, m32r, frv, mn10300, cris and score.

https://lwn.net/Articles/748074/ has details about why this broke.

Note that we do have a few new architectures that you may want
to add if you haven't done this already: nds32 and riscv were added
this year, and a couple of older architectures that didn't have upstream
gcc releases now have those, and I uploaded gcc binaries to
https://cdn.kernel.org/pub/tools/crosstool/.

This should allow building everything we have in the kernel now.
Unfortunately the nds32 toolchain I uploaded is a little incomplete,
but I have a gcc-6.4 build that (mostly) works and gcc-8 should
be fine as well once it gets released.

Arnd

2018-04-26 07:30:13

by Fengguang Wu

[permalink] [raw]
Subject: Re: Makefile:636: arch/score/Makefile: No such file or directory

CC Shun Hao.

On Thu, Apr 26, 2018 at 09:15:01AM +0200, Arnd Bergmann wrote:
>On Thu, Apr 26, 2018 at 4:23 AM, kbuild test robot <[email protected]> wrote:
>> Hi Arnd,
>>
>> FYI, the error/warning still remains.
>>
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head: 26ed24e429d89e045e5eb2d2b75215244347b7f2
>> commit: b8c9c8f0190f4004d3d4364edb2dea5978dfc824 arch: remove score port
>> date: 7 weeks ago
>> config: score-spct6600_defconfig
>
>Please stop trying to build the removed architectures: tile, blackfin,
>metag, m32r, frv, mn10300, cris and score.
>
>https://lwn.net/Articles/748074/ has details about why this broke.

Sorry about that! It looks the architectures removal is not thorough
enough. Hao, would you help take a look?

>Note that we do have a few new architectures that you may want
>to add if you haven't done this already: nds32 and riscv were added
>this year, and a couple of older architectures that didn't have upstream
>gcc releases now have those, and I uploaded gcc binaries to
>https://cdn.kernel.org/pub/tools/crosstool/.
>
>This should allow building everything we have in the kernel now.
>Unfortunately the nds32 toolchain I uploaded is a little incomplete,
>but I have a gcc-6.4 build that (mostly) works and gcc-8 should
>be fine as well once it gets released.

OK, thanks for the tips! Philip may help plan add the 2 new archs
nds32 and riscv.

Thanks,
Fengguang

2018-04-27 01:01:50

by Philip Li

[permalink] [raw]
Subject: RE: Makefile:636: arch/score/Makefile: No such file or directory


> >Please stop trying to build the removed architectures: tile, blackfin,
> >metag, m32r, frv, mn10300, cris and score.
> >
> >https://lwn.net/Articles/748074/ has details about why this broke.
>
> Sorry about that! It looks the architectures removal is not thorough
> enough. Hao, would you help take a look?
sure, we will handle this.

>
> >Note that we do have a few new architectures that you may want
> >to add if you haven't done this already: nds32 and riscv were added
> >this year, and a couple of older architectures that didn't have upstream
> >gcc releases now have those, and I uploaded gcc binaries to
> >https://cdn.kernel.org/pub/tools/crosstool/.
> >
> >This should allow building everything we have in the kernel now.
> >Unfortunately the nds32 toolchain I uploaded is a little incomplete,
> >but I have a gcc-6.4 build that (mostly) works and gcc-8 should
> >be fine as well once it gets released.
>
> OK, thanks for the tips! Philip may help plan add the 2 new archs
> nds32 and riscv.
thanks for info, we will add new archs support in near future.

>
> Thanks,
> Fengguang

2018-04-27 20:10:11

by Palmer Dabbelt

[permalink] [raw]
Subject: RE: Makefile:636: arch/score/Makefile: No such file or directory

On Thu, 26 Apr 2018 18:00:25 PDT (-0700), [email protected] wrote:
>
>> >Please stop trying to build the removed architectures: tile, blackfin,
>> >metag, m32r, frv, mn10300, cris and score.
>> >
>> >https://lwn.net/Articles/748074/ has details about why this broke.
>>
>> Sorry about that! It looks the architectures removal is not thorough
>> enough. Hao, would you help take a look?
> sure, we will handle this.
>
>>
>> >Note that we do have a few new architectures that you may want
>> >to add if you haven't done this already: nds32 and riscv were added
>> >this year, and a couple of older architectures that didn't have upstream
>> >gcc releases now have those, and I uploaded gcc binaries to
>> >https://cdn.kernel.org/pub/tools/crosstool/.
>> >
>> >This should allow building everything we have in the kernel now.
>> >Unfortunately the nds32 toolchain I uploaded is a little incomplete,
>> >but I have a gcc-6.4 build that (mostly) works and gcc-8 should
>> >be fine as well once it gets released.
>>
>> OK, thanks for the tips! Philip may help plan add the 2 new archs
>> nds32 and riscv.
> thanks for info, we will add new archs support in near future.

Thanks! If you have any RISC-V questions feel free to ping me, but it should
be pretty straight-forward as I think my trees are already in the system and
our upstream toolchain works for Linux.