Content-Type: multipart/mixed; boundary="===============7351682183645114097==" MIME-Version: 1.0 From: Baoquan He To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 10/11] sh: mm: Convert to GENERIC_IOREMAP Date: Thu, 01 Sep 2022 18:39:30 +0800 Message-ID: In-Reply-To: <202208201146.8VeY9pez-lkp@intel.com> List-Id: --===============7351682183645114097== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, On 08/20/22 at 11:41am, kernel test robot wrote: > Hi Baoquan, > = > I love your patch! Yet something to improve: > = > [auto build test ERROR on akpm-mm/mm-everything] > = > url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-iore= map-Convert-architectures-to-take-GENERIC_IOREMAP-way/20220820-083435 > base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-ev= erything > config: sh-allmodconfig > compiler: sh4-linux-gcc (GCC) 12.1.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://github.com/intel-lab-lkp/linux/commit/503a31451202f89e5= 8bc5f0a49261398fafbd90e > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Baoquan-He/mm-ioremap-Convert-ar= chitectures-to-take-GENERIC_IOREMAP-way/20220820-083435 > git checkout 503a31451202f89e58bc5f0a49261398fafbd90e > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-12.1.0 make.cro= ss W=3D1 O=3Dbuild_dir ARCH=3Dsh prepare I can only find binutils-sh-linux-gnu on fedora, but no gcc-sh-linux-gnu for cross compiling superh kernel. So I tried above steps, but it failed as below, any suggestion I can fix it to proceed for reproducing the reporting issues? Thanks in advance. [root(a)ampere-mtsnow-altra-09 ~]# ls 0day anaconda-ks.cfg bin config EFI_BOOT_ENTRY.TXT linux NETBOOT_METH= OD.TXT original-ks.cfg RECIPE.TXT [root(a)ampere-mtsnow-altra-09 ~]# ls 0day/gcc-12.1.0-nolibc/sh4-linux/bin/ sh4-linux-addr2line sh4-linux-elfedit sh4-linux-gcc-ranlib sh4-linux-= ld sh4-linux-objdump sh4-linux-strip sh4-linux-ar sh4-linux-gcc sh4-linux-gcov sh4-linux-= ld.bfd sh4-linux-ranlib sh4-linux-as sh4-linux-gcc-12.1.0 sh4-linux-gcov-dump sh4-linux-= lto-dump sh4-linux-readelf sh4-linux-c++filt sh4-linux-gcc-ar sh4-linux-gcov-tool sh4-linux-= nm sh4-linux-size sh4-linux-cpp sh4-linux-gcc-nm sh4-linux-gprof sh4-linux-= objcopy sh4-linux-strings [root(a)ampere-mtsnow-altra-09 ~]# ls bin make.cross [root(a)ampere-mtsnow-altra-09 ~]# cd linux/ [root(a)ampere-mtsnow-altra-09 linux]# ls arch certs CREDITS drivers init Kbuild lib = Makefile README security usr block config crypto fs io_uring Kconfig LICENSES = mm samples sound virt build_dir COPYING Documentation include ipc kernel MAINTAINERS = net scripts tools [root(a)ampere-mtsnow-altra-09 linux]# ls build_dir/ -a . .. arch .config .gitignore include Makefile scripts source usr [root(a)ampere-mtsnow-altra-09 linux]# COMPILER_INSTALL_PATH=3D$HOME/0day C= OMPILER=3Dgcc-12.1.0 make.cross W=3D1 O=3Dbuild_dir ARCH=3Dsh prepare Compiler will be installed in /root/0day not a dynamic executable make --keep-going CONFIG_OF_ALL_DTBS=3Dy CONFIG_DTC=3Dy CROSS_COMPILE=3D/ro= ot/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux- --jobs=3D160 W=3D1 O=3Db= uild_dir ARCH=3Dsh prepare make[1]: Entering directory '/root/linux/build_dir' /bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: = cannot execute binary file: Exec format error /bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: = cannot execute binary file: Exec format error /bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: = cannot execute binary file: Exec format error SYNC include/config/auto.conf.cmd /bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: = cannot execute binary file: Exec format error /bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: = cannot execute binary file: Exec format error /bin/sh: line 1: /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: = cannot execute binary file: Exec format error GEN Makefile HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTLD scripts/kconfig/conf /root/0day/gcc-12.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc: unknown compiler scripts/Kconfig.include:44: Sorry, this compiler is not supported. make[3]: *** [../scripts/kconfig/Makefile:77: syncconfig] Error 1 make[2]: *** [../Makefile:632: syncconfig] Error 2 make[1]: *** [/root/linux/Makefile:734: include/config/auto.conf.cmd] Error= 2 make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'. make[1]: Failed to remake makefile 'include/config/auto.conf'. GEN Makefile SYSHDR arch/sh/include/generated/uapi/asm/unistd_32.h SYSTBL arch/sh/include/generated/asm/syscall_table.h Error: kernelrelease not valid - run 'make prepare' to update it HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/fdtoverlay HOSTLD scripts/dtc/dtc make[1]: Target 'prepare' not remade because of errors. make[1]: Leaving directory '/root/linux/build_dir' make: *** [Makefile:222: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. --===============7351682183645114097==--