-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
as documented on https://aya-rs.dev/book/start/development/#prerequisites, I've installed llvm via brew.Here's its output:
➜ bpf-linker git:(main) ✗ /opt/homebrew/opt/llvm/bin/clang -v
Homebrew clang version 21.1.1
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/llvm/21.1.1/bin
Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin24.cfg
System configuration file directory: /opt/homebrew/etc/clang
User configuration file directory: /Users/yixinbc/.config/clang
Then I tried to run
LLVM_SYS_211_PREFIX=$(brew --prefix llvm) cargo install \
--no-default-features bpf-linker
however still get errors below.
error: One of the LLVM feature flags must be provided: llvm-19 llvm-20 llvm-21
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/lib.rs:22:9
|
22 | compile_error!(concat!("One of the LLVM feature flags must be provided: ", $($all, " "),*));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
33 | / assert_unique_used_features! {
34 | | "llvm-19",
35 | | "llvm-20",
36 | | "llvm-21"
37 | | }
| |_- in this macro invocation
|
= note: this error originates in the macro `assert_used_features` which comes from the expansion of the macro `assert_unique_used_features` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/linker.rs:15:5
|
15 | use llvm_sys::{
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/iter.rs:3:5
|
3 | use llvm_sys::{
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/di.rs:9:5
|
9 | use llvm_sys::{
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/ir.rs:7:5
|
7 | use llvm_sys::{
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/mod.rs:16:5
|
16 | use llvm_sys::{
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:10:5
|
10 | use llvm_sys::{core::*, debuginfo::*, prelude::*};
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0432]: unresolved import `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/mod.rs:16:5
|
16 | use llvm_sys::{
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/linker.rs:614:13
|
614 | llvm_sys::LLVMDiagnosticSeverity::LLVMDSError => {
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/linker.rs:622:13
|
622 | ... llvm_sys::LLVMDiagnosticSeverity::LLVMDSWarning => warn!("llvm: {...
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/linker.rs:623:13
|
623 | ... llvm_sys::LLVMDiagnosticSeverity::LLVMDSRemark => debug!("remark:...
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/linker.rs:624:13
|
624 | ... llvm_sys::LLVMDiagnosticSeverity::LLVMDSNote => debug!("note: {}"...
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0412]: cannot find type `LLVMContextRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:25:14
|
25 | context: LLVMContextRef,
| ^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMModuleRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:26:13
|
26 | module: LLVMModuleRef,
| ^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMDIBuilderRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:27:14
|
27 | builder: LLVMDIBuilderRef,
| ^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMMetadataRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:29:36
|
29 | replace_operands: HashMap<u64, LLVMMetadataRef>,
| ^^^^^^^^^^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
24 | pub struct DISanitizer<LLVMMetadataRef> {
| +++++++++++++++++
error[E0412]: cannot find type `LLVMContextRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:62:25
|
62 | pub fn new(context: LLVMContextRef, module: LLVMModuleRef) -> DISani...
| ^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMModuleRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:62:49
|
62 | ...extRef, module: LLVMModuleRef) -> DISanitizer {
| ^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value `LLVMDIFlagFwdDecl` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:93:57
|
93 | if di_composite_type.flags() == LLVMDIFlagFwdDecl {
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMMetadataRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:328:23
|
328 | ) -> HashMap<u64, LLVMMetadataRef> {
| ^^^^^^^^^^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
61 | impl<LLVMMetadataRef> DISanitizer {
| +++++++++++++++++
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:411:20
|
411 | GlobalVariable(LLVMValueRef),
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:412:17
|
412 | GlobalAlias(LLVMValueRef),
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:413:14
|
413 | Function(LLVMValueRef),
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:414:19
|
414 | FunctionParam(LLVMValueRef),
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:415:17
|
415 | Instruction(LLVMValueRef),
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:417:19
|
417 | MetadataEntry(LLVMValueRef, u32, usize),
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:411:20
|
411 | GlobalVariable(LLVMValueRef),
| ^^^^^^^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
410 | enum Item<LLVMValueRef> {
| ++++++++++++++
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:422:13
|
422 | parent: LLVMValueRef,
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:423:12
|
423 | value: LLVMValueRef,
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:422:13
|
422 | parent: LLVMValueRef,
| ^^^^^^^^^^^^ not found in this scope
|
help: you might be missing a type parameter
|
421 | struct Operand<LLVMValueRef> {
| ++++++++++++++
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:428:34
|
428 | fn replace(&mut self, value: LLVMValueRef) {
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LLVMValueRef` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:441:28
|
441 | fn value_ref(&self) -> LLVMValueRef {
| ^^^^^^^^^^^^ not found in this scope
error[E0084]: unsupported representation for zero-variant enum
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/di.rs:150:8
|
150 | #[repr(u32)]
| ^^^
151 | enum DIDerivedTypeOperand {
| ------------------------- zero-variant enum
error[E0084]: unsupported representation for zero-variant enum
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/di.rs:219:8
|
219 | #[repr(u32)]
| ^^^
220 | enum DICompositeTypeOperand {
| --------------------------- zero-variant enum
error[E0599]: no variant or associated item named `Elements` found for enum `DICompositeTypeOperand` in the current scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/di.rs:264:77
|
220 | enum DICompositeTypeOperand {
| --------------------------- variant or associated item `Elements` not found for this enum
...
264 | unsafe { LLVMGetOperand(self.value_ref, DICompositeTypeOperand::Elements as...
| ^^^^^^^^ variant or associated item not found in `DICompositeTypeOperand`
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMCreateDIBuilder` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:66:31
|
66 | builder: unsafe { LLVMCreateDIBuilder(module) },
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMMetadataAsValue` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:240:42
|
240 | ...ce(unsafe { LLVMMetadataAsValue(self.context, *new_metadata) })
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMMetadataAsValue` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:266:47
|
266 | ... = unsafe { LLVMMetadataAsValue(self.context, metadata) };
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMDisposeDIBuilder` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:309:18
|
309 | unsafe { LLVMDisposeDIBuilder(self.builder) };
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMDIBuilderCreateFunction` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:352:35
|
352 | let new_program = LLVMDIBuilderCreateFunction(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMDIBuilderFinalizeSubprogram` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:371:17
|
371 | ... LLVMDIBuilderFinalizeSubprogram(self.builder, new_program);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMMetadataAsValue` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:373:46
|
373 | ...m_value_ref(LLVMMetadataAsValue(self.context, new_program))
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMMDNodeInContext2` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:396:26
|
396 | ... unsafe { LLVMMDNodeInContext2(self.context, core::ptr::null_mut()...
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMValueAsMetadata` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:400:17
|
400 | LLVMValueAsMetadata(new_program.value_ref)
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMIsAMDNode` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:430:17
|
430 | if !LLVMIsAMDNode(self.parent).is_null() {
| ^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMValueAsMetadata` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:431:29
|
431 | let value = LLVMValueAsMetadata(value);
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMReplaceMDNodeOperandWith` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:432:17
|
432 | ... LLVMReplaceMDNodeOperandWith(self.parent, self.index, value);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMIsAUser` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:433:24
|
433 | } else if !LLVMIsAUser(self.parent).is_null() {
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function, tuple struct or tuple variant `LLVMSetOperand` in this scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/di.rs:434:17
|
434 | LLVMSetOperand(self.parent, self.index, value);
| ^^^^^^^^^^^^^^ not found in this scope
error[E0599]: no variant or associated item named `BaseType` found for enum `DIDerivedTypeOperand` in the current scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/di.rs:196:78
|
151 | enum DIDerivedTypeOperand {
| ------------------------- variant or associated item `BaseType` not found for this enum
...
196 | let value = LLVMGetOperand(self.value_ref, DIDerivedTypeOperand::BaseType as...
| ^^^^^^^^ variant or associated item not found in `DIDerivedTypeOperand`
error[E0599]: no variant or associated item named `Elements` found for enum `DICompositeTypeOperand` in the current scope
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/types/di.rs:304:41
|
220 | enum DICompositeTypeOperand {
| --------------------------- variant or associated item `Elements` not found for this enum
...
304 | DICompositeTypeOperand::Elements as u32,
| ^^^^^^^^ variant or associated item not found in `DICompositeTypeOperand`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/linker.rs:599:47
|
599 | ...y: llvm_sys::LLVMDiagnosticSeverity, message: &str) {
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/mod.rs:274:32
|
274 | fn symbol_name<'a>(value: *mut llvm_sys::LLVMValue) -> &'a str {
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/mod.rs:280:43
|
280 | ...ut llvm_sys::LLVMValue, name: &str) {
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `llvm_sys`
--> /Users/yixinbc/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/bpf-linker-0.9.15/src/llvm/mod.rs:323:47
|
323 | ...y: llvm_sys::LLVMDiagnosticSeverity, message: &str);
| ^^^^^^^^ use of unresolved module or unlinked crate `llvm_sys`
|
= help: if you wanted to use a crate named `llvm_sys`, use `cargo add llvm_sys` to add it to your `Cargo.toml`
Some errors have detailed explanations: E0084, E0412, E0425, E0432, E0433, E0599.
For more information about an error, try `rustc --explain E0084`.
error: could not compile `bpf-linker` (lib) due to 55 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `bpf-linker v0.9.15`, intermediate artifacts can be found at `/var/folders/9s/99c97sq509lclfcq821w_9vc0000gn/T/cargo-installoJ7Tdd`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
any idea?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels