The root cause is in Dwarf complex/float types available in libgcc object files in ARC toolchains. It looks like proper fix should belong to pahole tool. To be more specific, complex Dwarf types should be handled along the same lines as float types are now handled: see pahole commit.
Kernel build fails when CONFIG_DEBUG_INFO_BTF configuration option is enabled:
This issue can be reproduced for ARCv2 and ARCv3 (32bit and 64bit). Version of pahole tool:
Temporary workaround is available: see https://github.com/foss-for-synopsys-dwc-arc-processors/linux/pull/85/commits/b3f0ecc3df0d61265cb4550397fe922754d0f546.
The root cause is in Dwarf complex/float types available in libgcc object files in ARC toolchains. It looks like proper fix should belong to pahole tool. To be more specific, complex Dwarf types should be handled along the same lines as float types are now handled: see pahole commit.