ch32-rs / wchisp

Rust-based Command Line Tool for WCH MCU USB-ISP Programming
https://ch32-rs.github.io/wchisp/
GNU General Public License v2.0
174 stars 29 forks source link

Arch Linux build errors #25

Closed taotieren closed 3 weeks ago

taotieren commented 1 year ago

AUR wchisp-git

❯ makepkg -sf
==> Making package: wchisp-git 0.2.0.r5.gb3143d6-1 (Mon 20 Feb 2023 10:13:44 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating wchisp git repo...
remote: Enumerating objects: 106, done.
remote: Counting objects: 100% (106/106), done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 106 (delta 67), reused 79 (delta 40), pack-reused 0
Receiving objects: 100% (106/106), 26.12 KiB | 361.00 KiB/s, done.
Resolving deltas: 100% (67/67), completed with 6 local objects.
From https://github.com/ch32-rs/wchisp
   b3143d6..c03033c  main       -> main
 * [new tag]         v0.2.2     -> v0.2.2
==> Validating source files with sha256sums...
    wchisp ... Skipped
==> Extracting sources...
  -> Creating working copy of wchisp git repo...
Cloning into 'wchisp'...
done.
==> Starting pkgver()...
==> Updated version: wchisp-git 0.2.2.r1.gc03033c-1
==> Removing existing $pkgdir/ directory...
==> Starting build()...
    Updating `rsproxy` index
   Compiling libc v0.2.139
   Compiling proc-macro2 v1.0.51
   Compiling unicode-ident v1.0.6
   Compiling quote v1.0.23
   Compiling syn v1.0.107
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling io-lifetimes v1.0.5
   Compiling pkg-config v0.3.26
   Compiling cc v1.0.79
   Compiling autocfg v1.1.0
   Compiling rustix v0.36.8
   Compiling serde_derive v1.0.152
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling getrandom v0.2.8
   Compiling indexmap v1.9.2
   Compiling time-core v0.1.0
   Compiling itoa v1.0.5
   Compiling memchr v2.5.0
   Compiling serde v1.0.152
   Compiling log v0.4.17
   Compiling bitflags v1.3.2
   Compiling linux-raw-sys v0.1.4
   Compiling portable-atomic v0.3.19
   Compiling time-macros v0.2.7
   Compiling rand_core v0.6.4
   Compiling heck v0.4.1
   Compiling ppv-lite86 v0.2.17
   Compiling unicode-width v0.1.10
   Compiling lazy_static v1.4.0
   Compiling termcolor v1.1.3
   Compiling rusb v0.9.1
   Compiling hashbrown v0.12.3
   Compiling anyhow v1.0.69
   Compiling os_str_bytes v6.4.1
   Compiling num_threads v0.1.6
   Compiling clap_lex v0.3.1
   Compiling is-terminal v0.4.3
   Compiling console v0.15.5
   Compiling rand_chacha v0.3.1
   Compiling strsim v0.10.0
   Compiling libusb1-sys v0.6.4
   Compiling number_prefix v0.4.0
   Compiling once_cell v1.17.1
   Compiling unsafe-libyaml v0.2.5
   Compiling ryu v1.0.12
   Compiling object v0.30.3
   Compiling indicatif v0.17.3
   Compiling rand v0.8.5
   Compiling ihex v3.0.0
   Compiling scroll v0.11.0
   Compiling time v0.3.19
   Compiling hxdmp v0.2.1
   Compiling bitfield v0.14.0
   Compiling hex v0.4.3
   Compiling simplelog v0.12.0
   Compiling clap_derive v4.1.0
   Compiling clap v4.1.6
   Compiling serde_yaml v0.9.17
   Compiling wchisp v0.2.2 (/home/taotieren/git_clone/aur/wchisp-git/src/wchisp)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/tmp/rustcdFumMQ/symbols.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.0.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.1.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.10.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.11.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.12.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.13.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.14.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.15.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.2.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.3.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.4.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.5.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.6.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.7.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.8.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.9.rcgu.o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.1c3aws5i10xp0c48.rcgu.o" "-Wl,--as-needed" "-L" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps" "-L" "/usr/lib" "-L" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/build/libusb1-sys-6598c8a916672a20/out" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libsimplelog-3943ba4c934b8ccc.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libtime-3fd6c2683f893dcb.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libnum_threads-02851a2984a0c4fa.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libtime_core-0139ca61cc1d2f55.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librand-b390ce0505827814.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librand_chacha-d5f8d8578d65fff3.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libppv_lite86-51eca294730f1af3.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librand_core-d3649ef3c8cda8b4.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libgetrandom-ed471a7ba1817f2e.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libhex-af00c5566278341d.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libserde_yaml-8a22bd72179d4a25.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libryu-bc6417eb3eb8f22f.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libitoa-d6f99435c3a732f8.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libindexmap-8f79c68a0423253b.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libhashbrown-24b73a10181ce31a.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libunsafe_libyaml-00320f3db13bb092.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/liblog-65435d33dc7ffa7d.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libcfg_if-2b86fca518e7ecfd.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librusb-4c2828f903d02b30.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/liblibusb1_sys-111440da91cc287e.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libihex-6f6d8e2ae7cd7c98.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libobject-a042e101d1d14f2f.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libmemchr-c82f70f7463a7251.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libscroll-28a61abb0192f70d.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libindicatif-06f34c7d2d8d4f96.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libportable_atomic-629964c859510275.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libnumber_prefix-0c7e8e02149f2e92.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libconsole-7e0a3111f4d11995.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libunicode_width-c5ec3c9524ac51b5.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/liblazy_static-e00a40b342d1f56a.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libserde-5c02d27d41676853.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libhxdmp-ba02190cff1b8d88.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libclap-53bb77b7d3e87f59.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libstrsim-22d45ab17626c06f.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libis_terminal-7935fe05602e5c4d.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librustix-6da6c05046c1ff21.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/liblinux_raw_sys-103031f6b45359e4.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libio_lifetimes-e125fe3088a1216d.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/liblibc-995df1f15df0eb14.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libclap_lex-db32a02f5594ab06.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libos_str_bytes-1987b61beb21eebf.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libtermcolor-9d6dfadc3c412196.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libbitflags-c63924ca54ffdc26.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libonce_cell-a04430755754a46e.rlib" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libanyhow-a82a6d72a763bae9.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-395fb2ae9696d969.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-38411bfba7aeadeb.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-9922a893b21544ab.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-4949247c63aec0f0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-1caa7bac47f576cc.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-bfe4fd3acc42f45b.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-fd7b47a9807255a1.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-e2f4e6e45677421d.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-663b98f0a33ecc77.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-e89c0daeecbf782a.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-a623de7ec9806de0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-45e00322a7725e4e.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-217ad1a16e9ddee9.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-b61caa722ac46178.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-e40f61fb844d48e8.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-cafb2c75df3af6b5.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-9731f2ff8fa61ace.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-b31046ea137e19dd.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b3a1ba043fa80bb1.rlib" "-Wl,-Bdynamic" "-ludev" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `<core::iter::adapters::filter::Filter<I,P> as core::iter::traits::iterator::Iterator>::next':
          wchisp.9674db75-cgu.14:(.text._ZN108_$LT$core..iter..adapters..filter..Filter$LT$I$C$P$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17he483056419b86f72E+0x57): undefined reference to `libusb_ref_device'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN108_$LT$core..iter..adapters..filter..Filter$LT$I$C$P$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17he483056419b86f72E+0x6c): undefined reference to `libusb_get_device_descriptor'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN108_$LT$core..iter..adapters..filter..Filter$LT$I$C$P$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17he483056419b86f72E+0x127): undefined reference to `libusb_unref_device'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `core::ptr::drop_in_place<rusb::device::Device<rusb::context::Context>>':
          wchisp.9674db75-cgu.14:(.text._ZN4core3ptr71drop_in_place$LT$rusb..device..Device$LT$rusb..context..Context$GT$$GT$17h244d8c44a76ac209E+0xd): undefined reference to `libusb_unref_device'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `core::ptr::drop_in_place<rusb::device_list::DeviceList<rusb::context::Context>>':
          wchisp.9674db75-cgu.14:(.text._ZN4core3ptr80drop_in_place$LT$rusb..device_list..DeviceList$LT$rusb..context..Context$GT$$GT$17ha87d56d9b1536088E+0x11): undefined reference to `libusb_free_device_list'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `core::ptr::drop_in_place<core::option::Option<rusb::device::Device<rusb::context::Context>>>':
          wchisp.9674db75-cgu.14:(.text._ZN4core3ptr99drop_in_place$LT$core..option..Option$LT$rusb..device..Device$LT$rusb..context..Context$GT$$GT$$GT$17hfc3535e80c440673E+0x13): undefined reference to `libusb_unref_device'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `wchisp::transport::usb::UsbTransport::scan_devices':
          wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport12scan_devices17hd340870fc0b04468E+0x52): undefined reference to `libusb_get_device_list'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport12scan_devices17hd340870fc0b04468E+0xe8): undefined reference to `libusb_free_device_list'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `wchisp::transport::usb::UsbTransport::open_nth':
          wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0x5b): undefined reference to `libusb_get_device_list'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0xf5): undefined reference to `libusb_unref_device'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0x281): undefined reference to `libusb_free_device_list'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0x31d): undefined reference to `libusb_open'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0x34c): undefined reference to `libusb_unref_device'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0x395): undefined reference to `libusb_free_device_list'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport3usb12UsbTransport8open_nth17h535ea317e07d9846E+0x44a): undefined reference to `libusb_get_config_descriptor'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `<wchisp::transport::usb::UsbTransport as core::ops::drop::Drop>::drop':
          wchisp.9674db75-cgu.14:(.text._ZN78_$LT$wchisp..transport..usb..UsbTransport$u20$as$u20$core..ops..drop..Drop$GT$4drop17h49e09604bae78c23E+0x15): undefined reference to `libusb_release_interface'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `<wchisp::transport::usb::UsbTransport as wchisp::transport::Transport>::send_raw':
          wchisp.9674db75-cgu.14:(.text._ZN85_$LT$wchisp..transport..usb..UsbTransport$u20$as$u20$wchisp..transport..Transport$GT$8send_raw17hb180da6873f38bb4E+0x22): undefined reference to `libusb_bulk_transfer'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `<wchisp::transport::usb::UsbTransport as wchisp::transport::Transport>::recv_raw':
          wchisp.9674db75-cgu.14:(.text._ZN85_$LT$wchisp..transport..usb..UsbTransport$u20$as$u20$wchisp..transport..Transport$GT$8recv_raw17h1a3b86520f8ab73fE+0x63): undefined reference to `libusb_bulk_transfer'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.14.rcgu.o): in function `wchisp::transport::Transport::transfer':
          wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport9Transport8transfer17h7c4c5c9ad5075c65E+0x1f0): undefined reference to `libusb_bulk_transfer'
          /usr/bin/ld: wchisp.9674db75-cgu.14:(.text._ZN6wchisp9transport9Transport8transfer17h7c4c5c9ad5075c65E+0x23b): undefined reference to `libusb_bulk_transfer'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.15.rcgu.o): in function `core::ptr::drop_in_place<wchisp::transport::usb::UsbTransport>':
          wchisp.9674db75-cgu.15:(.text._ZN4core3ptr57drop_in_place$LT$wchisp..transport..usb..UsbTransport$GT$17h1e0c9c0acad93e31E+0x14): undefined reference to `libusb_release_interface'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/wchisp-42ea2b597006a95a.wchisp.c6888b78-cgu.4.rcgu.o: in function `<rusb::device_handle::DeviceHandle<T> as core::ops::drop::Drop>::drop':
          wchisp.c6888b78-cgu.4:(.text._ZN84_$LT$rusb..device_handle..DeviceHandle$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17h0fdfaa99e527d67dE+0x41): undefined reference to `libusb_release_interface'
          /usr/bin/ld: wchisp.c6888b78-cgu.4:(.text._ZN84_$LT$rusb..device_handle..DeviceHandle$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17h0fdfaa99e527d67dE+0x74): undefined reference to `libusb_close'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.11.rcgu.o): in function `rusb::device_handle::DeviceHandle<T>::claim_interface':
          wchisp.9674db75-cgu.11:(.text._ZN4rusb13device_handle21DeviceHandle$LT$T$GT$15claim_interface17h15f236d8d27832ddE+0x17): undefined reference to `libusb_claim_interface'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.11.rcgu.o): in function `rusb::device_handle::DeviceHandle<T>::set_active_configuration':
          wchisp.9674db75-cgu.11:(.text._ZN4rusb13device_handle21DeviceHandle$LT$T$GT$24set_active_configuration17h6a9aa8694d0bbba3E+0x10): undefined reference to `libusb_set_configuration'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.11.rcgu.o): in function `<rusb::device_handle::DeviceHandle<T> as core::ops::drop::Drop>::drop':
          wchisp.9674db75-cgu.11:(.text._ZN84_$LT$rusb..device_handle..DeviceHandle$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17ha3858d19ee2c5d98E+0x41): undefined reference to `libusb_release_interface'
          /usr/bin/ld: wchisp.9674db75-cgu.11:(.text._ZN84_$LT$rusb..device_handle..DeviceHandle$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17ha3858d19ee2c5d98E+0x74): undefined reference to `libusb_close'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.6.rcgu.o): in function `<core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold':
          wchisp.9674db75-cgu.6:(.text._ZN102_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h3b7fbee3586b9693E+0x44): undefined reference to `libusb_get_device_descriptor'
          /usr/bin/ld: wchisp.9674db75-cgu.6:(.text._ZN102_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h3b7fbee3586b9693E+0x50): undefined reference to `libusb_unref_device'
          /usr/bin/ld: wchisp.9674db75-cgu.6:(.text._ZN102_$LT$core..iter..adapters..map..Map$LT$I$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4fold17h3b7fbee3586b9693E+0x9e): undefined reference to `libusb_ref_device'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.6.rcgu.o): in function `core::ptr::drop_in_place<rusb::device::Device<rusb::context::Context>>':
          wchisp.9674db75-cgu.6:(.text._ZN4core3ptr71drop_in_place$LT$rusb..device..Device$LT$rusb..context..Context$GT$$GT$17h244d8c44a76ac209E+0xd): undefined reference to `libusb_unref_device'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.6.rcgu.o): in function `rusb::device::Device<T>::device_descriptor':
          wchisp.9674db75-cgu.6:(.text._ZN4rusb6device15Device$LT$T$GT$17device_descriptor17he4c01f64bc208920E+0x13): undefined reference to `libusb_get_device_descriptor'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.6.rcgu.o): in function `rusb::device::Device<T>::active_config_descriptor':
          wchisp.9674db75-cgu.6:(.text._ZN4rusb6device15Device$LT$T$GT$24active_config_descriptor17h3e5563cf077a03bfE+0x13): undefined reference to `libusb_get_active_config_descriptor'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/libwchisp-52de9e0949f2101c.rlib(wchisp-52de9e0949f2101c.wchisp.9674db75-cgu.6.rcgu.o): in function `<rusb::device::Device<T> as core::fmt::Debug>::fmt':
          wchisp.9674db75-cgu.6:(.text._ZN66_$LT$rusb..device..Device$LT$T$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h80696cd3aa3adea8E+0x22): undefined reference to `libusb_get_device_descriptor'
          /usr/bin/ld: wchisp.9674db75-cgu.6:(.text._ZN66_$LT$rusb..device..Device$LT$T$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h80696cd3aa3adea8E+0xb6): undefined reference to `libusb_get_bus_number'
          /usr/bin/ld: wchisp.9674db75-cgu.6:(.text._ZN66_$LT$rusb..device..Device$LT$T$GT$$u20$as$u20$core..fmt..Debug$GT$3fmt17h80696cd3aa3adea8E+0xc3): undefined reference to `libusb_get_device_address'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librusb-4c2828f903d02b30.rlib(rusb-4c2828f903d02b30.rusb.f34616fc-cgu.3.rcgu.o): in function `<rusb::config_descriptor::ConfigDescriptor as core::ops::drop::Drop>::drop':
          rusb.f34616fc-cgu.3:(.text._ZN83_$LT$rusb..config_descriptor..ConfigDescriptor$u20$as$u20$core..ops..drop..Drop$GT$4drop17hefcb2b5a2d9a27bcE+0x5): undefined reference to `libusb_free_config_descriptor'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librusb-4c2828f903d02b30.rlib(rusb-4c2828f903d02b30.rusb.f34616fc-cgu.4.rcgu.o): in function `core::ptr::drop_in_place<alloc::sync::ArcInner<rusb::context::ContextInner>>':
          rusb.f34616fc-cgu.4:(.text._ZN4core3ptr77drop_in_place$LT$alloc..sync..ArcInner$LT$rusb..context..ContextInner$GT$$GT$17h5afaeeb33e032a52E+0x2): undefined reference to `libusb_exit'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librusb-4c2828f903d02b30.rlib(rusb-4c2828f903d02b30.rusb.f34616fc-cgu.4.rcgu.o): in function `<rusb::context::ContextInner as core::ops::drop::Drop>::drop':
          rusb.f34616fc-cgu.4:(.text._ZN69_$LT$rusb..context..ContextInner$u20$as$u20$core..ops..drop..Drop$GT$4drop17h5a04276ff2486cb4E+0x5): undefined reference to `libusb_exit'
          /usr/bin/ld: /home/taotieren/git_clone/aur/wchisp-git/src/wchisp/target/release/deps/librusb-4c2828f903d02b30.rlib(rusb-4c2828f903d02b30.rusb.f34616fc-cgu.4.rcgu.o): in function `rusb::context::Context::new':
          rusb.f34616fc-cgu.4:(.text._ZN4rusb7context7Context3new17h9aef9d72f8044560E+0xc): undefined reference to `libusb_init'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `wchisp` due to previous error
==> ERROR: A failure occurred in build().
    Aborting...
andelf commented 1 year ago

libusb is required to build wchisp.

syx-413 commented 10 months ago

https://archlinux.org/packages/?sort=&q=libusb&maintainer=&flagged=

froscon2024 commented 4 weeks ago

This can be closed because its fixed. I tested the Arch Linux wchisp-git AUR and this worked now fine. @taotieren have fixed it here already many months ago: https://aur.archlinux.org/cgit/aur.git/commit/?h=wchisp-git&id=5735457a661a4aaf69576047e43e3ab129fc21f1