Skip to content

Can't linkt to usbi_backend on FreeBSD #233

@JohnAZoidberg

Description

@JohnAZoidberg
[I] zoid@freebsd-14 ~/c/framework-system (main)> cargo build                                                                                 00:53:49 [9/1891]   Compiling framework_tool v0.4.5 (/home/zoid/clone/framework-system/framework_tool)                                                                         error: linking with `cc` failed: exit status: 1                                                                                                                 |                                                                                                                                                             = note:  "cc" "-m64" "/tmp/rustc3asPFs/symbols.o" "<10 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/zoid/clone/framework-system/target/debug/deps/{libframework_lib-35378b4d29995ce8.rlib,libenv_logger-04bef83ee9be298c.rlib,libenv_filter-c89be49df3163007.rlib,libhumantime-d29ff6434c0ff3a9.rlib,libclap_verbosity_flag-e45dc46bf8666364.rlib,libnix-59b40da7f4564992.rlib,libbitflags-c7435eeb72db786b.rlib,libregex-cbaa0bde31e25fde.rlib,libregex_automata-7d5e2214a7084c9c.rlib,libaho_corasick-4b64121b76fb3ffd.rlib,libmemchr-7b5a8686d35228db.rlib,libregex_syntax-19e5505aad8bfe89.rlib,libsmbioslib-222bd629d0623a0a.rlib,libserde-97e117d12c3426c4.rlib,libno_std_compat-9cf071ce66542d1a.rlib,libsha2-1d826dca547c15fd.rlib,libdigest-3fe86520e9fff298.rlib,libblock_buffer-53ab8872b227f901.rlib,libcrypto_common-3af4454a6de72fe6.rlib,libgeneric_array-f492e7166c2c9e62.rlib,libtypenum-caae311467a43856.rlib,libclap_num-e44d54334fe9a751.rlib,libclap-f3b1219b3db9c938.rlib,libclap_builder-d31167a2fc4857d7.rlib,libstrsim-42aaec83a6efee5d.rlib,libanstream-004257c001edb751.rlib,libanstyle_query-67430bb438f25e2e.rlib,libis_terminal_polyfill-90f9ebb1549a522b.rlib,libcolorchoice-80a9f08fe125eb3a.rlib,libanstyle_parse-8458bdac9b8c81b6.rlib,libutf8parse-11b0e70a1a20a1cc.rlib,libclap_lex-69f7a0020998335c.rlib,libanstyle-9e9665d5aa5ee8af.rlib,libspin-7cd822e279df950f.rlib,liblock_api-a0a7bffbd0f393ad.rlib,libscopeguard-ffe7ebdd8fc55c1d.rlib,libnum-7c853f665e0e6403.rlib,libnum_iter-1557d436fe575860.rlib,libnum_rational-4bf3c204f49a32d1.rlib,libnum_integer-d288ecd46e481bea.rlib,libnum_complex-8a2c9964db145ac4.rlib,libhwio-4d5f672712656e5e.rlib,libnix-1a0a6bf660a1e411.rlib,libmemoffset-e931a32911a68e82.rlib,libpin_utils-69ce5dbec
36e3dd1.rlib,libbitflags-13207ed20d7b5084.rlib,libnum_traits-9b21e84efe8674fa.rlib,libguid_create-4e21807e7149837a.rlib,libhidapi-721153196ebf1b14.rlib,libcfg
_if-f875737e1b72df39.rlib,librusb-a0106ae2c157c134.rlib,liblibusb1_sys-cc2dfc818a237f9d.rlib,liblibc-d45a315b0711059d.rlib,liblog-57d52fa31c1769e0.rlib,liblaz
y_static-b7eeab752a551f9f.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-freebsd/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,lib
gimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,libru
stc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lhidapi" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lmemstat" "-lkvm
" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-lexecinfo" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lmemstat" 
"-lkvm" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-L" "/tmp/rustc3asPFs/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/zoid/clone/framework
-system/target/debug/build/libusb1-sys-8b6233640d6ff0bb/out" "-L" "<sysroot>/lib" "-o" "/home/zoid/clone/framework-system/target/debug/deps/framework_tool-48f
e7d53ff7f19cb" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld: error: undefined symbol: usbi_backend
          >>> referenced by descriptor.c:483 (libusb/libusb/descriptor.c:483)
          >>>               descriptor.o:(get_active_config_descriptor) in archive /home/zoid/clone/framework-system/target/debug/deps/liblibusb1_sys-cc2dfc81
8a237f9d.rlib
          >>> referenced by descriptor.c:503 (libusb/libusb/descriptor.c:503)
          >>>               descriptor.o:(get_config_descriptor) in archive /home/zoid/clone/framework-system/target/debug/deps/liblibusb1_sys-cc2dfc818a237f9
d.rlib
          >>> referenced by io.c:1296 (libusb/libusb/io.c:1296)
          >>>               io.o:(libusb_alloc_transfer) in archive /home/zoid/clone/framework-system/target/debug/deps/liblibusb1_sys-cc2dfc818a237f9d.rlib
          >>> referenced 26 more times
          cc: error: linker command failed with exit code 1 (use -v to see invocation)
           

error: could not compile `framework_tool` (bin "framework_tool") due to 1 previous error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions