From: Jiri Olsa <jolsa@redhat.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>, Hao Luo <haoluo@google.com>,
dwarves@vger.kernel.org, Jiri Olsa <jolsa@kernel.org>
Subject: Re: [PATCH dwarves] cmake: make libbpf's Linux UAPI headers
Date: Mon, 26 Oct 2020 21:32:38 +0100 [thread overview]
Message-ID: <20201026203238.GH2726983@krava> (raw)
In-Reply-To: <20201026195830.GD2449445@kernel.org>
On Mon, Oct 26, 2020 at 04:58:30PM -0300, Arnaldo Carvalho de Melo wrote:
> Hi guys,
>
> I just stumbled on this, investigating... This is with what is
> in the tmp branch at
> git://git.kernel.org/pub/scm/devel/pahole/pahole.git.
>
> error: found variable in CU '/home/acme/git/linux/security/selinux/hooks.c' that has void type
> Encountered error while encoding BTF.
> LD .tmp_vmlinux.kallsyms1
> KSYMS .tmp_vmlinux.kallsyms1.S
> AS .tmp_vmlinux.kallsyms1.S
> LD .tmp_vmlinux.kallsyms2
> KSYMS .tmp_vmlinux.kallsyms2.S
> AS .tmp_vmlinux.kallsyms2.S
> LD vmlinux
> BTFIDS vmlinux
> FAILED: load BTF from vmlinux: Unknown error -2make[1]: *** [/home/acme/git/linux/Makefile:1164: vmlinux] Error 255
> make[1]: Leaving directory '/home/acme/git/build/v5.10.0-rc1+'
> make: *** [Makefile:185: __sub-make] Error 2
yep, I see the same and when I use --btf_encode_force,
it shows more of them:
error: found variable in CU 'arch/x86/kernel/cpu/mce/core.c' that has void type
error: found variable in CU 'security/selinux/hooks.c' that has void type
error: found variable in CU 'security/selinux/hooks.c' that has void type
error: found variable in CU 'security/selinux/hooks.c' that has void type
error: found variable in CU 'security/selinux/hooks.c' that has void type
error: found variable in CU 'security/selinux/hooks.c' that has void type
error: found variable in CU 'security/selinux/hooks.c' that has void type
error: found variable in CU 'drivers/platform/x86/intel_pmc_core.c' that has void type
I have no idea how variables are encoded in dwarf,
but I wonder it's another gcc bug ;-)
jirka
next prev parent reply other threads:[~2020-10-26 20:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-26 19:58 [PATCH dwarves] cmake: make libbpf's Linux UAPI headers Arnaldo Carvalho de Melo
2020-10-26 20:32 ` Jiri Olsa [this message]
2020-10-26 21:17 ` Hao Luo
2020-10-26 21:19 ` Hao Luo
2020-10-26 21:39 ` Andrii Nakryiko
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=20201026203238.GH2726983@krava \
--to=jolsa@redhat.com \
--cc=acme@kernel.org \
--cc=andrii@kernel.org \
--cc=dwarves@vger.kernel.org \
--cc=haoluo@google.com \
--cc=jolsa@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.