jjy@LAPTOP-BRD86RAC:~/workspace/nervos-ckb-nft$ capsule build --name nft --release
Building contract nft
Compiling nft v0.1.0 (/code/contracts/nft)
LLVM ERROR: Incomplete scavenging after 2nd pass
error: could not compile `nft`
To learn more, run the command again with --verbose.
error: docker container exit with code Some(101)
Additional context
capsule --versionCapsule 0.4.1
Solution
This supposed to be an upstream issue, to edit the Cargo.tomllto=false can get around this in capsule projects.
Describe the bug
In some projects, the
capsule build --release
will raise this error.https://github.com/jordanmack/nervos-ckb-nft/commit/f38598cdb05a92e3fdca8385c418058b676be35c
Screenshots
Additional context
capsule --version
Capsule 0.4.1
Solution
This supposed to be an upstream issue, to edit the
Cargo.toml
lto=false
can get around this in capsule projects.