Giter Site home page Giter Site logo

ferroc's People

Contributors

dependabot[bot] avatar js2xxx avatar

Stargazers

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

Watchers

 avatar

Forkers

phlip9

ferroc's Issues

macosx nightly-aarch64-apple-darwin 编译错误

error[E0308]: mismatched types
--> /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferroc-0.1.3/src/global/thread.rs:64:70
|
64 | let ret = $crate::global::thread::pthread_key_create(&mut key, Some(dtor));
| ------------------------------------------ ^^^^^^^^ expected *mut u64, found &mut u32
| |
| arguments to this function are incorrect
|
::: /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferroc-0.1.3/src/lib.rs:153:1
|
153 | config_mod!(global_mmap: pub crate::base::Mmap: pthread);
| -------------------------------------------------------- in this macro invocation
|
= note: expected raw pointer *mut u64
found mutable reference &mut u32
note: function defined here
--> /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/mod.rs:1074:12
|
1074 | pub fn pthread_key_create(
| ^^^^^^^^^^^^^^^^^^
= note: this error originates in the macro $crate::thread_init_pthread which comes from the expansion of the macro config_mod (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
--> /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferroc-0.1.3/src/global/thread.rs:69:72
|
69 | let _ = $crate::global::thread::pthread_key_delete(key);
| ------------------------------------------ ^^^ expected u64, found u32
| |
| arguments to this function are incorrect
|
::: /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferroc-0.1.3/src/lib.rs:153:1
|
153 | config_mod!(global_mmap: pub crate::base::Mmap: pthread);
| -------------------------------------------------------- in this macro invocation
|
note: function defined here
--> /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/mod.rs:1078:12
|
1078 | pub fn pthread_key_delete(key: pthread_key_t) -> ::c_int;
| ^^^^^^^^^^^^^^^^^^
= note: this error originates in the macro $crate::thread_init_pthread which comes from the expansion of the macro config_mod (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can convert a u32 to a u64
|
69 | let _ = $crate::global::thread::pthread_key_delete(key.into());
| +++++++

error[E0308]: mismatched types
--> /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferroc-0.1.3/src/global/thread.rs:73:67
|
73 | let ret = $crate::global::thread::pthread_setspecific(key, data);
| ------------------------------------------- ^^^ expected u64, found u32
| |
| arguments to this function are incorrect
|
::: /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ferroc-0.1.3/src/lib.rs:153:1
|
153 | config_mod!(global_mmap: pub crate::base::Mmap: pthread);
| -------------------------------------------------------- in this macro invocation
|
note: function defined here
--> /Users/gqf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.153/src/unix/mod.rs:1080:12
|
1080 | pub fn pthread_setspecific(key: pthread_key_t, value: *const ::c_void) -> ::c_int;
| ^^^^^^^^^^^^^^^^^^^
= note: this error originates in the macro $crate::thread_init_pthread which comes from the expansion of the macro config_mod (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can convert a u32 to a u64
|
73 | let ret = $crate::global::thread::pthread_setspecific(key.into(), data);
| +++++++

For more information about this error, try rustc --explain E0308.
error: could not compile ferroc (lib) due to 3 previous errors

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.