The project doesn't get compiled out of the box with rustc 1.20.0-nightly (bf0a9e0b4 2017-07-10). Instead of the forked version of bindgen (which doesn't get compiled), I used the original one which generates a kernel binding that uses std crate everywhere. A snippet looks like:
While compiling, I get the following errors (a lot of similar ones because of use of std crate).
error[E0433]: failed to resolve. Could not find `marker` in `std`
--> std/src/os/kernel.rs:5:38
|
5 | pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `marker` in `std`
I wonder how the original project was even compiled. Any idea how can I get around the issue?
The project doesn't get compiled out of the box with
rustc 1.20.0-nightly (bf0a9e0b4 2017-07-10)
. Instead of the forked version of bindgen (which doesn't get compiled), I used the original one which generates a kernel binding that usesstd
crate everywhere. A snippet looks like:While compiling, I get the following errors (a lot of similar ones because of use of
std
crate).I wonder how the original project was even compiled. Any idea how can I get around the issue?