[opensuse-kernel] How to build kernel-default src.rpm after kernel 5.8

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 --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ Think. -- The IBM slogan -- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

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/
- kerner-source src.rpm
- kernel-syms src.rpm
- 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

Hello, In the Message; Subject : Re: [opensuse-kernel] How to build kernel-default src.rpm after kernel 5.8 Message-ID : <s5hpn6vrtij.wl-tiwai@suse.de> Date & Time: Wed, 09 Sep 2020 15:04:20 +0200 [TI] == Takashi Iwai <tiwai@suse.de> has written: TI> On Wed, 09 Sep 2020 13:20:17 +0200, TI> Masaru Nomiya wrote: TI> > TI> > Hello, TI> > TI> > My OS is openSUSE Leap 15.2. TI> > TI> > I ususally get 3 src.rpm files from TI> > TI> > http://download.opensuse.org/repositories/Kernel:/stable/standard/ TI> > TI> > 1. kerner-source src.rpm TI> > 2. kernel-syms src.rpm TI> > 3. kernel-default src.rpm TI> > TI> > and compiles with my config file. TI> > TI> > Since kernel 5.8, I couldn't compile the kernel-default src.rpm. [...] TI> > But, I can compile the kernel's source file. TI> > TI> > I've got no idea about this difference. TI> > TI> > What's wrong with me? TI> > TI> > Could someone give me a clue? TI> > TI> > THanks TI> The recent kernel has a few configs that depend on the compiler, and TI> the above are such ones. The config included in the kernel package in TI> OBS Kernel:stable is set up for Tumbleweed, thus it's with gcc10 (or TI> gcc9), while Leap 15.2 with gcc7 as default, and that's what you're TI> likely using. I've already installed gcc-10, as well. And I tried to run rpmbuild with gcc-10, but failed. I douted the config files, so I built the kernel-default with using the config.tar.bz2 in the 5.7's kernel-source package. With this replacement, I could built kernel-default until 5.8.4. Neverthless, I can compile the latest kernel source. What's the difference between the source build and the package build? THanks, --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "Bill! You married with Computer. Not with Me!" "No..., with money." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Wed, 09 Sep 2020 15:41:54 +0200, Masaru Nomiya wrote:
Hello,
In the Message;
Subject : Re: [opensuse-kernel] How to build kernel-default src.rpm after kernel 5.8 Message-ID : <s5hpn6vrtij.wl-tiwai@suse.de> Date & Time: Wed, 09 Sep 2020 15:04:20 +0200
[TI] == Takashi Iwai <tiwai@suse.de> has written:
TI> On Wed, 09 Sep 2020 13:20:17 +0200, TI> Masaru Nomiya wrote: TI> > TI> > Hello, TI> > TI> > My OS is openSUSE Leap 15.2. TI> > TI> > I ususally get 3 src.rpm files from TI> > TI> > http://download.opensuse.org/repositories/Kernel:/stable/standard/ TI> > TI> > 1. kerner-source src.rpm TI> > 2. kernel-syms src.rpm TI> > 3. kernel-default src.rpm TI> > TI> > and compiles with my config file. TI> > TI> > Since kernel 5.8, I couldn't compile the kernel-default src.rpm. [...] TI> > But, I can compile the kernel's source file. TI> > TI> > I've got no idea about this difference. TI> > TI> > What's wrong with me? TI> > TI> > Could someone give me a clue? TI> > TI> > THanks
TI> The recent kernel has a few configs that depend on the compiler, and TI> the above are such ones. The config included in the kernel package in TI> OBS Kernel:stable is set up for Tumbleweed, thus it's with gcc10 (or TI> gcc9), while Leap 15.2 with gcc7 as default, and that's what you're TI> likely using.
I've already installed gcc-10, as well. And I tried to run rpmbuild with gcc-10, but failed.
I douted the config files, so I built the kernel-default with using the config.tar.bz2 in the 5.7's kernel-source package. With this replacement, I could built kernel-default until 5.8.4.
Neverthless, I can compile the latest kernel source.
What's the difference between the source build and the package build?
It's the difference of packages that are used for build :) The config indicates whether you can run gcc with -static option for linking. Since OBS build doesn't contain glibc-devel-static, it results in the config without CONFIG_CC_CAN_LINK_STATIC. And, I guess you have installed glibc-devel-static, and you got CONFIG_CC_CAN_LINK_STATIC=y instead. Takashi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

Hello, In the Message; Subject : Re: [opensuse-kernel] How to build kernel-default src.rpm after kernel 5.8 Message-ID : <s5hblifrqz2.wl-tiwai@suse.de> Date & Time: Wed, 09 Sep 2020 15:59:13 +0200 [TI] == Takashi Iwai <tiwai@suse.de> has written: TI> On Wed, 09 Sep 2020 15:41:54 +0200, TI> Masaru Nomiya wrote: TI> > TI> > Hello, TI> > TI> > In the Message; TI> > TI> > Subject : Re: [opensuse-kernel] How to build kernel-default src.rpm after kernel 5.8 TI> > Message-ID : <s5hpn6vrtij.wl-tiwai@suse.de> TI> > Date & Time: Wed, 09 Sep 2020 15:04:20 +0200 TI> > TI> > [TI] == Takashi Iwai <tiwai@suse.de> has written: TI> > [...] TI> > What's the difference between the source build and the package build? TI> It's the difference of packages that are used for build :) TI> The config indicates whether you can run gcc with -static option for TI> linking. Since OBS build doesn't contain glibc-devel-static, it TI> results in the config without CONFIG_CC_CAN_LINK_STATIC. TI> And, I guess you have installed glibc-devel-static, and you got TI> CONFIG_CC_CAN_LINK_STATIC=y instead. I fully understand! Many thanks! --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "Three young men died for Rationalization. Yet, Margaret Bloody Thatcher LIVES!" 'Brassed Off' -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

Am Mittwoch, 9. September 2020, 13:20:17 CEST schrieb Masaru Nomiya:
Hello,
My OS is openSUSE Leap 15.2.
I ususally get 3 src.rpm files from
http://download.opensuse.org/repositories/Kernel:/stable/standard/
- kerner-source src.rpm
- kernel-syms src.rpm
- 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)
Try: touch TOLERATE-UNKNOWN-NEW-CONFIG-OPTIONS in rpm source directory.
[...]
But, I can compile the kernel's source file.
I've got no idea about this difference.
What's wrong with me?
I very much hope, that you are doing well. ;-)
Could someone give me a clue?
We'll see.. Good luck, and feedback welcome. Cheers, Pete -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

Hello, In the Message; Subject : Re: [opensuse-kernel] How to build kernel-default src.rpm after kernel 5.8 Message-ID : <6353317.NW8uBTfstz@xrated> Date & Time: Wed, 09 Sep 2020 15:30:18 +0200 [HPJ] == Hans-Peter Jansen <hpj@urpla.net> has written: HPJ> Am Mittwoch, 9. September 2020, 13:20:17 CEST schrieb Masaru Nomiya: HPJ> > Hello, [...] MN> > Changes after running `make oldconfig': MN> > -# CONFIG_CC_CAN_LINK_STATIC is not set MN> > -# CONFIG_DEBUG_INFO_COMPRESSED is not set MN> > -# CONFIG_DEBUG_INFO_REDUCED is not set MN> > -# CONFIG_DEBUG_INFO_SPLIT is not set MN> > -# CONFIG_GDB_SCRIPTS is not set MN> > +CONFIG_CC_CAN_LINK_STATIC=y MN> > -CONFIG_DEBUG_INFO_BTF=y MN> > -CONFIG_DEBUG_INFO_DWARF4=y MN> > MN> > error: Bad exit status from /var/tmp/rpm-tmp.8lDVlE (%prep) HPJ> Try: HPJ> touch TOLERATE-UNKNOWN-NEW-CONFIG-OPTIONS in rpm source directory. Solved! Thanks, a lot. --- ┏━━┓彡 Masaru Nomiya mail-to: nomiya @ galaxy.dti.ne.jp ┃\/彡 ┗━━┛ "No Windows, no gains!" ..... "Why, I am wrong?" -- Bill -- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (3)
-
Hans-Peter Jansen
-
Masaru Nomiya
-
Takashi Iwai