From: Petr Pavlu <petr.pavlu@suse.com>
To: WangYuli <wangyuli@uniontech.com>
Cc: masahiroy@kernel.org, nathan@kernel.org, nicolas@fjasle.eu,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
samitolvanen@google.com, zhanjun@uniontech.com,
niecheng1@uniontech.com, guanwentao@uniontech.com
Subject: Re: [PATCH] kbuild: deb-pkg: Add libdw-dev:native to Build-Depends-Arch
Date: Fri, 28 Mar 2025 11:19:16 +0100 [thread overview]
Message-ID: <3e52d80d-0c60-4df5-8cb5-21d4b1fce7b7@suse.com> (raw)
In-Reply-To: <39FF69551D01924F+20250326174156.390126-1-wangyuli@uniontech.com>
On 3/26/25 18:41, WangYuli wrote:
> The dwarf.h header, which is included by
> scripts/gendwarfksyms/gendwarfksyms.h, resides within the libdw-dev
> package.
>
> This portion of the code is compiled under the condition that
> CONFIG_GENDWARFKSYMS is enabled.
>
> Consequently, add libdw-dev to Build-Depends-Arch to prevent
> unforeseen compilation failures.
>
> Fix follow possible error:
> In file included from scripts/gendwarfksyms/cache.c:6:
> scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: 'dwarf.h' file not found
> 6 | #iIn file included from nscripts/gendwarfksyms/symbols.cc:lude6 :
> <dwarf.hscripts/gendwarfksyms/gendwarfksyms.h>:6
> : 10| : ^~~~~~~~~
> fatal error: 'dwarf.h' file not found
> 6 | #include <dwarf.h>
> | ^~~~~~~~~
>
> Fixes: f28568841ae0 ("tools: Add gendwarfksyms")
> Signed-off-by: WangYuli <wangyuli@uniontech.com>
> ---
> scripts/package/mkdebian | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
> index 0178000197fe..25edee97fff7 100755
> --- a/scripts/package/mkdebian
> +++ b/scripts/package/mkdebian
> @@ -209,7 +209,7 @@ Rules-Requires-Root: no
> Build-Depends: debhelper-compat (= 12)
> Build-Depends-Arch: bc, bison, flex,
> gcc-${host_gnu} <!pkg.${sourcename}.nokernelheaders>,
> - kmod, libelf-dev:native,
> + kmod, libdw-dev:native, libelf-dev:native,
> libssl-dev:native, libssl-dev <!pkg.${sourcename}.nokernelheaders>,
> python3:native, rsync
> Homepage: https://www.kernel.org/
If scripts/package/mkdebian is updated in this way then I think
scripts/package/mkspec -> scripts/package/kernel.spec should be adjusted
as well for consistency.
File scripts/package/kernel.spec contains:
BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
elfutils-libelf-devel is for Fedora/RH distros, libelf-devel is for
(open)SUSE.
If I'm looking correctly, a new dependency to make dwarf.h available for
both would be:
BuildRequires: elfutils-devel or libdw-devel
--
Thanks,
Petr
next prev parent reply other threads:[~2025-03-28 10:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-26 17:41 [PATCH] kbuild: deb-pkg: Add libdw-dev:native to Build-Depends-Arch WangYuli
2025-03-26 22:40 ` Sami Tolvanen
2025-03-28 10:19 ` Petr Pavlu [this message]
2025-04-03 2:45 ` WangYuli
2025-04-04 9:00 ` Masahiro Yamada
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3e52d80d-0c60-4df5-8cb5-21d4b1fce7b7@suse.com \
--to=petr.pavlu@suse.com \
--cc=guanwentao@uniontech.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=nicolas@fjasle.eu \
--cc=niecheng1@uniontech.com \
--cc=samitolvanen@google.com \
--cc=wangyuli@uniontech.com \
--cc=zhanjun@uniontech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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