Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with Go 1.24 #303

Open
stefanb opened this issue Feb 10, 2025 · 1 comment
Open

Build fails with Go 1.24 #303

stefanb opened this issue Feb 10, 2025 · 1 comment

Comments

@stefanb
Copy link

stefanb commented Feb 10, 2025

Building with Go 1.24rc3 (via Go-version adjusted Dockerfile)

FROM golang:1.18

results with:

 > [7/7] RUN go build .:
0.148 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0
0.148 go: downloading github.com/gorilla/handlers v1.5.1
0.151 go: downloading github.com/gorilla/mux v1.8.0
0.188 go: downloading github.com/gorilla/csrf v1.7.0
0.359 go: downloading github.com/pkg/errors v0.9.1
0.360 go: downloading github.com/gorilla/securecookie v1.1.1
0.381 go: downloading github.com/felixge/httpsnoop v1.0.1
10.58 # github.com/trezor/trezord-go/usb/lowlevel/libusb
10.58 usb/lowlevel/libusb/libusb.go:408:10: cannot define new methods on non-local type Struct_Libusb_Endpoint_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:461:10: cannot define new methods on non-local type Struct_Libusb_Interface_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:519:10: cannot define new methods on non-local type Struct_Libusb_Interface
10.58 usb/lowlevel/libusb/libusb.go:569:10: cannot define new methods on non-local type Struct_Libusb_Config_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:630:10: cannot define new methods on non-local type Struct_Libusb_SS_Endpoint_Companion_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:657:10: cannot define new methods on non-local type Struct_Libusb_BOS_Dev_Capability_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:683:10: cannot define new methods on non-local type Struct_Libusb_BOS_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:718:10: cannot define new methods on non-local type Struct_Libusb_USB_2_0_Extension_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:748:10: cannot define new methods on non-local type Struct_Libusb_SS_USB_Device_Capability_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:779:10: cannot define new methods on non-local type Struct_Libusb_Container_ID_Descriptor
10.58 usb/lowlevel/libusb/libusb.go:779:10: too many errors

Found in

Related:

@teknico
Copy link

teknico commented Feb 12, 2025

Same error compiling the same commit with the Go 1.24.0 release. It works with Go 1.23.6 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants