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 :
Date & Time: Wed, 09 Sep 2020 15:04:20 +0200 [TI] == Takashi Iwai
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