Guest User

Untitled

a guest
Apr 12th, 2025
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.72 KB | None | 0 0
  1. (cd /home/phcoder/grub/grub-core/rust; RUSTFLAGS="-C linker=gcc -Zregparm=3 -C link-args=-nostdlib" cargo build --target-dir=/home/phcoder/builds/m3rust/grub-core/rust --workspace --target=i586-unknown-linux-gnu -Z build-std=core,alloc -r)
  2.    Compiling grub v0.1.0 (/home/phcoder/grub/grub-core/rust/grub_rust_core)
  3. error: expected `fn`, found `grubcall`
  4.   --> grub_rust_core/src/lib.rs:38:15
  5.    |
  6. 38 | unsafe extern grubcall!() {
  7.    |               ^^^^^^^^ expected `fn`
  8.  
  9. error: could not compile `grub` (lib) due to 1 previous error
  10.  
  11. macro_rules! grubcall {
  12.     () => {
  13.         "stdcall"
  14.     };
  15. }
  16.  
  17. unsafe extern grubcall!() {
  18.     static grub_xputs: extern "stdcall" fn(stri: *const c_char);
  19.     fn grub_abort();
  20.  
Advertisement
Add Comment
Please, Sign In to add comment