Comments (5)
I think you need to update
Line 13 in 4157b89
from linux-raw-sys.
Currently all the users of linux-raw-sys that I know of only depend on it on architectures which it supports. Can you say more about the context where you're seeing this error?
from linux-raw-sys.
I've got the same error when cross-compiling a native rust according to this instruction.
Building tool cargo (stage1:x86_64-unknown-linux-gnu -> stage2:loongarch64-unknown-linux-gnu)
Compiling linux-raw-sys v0.1.4
error[E0432]: unresolved import `crate::general`
--> /usr/src/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linux-raw-sys-0.1.4/src/lib.rs:84:16
|
84 | use crate::general::{cmsghdr, msghdr};
| ^^^^^^^ could not find `general` in the crate root
error[E0433]: failed to resolve: use of undeclared crate or module `general`
--> /usr/src/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linux-raw-sys-0.1.4/src/lib.rs:67:20
|
67 | impl PartialEq for general::__kernel_timespec {
| ^^^^^^^ use of undeclared crate or module `general`
error[E0433]: failed to resolve: use of undeclared crate or module `general`
--> /usr/src/.cargo/registry/src/index.crates.io-6f17d22bba15001f/linux-raw-sys-0.1.4/src/lib.rs:79:13
|
79 | impl Eq for general::__kernel_timespec {}
| ^^^^^^^ use of undeclared crate or module `general`
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `linux-raw-sys` (lib) due to 3 previous errors
from linux-raw-sys.
@asheplyakov The Loongarch support starts from linux-raw-sys v0.3.2
. I think you can fetch rust binaries for LoongArch from official using rustup. If you need to cross compile, please refer to this: https://github.com/rust-lang/rust/tree/master/src/ci/docker/host-x86_64/dist-loongarch64-linux
rustup-init (LoongArch): https://github.com/loongarch-rs/tools/releases/tag/rustup-20230525
from linux-raw-sys.
As mentioned in the previous comment, loongarch64 is now supported. Please file new issues if there are any problems!
from linux-raw-sys.
Related Issues (10)
- Missing struct msghdr HOT 2
- seteuid missing HOT 4
- Better module organization HOT 2
- umount flags missing HOT 3
- Add CAP_* constants? HOT 3
- Add support for select() macros HOT 1
- Signal handler union in `sigaction` on x86_64 HOT 2
- Ioctl generation with linux HEAD fails HOT 3
- Missing ioctl arguments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux-raw-sys.