Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Regression: probe-run 0.3.1 fails to install on Ubuntu 20.04 LTS #289

Closed
D1plo1d opened this issue Nov 28, 2021 · 8 comments
Closed

Regression: probe-run 0.3.1 fails to install on Ubuntu 20.04 LTS #289

D1plo1d opened this issue Nov 28, 2021 · 8 comments
Labels
type: bug Something isn't working

Comments

@D1plo1d
Copy link

D1plo1d commented Nov 28, 2021

Describe the bug

probe-run v0.3.1 fails to install on my system (Ubuntu 20.04 LTS) however v0.3.0 installs without issue.

To Reproduce
Steps to reproduce the behavior:

  1. Using ubuntu 20.04 LTS install libusb-1.0.0-dev and libudev-dev:
libusb-1.0-0-dev is already the newest version (2:1.0.23-2build1).
libudev-dev is already the newest version (245.4-4ubuntu3.13).
  1. cargo install probe-run --version 0.3.0
  2. This install succeeds without issue.
  3. cargo install probe-run --version 0.3.1
  4. This install returns a ld error indicating none of the libusb functions can be found. This is a snippet, the actual error is quite long:
  = note: /usr/bin/ld: /tmp/cargo-installsMCyEP/release/deps/libprobe_rs-81ef77483e944b7b.rlib(probe_rs-81ef77483e944b7b.probe_rs.d6551148-cgu.10.rcgu.o): in function `core::ptr::drop_in_place<probe_rs::probe::stlink::StLink<probe_rs::probe::stlink::usb_interface::StLinkUsbDevice>>':
          probe_rs.d6551148-cgu.10:(.text._ZN4core3ptr115drop_in_place$LT$probe_rs..probe..stlink..StLink$LT$probe_rs..probe..stlink..usb_interface..StLinkUsbDevice$GT$$GT$17hd8cb3aba2093ebeaE+0x1b): undefined reference to `libusb_release_interface'
          /usr/bin/ld: probe_rs.d6551148-cgu.10:(.text._ZN4core3ptr115drop_in_place$LT$probe_rs..probe..stlink..StLink$LT$probe_rs..probe..stlink..usb_interface..StLinkUsbDevice$GT$$GT$17hd8cb3aba2093ebeaE+0x6b): undefined reference to `libusb_release_interface'
          /usr/bin/ld: probe_rs.d6551148-cgu.10:(.text._ZN4core3ptr115drop_in_place$LT$probe_rs..probe..stlink..StLink$LT$probe_rs..probe..stlink..usb_interface..StLinkUsbDevice$GT$$GT$17hd8cb3aba2093ebeaE+0x99): undefined reference to `libusb_close'
          /usr/bin/ld: /tmp/cargo-installsMCyEP/release/deps/libprobe_rs-81ef77483e944b7b.rlib(probe_rs-81ef77483e944b7b.probe_rs.d6551148-cgu.10.rcgu.o): in function `core::ptr::drop_in_place<probe_rs::probe::jlink::JLink>':
          probe_rs.d6551148-cgu.10:(.text._ZN4core3ptr50drop_in_place$LT$probe_rs..probe..jlink..JLink$GT$17h11510fa310c582a4E+0x40): undefined reference to `libusb_release_interface'
@D1plo1d
Copy link
Author

D1plo1d commented Nov 28, 2021

This appears to be an rusb issue by way of probe-rs: a1ien/rusb#117

The workaround for now is to remove older versions of libusb and then re-try installing probe-run:
sudo apt remove libusb-dev libusb-0.1-4

@senden9
Copy link

senden9 commented Nov 29, 2021

Hi!
Thanks for the diagnosis. Had exactly the same problem on the same OS version. Your solution worked fine for me.

@Urhengulas Urhengulas added this to Incoming in Issue Triage via automation Dec 1, 2021
@Urhengulas Urhengulas added the type: bug Something isn't working label Dec 1, 2021
@a1ien
Copy link

a1ien commented Apr 27, 2022

In libusb1-sys 0.6.2 this problem should be fixed

@Urhengulas
Copy link
Member

@a1ien said:

In libusb1-sys 0.6.2 this problem should be fixed

Thank you! But I think we still need to wait for a new rusb version and then a new probe-rs.

@jonas-schievink
Copy link
Contributor

According to our lockfile, we're already using libusb1-sys 0.6.2.

@Urhengulas
Copy link
Member

According to our lockfile, we're already using libusb1-sys 0.6.2.

That's nice. So I think we are done here :)

Issue Triage automation moved this from Incoming to Closed Jul 25, 2022
@jonas-schievink
Copy link
Contributor

Needs a probe-run release though

@Urhengulas
Copy link
Member

Needs a probe-run release though

That's long overdue anyways 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

5 participants