On Wed, 09 Sep 2020 13:20:17 +0200, Masaru Nomiya wrote:
Hello,
My OS is openSUSE Leap 15.2.
I ususally get 3 src.rpm files from
http://download.opensuse.org/repositories/Kernel:/stable/standard/
1. kerner-source src.rpm 2. kernel-syms src.rpm 3. kernel-default src.rpm
and compiles with my config file.
Since kernel 5.8, I couldn't compile the kernel-default src.rpm.
[...] HOSTCC scripts/kconfig/util.o YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/expr.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/parser.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --syncconfig Kconfig + /usr/src/packages/SOURCES/check-for-config-changes .config.orig .config
Changes after running `make oldconfig': -# CONFIG_CC_CAN_LINK_STATIC is not set -# CONFIG_DEBUG_INFO_COMPRESSED is not set -# CONFIG_DEBUG_INFO_REDUCED is not set -# CONFIG_DEBUG_INFO_SPLIT is not set -# CONFIG_GDB_SCRIPTS is not set +CONFIG_CC_CAN_LINK_STATIC=y -CONFIG_DEBUG_INFO_BTF=y -CONFIG_DEBUG_INFO_DWARF4=y
error: Bad exit status from /var/tmp/rpm-tmp.8lDVlE (%prep)
[...] And, in the /var/tmp/rpm-tmp.8lDVlE
make $syncconfig $MAKE_ARGS $KERN_DIRS < /dev/null /usr/src/packages/SOURCES/check-for-config-changes .config.orig .config rm .config.orig fi
make prepare $MAKE_ARGS make scripts $MAKE_ARGS krel=$(make -s kernelrelease $MAKE_ARGS)
if [ "$krel" != "5.8.7-2.1-default" ]; then echo "Kernel release mismatch: $krel != 5.8.7-2.1-default" >&2 exit 1 fi
make clean $MAKE_ARGS
rm -f source find . ! -type d ! -name 'Module.base' ! -name 'Module.*-kmp' -printf '%P\n' \
/usr/src/packages/BUILD/kernel-default-5.8.7/obj-files
exit $?
But, I can compile the kernel's source file.
I've got no idea about this difference.
What's wrong with me?
Could someone give me a clue?
THanks
The recent kernel has a few configs that depend on the compiler, and the above are such ones. The config included in the kernel package in OBS Kernel:stable is set up for Tumbleweed, thus it's with gcc10 (or gcc9), while Leap 15.2 with gcc7 as default, and that's what you're likely using. Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org