Comments (6)
This should resolve itself, when #25 gets resolved.
from linux.
@kloenk Is it possible to workaround this issue before #25 lands?
from linux.
@wecing It may work now since we don't depend on shlex
anymore and we use our own target. I also rewrote the quick start guide a bit, in case you want to take a look.
from linux.
@ojeda Thank you! Unfortunately it still doesn't work for me:
> git log -1
commit 514443c678e50021917dfe5b9e4a427559e9ec82 (HEAD -> rust, origin/rust, origin/HEAD)
Merge: 2874653450f 5c3df5ae897
Author: Miguel Ojeda
Date: Sun Nov 29 00:03:27 2020 +0100
Merge pull request #37 from Rust-for-Linux/rust-ci-builddir
CI: test O= builds too
> make menuconfig
> make clean
> make LLVM=1
...
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
CARGO arch/x86/entry/vdso/libvdso-image.a
error: manifest path `./arch/x86/entry/vdso/Cargo.toml` does not exist
make[3]: *** [scripts/Makefile.build:329: arch/x86/entry/vdso/libvdso-image.a] Error 101
make[2]: *** [scripts/Makefile.build:529: arch/x86/entry/vdso] Error 2
make[1]: *** [scripts/Makefile.build:529: arch/x86/entry] Error 2
make: *** [Makefile:1833: arch/x86] Error 2
Since the previous error message I saw was about rust std
, I actually did try to compile that from latest rust source code:
> ./x.py build --stage 1 --host x86_64-unknown-linux-gnu --target x86_64-linux-kernel library/std
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-linux-kernel)
Compiling libc v0.2.79
...
Compiling object v0.22.0
Compiling addr2line v0.14.0
Compiling std v0.0.0 (/home/$USER/Code/sources/rust/library/std)
warning: dropping unsupported crate type `dylib` for target `x86_64-linux-kernel`
error[E0432]: unresolved imports `libc::c_int`, `libc::c_void`
--> library/std/src/sys_common/net.rs:17:12
|
17 | use libc::{c_int, c_void};
| ^^^^^ ^^^^^^ no `c_void` in the root
| |
| no `c_int` in the root
Not sure what was causing that failure, but it probably doesn't matter anymore.
from linux.
@wecing Thanks for trying again!
CARGO arch/x86/entry/vdso/libvdso-image.a
@kloenk This is triggered by the $(obj)/lib%.a
change, now it matches things we don't want.
from linux.
@kloenk This is triggered by the
$(obj)/lib%.a
change, now it matches things we don't want.
Oh, not good. But without that change it also does not work. So no idea on how to fix it from my side at this time.
I changed it so, it detects if it's a module or a builtin.
from linux.
Related Issues (20)
- out of tree kernel module build is somehow broken HOT 2
- `try_from_foreign()` HOT 2
- Other "good first issues"
- Error updating bindgen HOT 1
- Coding Guidelines document renders unordered list inside blockquote
- Remove unneeded `kernel::prelude::*`s from doctests HOT 6
- Consider column information for `dbg!` (matching 1.76.0's) HOT 1
- Memory ordering model policy/plan HOT 2
- Introduce link for C header mention
- Improper rendering of table cell in Arch Support page HOT 7
- Integrating Rust with C Kernel Modules HOT 6
- How do I compile a Linux kernel for the aarch64 platform HOT 1
- Example on Character Devices? HOT 2
- Replace `kernel::str::CStr` by `core::ffi::CStr` HOT 8
- Move proc-macro documentation into the `kernel` crate HOT 4
- make `impl_has_work` compatible with more complex generics HOT 1
- make `InPlaceInit` compatible with `Arc` HOT 4
- Rust CI wanted features & bugfixes HOT 2
- Build out-of-tree kernel module "hello world" HOT 2
- Writing an linux kernel module in Rust HOT 1
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.