GNU Linux-libre 6.15-rc7-gnu: rust help needed

Benson Muite benson_muite at emailplus.org
Fri May 23 10:01:29 UTC 2025



On Fri, May 23, 2025, at 7:25 AM, Alexandre Oliva wrote:

> Err, you're running deblob-check as part of the build?  Why didn't you
> just fetch the cleaned up sources from our repo?  That should be faster
> and simpler.  Just curious.

Ok. Used the sources from your repo.

>
>> It seems like it explicitly needs to be enabled, or an additional
>> dependency is needed in addition to Rust.
>
> *nod*

Explicitly enabled. It fails to build:

# EXPORTS rust/exports_bindings_generated.h
  nm -p --defined-only rust/bindings.o | awk '$2~/(T|R|D|B)/ && $3!~/__(pfx|cfi|odr_asan)/ { printf "EXPORT_SYMBOL_RUST_GPL(%s);\n",$3 }' > rust/exports_bindings_generated.h
error: cannot find macro `dev_err` in this scope
  --> rust/kernel/firmware.rs:96:9
   |
96 |         dev_err!("Missing Free {} (non-Free firmware loading is disabled)\n", name);
   |         ^^^^^^^
   |
   = help: have you added the `#[macro_use]` on the module/import?
help: consider importing this macro through its public re-export
   |
7  + use crate::dev_err;
   |

error[E0308]: mismatched types
  --> rust/kernel/firmware.rs:91:32
   |
91 |         Self::request_internal("/*(DEBLOBBED)*/", dev, FwFunc::request_nowarn())
   |         ---------------------- ^^^^^^^^^^^^^^^^^ expected `&CStr`, found `&str`
   |         |
   |         arguments to this function are incorrect
   |
   = note: expected reference `&str::CStr`
              found reference `&'static str`
note: associated function defined here
  --> rust/kernel/firmware.rs:62:8
   |
62 |     fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> {
   |        ^^^^^^^^^^^^^^^^ -----------

error: aborting due to 2 previous errors

Full log:
https://download.copr.fedorainfracloud.org/results/fed500/linux-libre/fedora-rawhide-x86_64/09075173-linux-libre/builder-live.log.gz



More information about the linux-libre mailing list