[masahiroy-kbuild:kbuild 67/71] Makefile:36: /tools/scripts/Makefile.arch: No such file or directory

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
head:   2b3951b65a1e13aa15d30a803510be08075cae40
commit: f48e05d84f217ec1e7e379f184af119fc75a45e8 [67/71] kbuild: unexport abs_srctree and abs_objtree
config: microblaze-randconfig-r026-20230626 (https://download.01.org/0day-ci/archive/20230626/202306260604.jAB4uQed-lkp@xxxxxxxxx/config)
compiler: microblaze-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230626/202306260604.jAB4uQed-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306260604.jAB4uQed-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> Makefile:36: /tools/scripts/Makefile.arch: No such file or directory
>> make[4]: *** No rule to make target '/tools/scripts/Makefile.arch'.  Stop.
   make[3]: *** [Makefile:63: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
   make[3]: *** Waiting for unfinished jobs....
   make[2]: *** [Makefile:76: bpf/resolve_btfids] Error 2 shuffle=1513993084
   make[1]: *** [Makefile:1422: tools/bpf/resolve_btfids] Error 2 shuffle=1513993084
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:224: __sub-make] Error 2 shuffle=1513993084
   make: Target 'prepare' not remade because of errors.


vim +36 Makefile

87d599fc3955e5 Masahiro Yamada 2022-12-13  17  
121c2a137767df Masahiro Yamada 2020-05-11  18  $(if $(filter __%, $(MAKECMDGOALS)), \
121c2a137767df Masahiro Yamada 2020-05-11  19  	$(error targets prefixed with '__' are only for internal use))
121c2a137767df Masahiro Yamada 2020-05-11  20  
ba634eceb535d9 Masahiro Yamada 2017-10-04  21  # That's our default target when none is given on the command line
121c2a137767df Masahiro Yamada 2020-05-11  22  PHONY := __all
121c2a137767df Masahiro Yamada 2020-05-11  23  __all:
ba634eceb535d9 Masahiro Yamada 2017-10-04  24  
^1da177e4c3f41 Linus Torvalds  2005-04-16  25  # We are using a recursive build, so we need to do a little thinking
^1da177e4c3f41 Linus Torvalds  2005-04-16  26  # to get the ordering right.
^1da177e4c3f41 Linus Torvalds  2005-04-16  27  #
^1da177e4c3f41 Linus Torvalds  2005-04-16  28  # Most importantly: sub-Makefiles should only ever modify files in
^1da177e4c3f41 Linus Torvalds  2005-04-16  29  # their own directory. If in some directory we have a dependency on
^1da177e4c3f41 Linus Torvalds  2005-04-16  30  # a file in another dir (which doesn't happen often, but it's often
f49821ee32b76b Nicholas Piggin 2018-02-11  31  # unavoidable when linking the built-in.a targets which finally
^1da177e4c3f41 Linus Torvalds  2005-04-16  32  # turn into vmlinux), we will call a sub make in that other dir, and
^1da177e4c3f41 Linus Torvalds  2005-04-16  33  # after that we are sure that everything which is in that other dir
^1da177e4c3f41 Linus Torvalds  2005-04-16  34  # is now up to date.
^1da177e4c3f41 Linus Torvalds  2005-04-16  35  #
^1da177e4c3f41 Linus Torvalds  2005-04-16 @36  # The only cases where we need to modify files which have global
^1da177e4c3f41 Linus Torvalds  2005-04-16  37  # effects are thus separated out and done before the recursive
^1da177e4c3f41 Linus Torvalds  2005-04-16  38  # descending is started. They are now explicitly listed as the
^1da177e4c3f41 Linus Torvalds  2005-04-16  39  # prepare rule.
^1da177e4c3f41 Linus Torvalds  2005-04-16  40  

:::::: The code at line 36 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux