public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* CLANG LTO compatibility issue with DEBUG_INFO_BTF
@ 2021-03-19  3:45 Jisheng Zhang
  2021-03-19  3:56 ` Yonghong Song
  0 siblings, 1 reply; 3+ messages in thread
From: Jisheng Zhang @ 2021-03-19  3:45 UTC (permalink / raw)
  To: Sami Tolvanen, Kees Cook, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, linux-kernel
  Cc: bpf

Hi,

When trying the latest 5.12-rc3 with both LTO_CLANG_THIN and DEBUG_INFO_BTF
enabled, I met lots of warnings such as:

...
tag__recode_dwarf_type: couldn't find 0x4a7ade5 type for 0x4ab9f88 (subroutine_type)!
ftype__recode_dwarf_types: couldn't find 0x4a7ade5 type for 0x4ab9fa4 (formal_parameter)!
...
namespace__recode_dwarf_types: couldn't find 0x4a8ff4a type for 0x4aba05c (member)!
namespace__recode_dwarf_types: couldn't find 0x4a7ae9b type for 0x4aba084 (member)!
...
WARN: multiple IDs found for 'path': 281, 729994 - using 281
WARN: multiple IDs found for 'task_struct': 421, 730101 - using 421
...


then finally get build error:
FAILED unresolved symbol vfs_truncate


Is this a known issue? Do we need to make DEBUG_INFO_BTF depend on !LTO?

pahole version: v1.20
clang version: 11.0


Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-22  1:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-19  3:45 CLANG LTO compatibility issue with DEBUG_INFO_BTF Jisheng Zhang
2021-03-19  3:56 ` Yonghong Song
2021-03-22  1:48   ` Jisheng Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox