nervosnetwork / capsule

Capsule is an out-of-box development framework for creating smart contract on Nervos' CKB.
MIT License
60 stars 34 forks source link

LLVM ERROR: Incomplete scavenging after 2nd pass #21

Closed jjyr closed 1 year ago

jjyr commented 3 years ago

Describe the bug

In some projects, the capsule build --release will raise this error.

https://github.com/jordanmack/nervos-ckb-nft/commit/f38598cdb05a92e3fdca8385c418058b676be35c

Screenshots

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


Solution

This supposed to be an upstream issue, to edit the Cargo.toml lto=false can get around this in capsule projects.

xxuejie commented 3 years ago

Is this something we can file a bug report at Rust or even LLVM side?

jjyr commented 3 years ago

Sure, I'll try to reproduce it with a minimal example.

blckngm commented 1 year ago

Closing for now. Feel to to reopen if the problem still exists.