error: A dwo section may not contain relocations

From: kernel test robot
Date: Tue Jun 06 2023 - 04:05:15 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f8dba31b0a826e691949cd4fdfa5c30defaac8c5
commit: 61f2b7c7497ba96cdde5bbaeb9e07f4c48f41f97 Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT
date: 9 months ago
config: riscv-randconfig-r026-20230606 (https://download.01.org/0day-ci/archive/20230606/202306061557.A6csfwPr-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
mkdir -p ~/bin
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/torvalds/linux.git/commit/?id=61f2b7c7497ba96cdde5bbaeb9e07f4c48f41f97
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 61f2b7c7497ba96cdde5bbaeb9e07f4c48f41f97
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=riscv prepare

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306061557.A6csfwPr-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
>> error: A dwo section may not contain relocations
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [scripts/Makefile.build:249: arch/riscv/kernel/vdso/vgettimeofday.o] Error 1 shuffle=3768112586
make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
make[1]: *** [arch/riscv/Makefile:128: vdso_prepare] Error 2 shuffle=3768112586
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2 shuffle=3768112586
make: Target 'prepare' not remade because of errors.

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