--target bpfel-unknown-none
generates LLVM bitcode instead of eBPF
#135175
Labels
C-bug
Category: This is a bug.
O-eBPF
Target: I heard you liked code execution so I put some code execution in your code execution
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I built this code with
cargo build --target bpfel-unknown-none -Zbuild-std
:I expected to see this happen: An BPF binary was produced of some kind (or compilation failed).
Instead, this happened: It produced LLVM bitcode! this was discovered via (frequent
ls
omitted):This is a bug because we normally require that targets are capable of producing object code. This can be fixed by building the bpf-linker for this target, but I suspect it is mostly like the existing bitcode linker that we already ship for the purposes of the nvptx targets.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: