CC: Linux Memory Management List <linux-mm(a)kvack.org>
TO: Guo Ren <guoren(a)linux.alibaba.com>
CC: Palmer Dabbelt <palmerdabbelt(a)google.com>
Hi Guo,
FYI, the error/warning still remains.
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ff90dfd2579b2c7bc1f0baa0cb99c918c6c1ec64
commit: afc76b8b80112189b6f11e67e19cf58301944814 [3113/11791] riscv: Using
PATCHABLE_FUNCTION_ENTRY instead of MCOUNT
config: riscv-randconfig-r011-20210218 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
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 afc76b8b80112189b6f11e67e19cf58301944814
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> clang-12: error: unsupported option
'-fpatchable-function-entry=8' for target 'riscv64-unknown-linux-gnu'
--
> clang-12: error: unsupported option
'-fpatchable-function-entry=8' for target 'riscv64-unknown-linux-gnu'
make[2]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1
> clang-12: error: unsupported option
'-fpatchable-function-entry=8' for target 'riscv64-unknown-linux-gnu'
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s]
Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1205: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org