diff mbox series

[meta-oe,6/7] deqp-runner: Use linux_raw for getrandom backend on riscv32

Message ID 20250407052037.502341-6-raj.khem@gmail.com
State New
Headers show
Series [meta-python,1/7] python3-pydantic-core: Upgrade to 2.33.1 | expand

Commit Message

Khem Raj April 7, 2025, 5:20 a.m. UTC
Fixes
| error[E0425]: cannot find function `getrandom` in crate `libc`
|   --> /usr/src/debug/deqp-runner/0.20.3/sources-unpack/cargo_home/bitbake/getrandom-0.3.2/src/backends/getrandom.rs:29:15
|    |
| 29 |         libc::getrandom(buf.as_mut_ptr().cast(), buf.len(), 0)
|    |               ^^^^^^^^^ not found in `libc`
|
|     Building [===============>          ] 77/121: thiserror-impl, indexmap,...
|     Building [===============>          ] 78/121: thiserror-impl, indexmap,...
| For more information about this error, try `rustc --explain E0425`.
| error: could not compile `getrandom` (lib) due to 1 previous error
|

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-graphics/deqp-runner/deqp-runner_0.20.3.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/deqp-runner/deqp-runner_0.20.3.bb b/meta-oe/recipes-graphics/deqp-runner/deqp-runner_0.20.3.bb
index cc8fef757c..57f1635426 100644
--- a/meta-oe/recipes-graphics/deqp-runner/deqp-runner_0.20.3.bb
+++ b/meta-oe/recipes-graphics/deqp-runner/deqp-runner_0.20.3.bb
@@ -17,3 +17,5 @@  SRC_URI += " \
 SRC_URI[deqp-runner-0.20.3.sha256sum] = "2de4b135ed68a7f821deeedebb4084d33058b0307f1f9935e2c960430f7532e8"
 
 require deqp-runner-crates.inc
+
+RUSTFLAGS:append:riscv32 = " --cfg getrandom_backend=\"linux_raw\""