You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When (redundant) -type T option refers to a type that is already exposed because a variable of T exists, a bogus "type name is used multiple times" error is reported.
How to reproduce
//go:build ignore// x.cstructS {} s;
$ bpf2go --type S --go-package eee x x.c
Error: can't write /home/nickz/cilium-ebpf.git/x_bpfel.go: type name "xS" is used multiple times
The error occurs because variable's type is a copy produced in loadDataSections. We end up with two distinct objects.
Version information
v0.17.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When (redundant)
-type T
option refers to a type that is already exposed because a variable ofT
exists, a bogus "type name is used multiple times" error is reported.How to reproduce
The error occurs because variable's type is a copy produced in
loadDataSections
. We end up with two distinct objects.Version information
v0.17.1
The text was updated successfully, but these errors were encountered: