Todas as lições · Rust scripts and ckb-std · Começa aqui · Glossário
ckb-std C shim needs a RISC-V C toolchain (clang) in CIPráticoVerificada pelo dono
Verificada pelo dono · Verificação: certa · Verificada em 2026-11-19
ckb-std compiles a C shim for riscv64imac-unknown-none-elf via cc-rs, which by default looks for riscv64-unknown-elf-gcc and fails with ToolNotFound when that toolchain is missing in CI. Pointing cc-rs at clang and llvm-ar (which can target RISC-V) lets the contract build without the GCC cross toolchain.
Porque importa: Without a RISC-V C compiler configured, cc-rs cannot find riscv64-unknown-elf-gcc. The contract build fails with ToolNotFound on every CI run, so the contract tests never run.
- Conceitos
- Testing and devnet
- Evidência
- Verificada pelo dono: verificada pelo dono do projeto de onde veio, que também publica estas lições
- Vista pela primeira vez
- 2026-11-02
- Última mudança
- 2026-11-02
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-11-02 · LusoCryptoLabs/Liquid-Cells · mais deste projeto
Mais sobre Rust scripts and ckb-std
- Median time vs tip timestamp for deadlines
- Assert the specific script error code in ckb-testtool rejection tests
- Cheque lock receiver path must return the cell's capacity to the sender
Verificada por @LusoCryptoLabs (dono do projeto), 2026-11-19.
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "ckb-std C shim needs a RISC-V C toolchain (clang) in CI", CKB lessons, https://pulse.lusocryptolabs.com/learned/scripts/ckb-std-c-shim-needs-a-risc-v-c-toolchain-clang-in-ci, CC BY 4.0, last changed 2026-11-02.