archive mirror
 help / color / mirror / Atom feed
From: Guoqing Jiang <>
Subject: Can't compile v6.2-rc1 kernel rpm in openSUSE
Date: Wed, 28 Dec 2022 19:44:56 +0800	[thread overview]
Message-ID: <> (raw)


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 
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
$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


                 reply	other threads:[~2022-12-28 11:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).