linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't compile v6.2-rc1 kernel rpm in openSUSE
@ 2022-12-28 11:44 Guoqing Jiang
  0 siblings, 0 replies; only message in thread
From: Guoqing Jiang @ 2022-12-28 11:44 UTC (permalink / raw)
  To: ivecera; +Cc: masahiroy, nathan, ndesaulniers, nicolas, linux-kbuild

Hi,

With latest v6.2-rc1, I can't compile kernel rpm in openSUSE leap.

linux> make rpm-pkg -j16
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
  UPD     include/config/kernel.release
make clean
sh ./scripts/package/mkspec >./kernel.spec
  TAR     kernel-6.2.0_rc1_150400.24.38_default+.tar.gz
rpmbuild  --target x86_64-linux -ta 
kernel-6.2.0_rc1_150400.24.38_default+.tar.gz \
--define='_smp_mflags %{nil}'
Building target platforms: x86_64-linux
Building for target x86_64-linux
error: Failed build dependencies:
        elfutils-libelf-devel is needed by 
kernel-6.2.0_rc1_150400.24.38_default+-8.x86_64
make[1]: *** [scripts/Makefile.package:62: rpm-pkg] Error 1
make: *** [Makefile:1652: rpm-pkg] Error 2


Seems the below change in commit 8818039f959b("kbuild: add ability
to make source rpm buildable using koji") caused the issue.

@@ -49,6 +51,9 @@sed -e '/^DEL/d' -e 's/^\t*//' <<EOF
        URL: https://www.kernel.org
$S     Source: kernel-$__KERNELRELEASE.tar.gz
        Provides: $PROVIDES
+$S     BuildRequires: bc binutils bison dwarves elfutils-libelf-devel flex
+$S     BuildRequires: gcc make openssl openssl-devel perl python3 rsync

Because the relevant package name in openSUSE is libelf-devel as
mentioned in ./tools/perf/Makefile.config

Please install libelf-dev, libelf-devel or elfutils-libelf-devel


Thanks,
Guoqing

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-28 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28 11:44 Can't compile v6.2-rc1 kernel rpm in openSUSE Guoqing Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).