From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Andrii Nakryiko <andrii@kernel.org>, Hao Luo <haoluo@google.com>
Cc: dwarves@vger.kernel.org, Jiri Olsa <jolsa@kernel.org>
Subject: btf_encoder: error: found variable in CU that has void type
Date: Mon, 26 Oct 2020 17:10:06 -0300 [thread overview]
Message-ID: <20201026201006.GE2449445@kernel.org> (raw)
Now with a correct subject :-)
Em Mon, Oct 26, 2020 at 04:58:30PM -0300, Arnaldo Carvalho de Melo escreveu:
> 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
It is something recent:
c815d26689313d8d7 (Hao Luo 2020-08-24 17:45:23 -0700 440) if (var->ip.tag.type == 0) {
2e719cca667212840 (Andrii Nakryiko 2020-10-08 16:39:57 -0700 441) fprintf(stderr, "error: found variable in CU '%s' that has void type\n",
2e719cca667212840 (Andrii Nakryiko 2020-10-08 16:39:57 -0700 442) cu->name);
f3d9054ba8ff1df0f (Hao Luo 2020-07-08 13:44:10 -0700 443) if (force)
f3d9054ba8ff1df0f (Hao Luo 2020-07-08 13:44:10 -0700 444) continue;
f3d9054ba8ff1df0f (Hao Luo 2020-07-08 13:44:10 -0700 445) err = -1;
f3d9054ba8ff1df0f (Hao Luo 2020-07-08 13:44:10 -0700 446) break;
- Arnaldo
next reply other threads:[~2020-10-26 20:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-26 20:10 Arnaldo Carvalho de Melo [this message]
2020-10-26 20:22 ` btf_encoder: error: found variable in CU that has void type Arnaldo Carvalho de Melo
2020-10-26 21:42 ` 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=20201026201006.GE2449445@kernel.org \
--to=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 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 read-only IMAP folder(s) and NNTP newsgroup(s).