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 on Linux #297

Closed
Tracked by #157782
andreas-hartmann opened this issue Sep 14, 2023 · 4 comments
Closed
Tracked by #157782

Build fails on Linux #297

andreas-hartmann opened this issue Sep 14, 2023 · 4 comments

Comments

@andreas-hartmann
Copy link

andreas-hartmann commented Sep 14, 2023

Build fails on Arch Linux:

usb/lowlevel/libusb/libusb.go:405:10: cannot define new methods on non-local type *C.struct_libusb_endpoint_descriptor
usb/lowlevel/libusb/libusb.go:455:10: cannot define new methods on non-local type *C.struct_libusb_interface_descriptor
usb/lowlevel/libusb/libusb.go:510:10: cannot define new methods on non-local type *C.struct_libusb_interface
usb/lowlevel/libusb/libusb.go:557:10: cannot define new methods on non-local type *C.struct_libusb_config_descriptor
usb/lowlevel/libusb/libusb.go:615:10: cannot define new methods on non-local type *C.struct_libusb_ss_endpoint_companion_descriptor
usb/lowlevel/libusb/libusb.go:639:10: cannot define new methods on non-local type *C.struct_libusb_bos_dev_capability_descriptor
usb/lowlevel/libusb/libusb.go:662:10: cannot define new methods on non-local type *C.struct_libusb_bos_descriptor
usb/lowlevel/libusb/libusb.go:694:10: cannot define new methods on non-local type *C.struct_libusb_usb_2_0_extension_descriptor
usb/lowlevel/libusb/libusb.go:721:10: cannot define new methods on non-local type *C.struct_libusb_ss_usb_device_capability_descriptor
usb/lowlevel/libusb/libusb.go:749:10: cannot define new methods on non-local type *C.struct_libusb_container_id_descriptor
usb/lowlevel/libusb/libusb.go:796:10: cannot define new methods on non-local type *C.struct_libusb_device_descriptor
usb/lowlevel/libusb/libusb.go:866:10: cannot define new methods on non-local type *C.struct_libusb_transfer
usb/lowlevel/libusb/libusb.go:895:10: cannot define new methods on non-local type *C.struct_libusb_version

And build-release fails with:

  Try re-running cargo install with --locked
The command '/bin/sh -c cargo install apple-codesign' returned a non-zero code: 101
make[2]: *** [Makefile:47: .docker-image] Error 101
make[2]: Leaving directory '/home/andreas/Documents/Projects/trezord-go/release/macos'
make[1]: *** [Makefile:9: macos] Error 2
make[1]: Leaving directory '/home/andreas/Documents/Projects/trezord-go/release'
make: *** [Makefile:5: build-release] Error 2```
@BrettCleary
Copy link

I am experiencing the same usb/lowlevel/libusb/libusb.go errors building on Arch Linux

@BrettCleary
Copy link

I can confirm this error is occurring on go 1.21 but not on 1.20

prusnak pushed a commit to NixOS/nixpkgs that referenced this issue Oct 23, 2023
@salfter
Copy link

salfter commented Dec 1, 2023

Same issue with Gentoo Linux.

@tsusanka
Copy link
Contributor

tsusanka commented Jan 5, 2024

Should be fixed by #300.

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

4 participants