/opt/cross/gcc-10.3.0-nolibc/microblaze-linux/bin/../lib/gcc/microblaze-linux/10.3.0/../../../../microblaze-linux/bin/ld: cannot find crt1.o: No such file or directory

From: kernel test robot
Date: Tue Jul 27 2021 - 14:05:09 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ff1176468d368232b684f75e82563369208bc371
commit: e1199815b47be83346c03e20a3de76f934e4bb34 selftests/landlock: Add user space tests
date: 3 months ago
config: microblaze-randconfig-r021-20210727 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 10.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/torvalds/linux.git/commit/?id=e1199815b47be83346c03e20a3de76f934e4bb34
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e1199815b47be83346c03e20a3de76f934e4bb34
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash -C tools/testing/selftests install

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> /opt/cross/gcc-10.3.0-nolibc/microblaze-linux/bin/../lib/gcc/microblaze-linux/10.3.0/../../../../microblaze-linux/bin/ld: cannot find crt1.o: No such file or directory
>> /opt/cross/gcc-10.3.0-nolibc/microblaze-linux/bin/../lib/gcc/microblaze-linux/10.3.0/../../../../microblaze-linux/bin/ld: cannot find crti.o: No such file or directory
/opt/cross/gcc-10.3.0-nolibc/microblaze-linux/bin/../lib/gcc/microblaze-linux/10.3.0/../../../../microblaze-linux/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status

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

Attachment: .config.gz
Description: application/gzip