From 96da04403dfa4f16a19d384b38e5151515559dcc Mon Sep 17 00:00:00 2001 From: vasilito Date: Mon, 3 Aug 2026 17:19:42 +0300 Subject: [PATCH] rust-native: depend on llvm-native.dev for the LLVM headers rustc_llvm compiles llvm-wrapper/*.cpp, which include "llvm/Config/llvm-config.h". Those headers ship in the .dev package, and rust-native listed only llvm-native and llvm-native.runtime, so the build failed with LLVMWrapper.h:6:10: fatal error: llvm/Config/llvm-config.h: No such file or directory even though the header was staged at llvm-native/target//stage.dev/usr/include/. recipes/dev/rust declares the equivalent llvm21.dev for the same reason. Latent because rust-native was commented out of the config and had never been built. --- local/recipes/dev/rust-native/recipe.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/local/recipes/dev/rust-native/recipe.toml b/local/recipes/dev/rust-native/recipe.toml index b35fd900e5..03ed0d1640 100644 --- a/local/recipes/dev/rust-native/recipe.toml +++ b/local/recipes/dev/rust-native/recipe.toml @@ -9,6 +9,13 @@ dependencies = [ "openssl3", "llvm-native", "llvm-native.runtime", + # rustc_llvm compiles llvm-wrapper/*.cpp, which #include + # "llvm/Config/llvm-config.h". Those headers are staged by the .dev + # package, so without it the build fails with + # LLVMWrapper.h:6:10: fatal error: llvm/Config/llvm-config.h: + # No such file or directory + # recipes/dev/rust declares the equivalent llvm21.dev for the same reason. + "llvm-native.dev", ] script = """ DYNAMIC_INIT