Giter VIP home page Giter VIP logo

iokit-sys's People

Contributors

dcuddeback avatar dhylands avatar forticulous avatar ndusart avatar ticky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iokit-sys's Issues

Can't build on macOS Catalina

$ cargo run --example list_serial_ports
warning: unnecessary parentheses around assigned value
   --> src/types.rs:113:39
    |
113 | pub const kTickScale:         c_int = (kSecondScale / 100);
    |                                       ^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
    |
    = note: `#[warn(unused_parens)]` on by default

warning: 1 warning emitted

   Compiling IOKit-sys v0.1.5 (/Users/USERNAME/Sources/iokit-sys)
warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
  --> examples/list_serial_ports.rs:49:52
   |
49 |         let mut matching_services: io_iterator_t = mem::uninitialized();
   |                                                    ^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
  --> examples/list_serial_ports.rs:63:29
   |
63 |             let mut props = mem::uninitialized();
   |                             ^^^^^^^^^^^^^^^^^^

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.1b88k5gnk07ps6vf.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.1cfu9o9jq6ggq3c3.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.1edfaggljo0lkni4.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.24hxr7bvxmy8847g.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.2ejo438quw1akql0.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.2h7ai48ekoggnpq9.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.2iho4j0tveq6rhxf.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.2js4jgt2gwyx0xer.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.31m7e050pvi8awz7.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3hpjd9vmqrex1q56.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3ibq43pu9vtplkaw.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3plb3tj3fkv15qb8.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3s87w3mjdm7eo9iw.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3zizax5fe5vlbvyw.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3zr9vyal8hkb00vi.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.40pcxkorugtwt6qv.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.41eom04t4zzpwk30.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.461pphbjv6yd06i8.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.47jpyhl3rl9m7f7s.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.4agp9bkh5cficw5w.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.4aj8flhgankrij4z.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.4ayq6yj7tn4avfak.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.4jidu81cs081tsd9.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.4z69q9shr5eu9xso.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.4zdllzti6mt5z8a1.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.57zk2qxxzod7oa2t.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.5cl71oqu8g9wumsj.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.5co1efusztvljexg.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.5d11yo0wmvjvac95.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.60nz0oukyab0lko.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.8p0f2fpvivvibku.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.go46qxmgv4ko7qe.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.hjn168dgrbzsthw.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.i5qvi2gclu2nr14.rcgu.o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.p18pb6wpvonukab.rcgu.o" "-o" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1" "/Users/USERNAME/Sources/iokit-sys/target/debug/examples/list_serial_ports-c7232d82b51282f1.3slpne49vck5qe9c.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/USERNAME/Sources/iokit-sys/target/debug/deps" "-L" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/USERNAME/Sources/iokit-sys/target/debug/deps/libIOKit_sys-050c8e9cfc3fae64.rlib" "/Users/USERNAME/Sources/iokit-sys/target/debug/deps/libCoreFoundation_sys-064b7e146ea27cf2.rlib" "/Users/USERNAME/Sources/iokit-sys/target/debug/deps/libmach-7a5b7789cafc2185.rlib" "/Users/USERNAME/Sources/iokit-sys/target/debug/deps/liblibc-2363e4ccb47d550a.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-cef4e032cad025ad.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a0dbc9da17125acb.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-be16c55789af999a.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-7323f6a9a844a3dc.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-a3f1c7c80bfedc56.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-4b4e51163bf60e21.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-a4569d4d3725ef76.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-7d1ef8925268e123.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-709a2b0cfa362a8d.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-98194019dd82bdcf.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-38feed196e113296.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-37c2c6822f6e4416.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-2e6e530c778a3583.rlib" "/Users/USERNAME/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-0d81316630962f56.rlib" "-framework" "IOKit" "-framework" "CoreFoundation" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: framework not found IOKit
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to previous error; 2 warnings emitted

error: could not compile `IOKit-sys`.

To learn more, run the command again with --verbose.

System info:

$ rustc --version
rustc 1.45.0-nightly (7ced01a73 2020-04-30)

$ uname -a
Darwin hostname.local 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64 i386 MacBookAir8,1 Darwin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.