Search code examples
rustrust-cargosubstrate

Stuck in compilation (substrate-node-template:make build )


I followed the tutorialenter link description here to this step,

 make build
 WASM_BUILD_TOOLCHAIN=nightly-2020-10-05 cargo build --release
       Compiling node-template-runtime v2.0.0 (/home/wangliqiu2021/CLionProjects/substrate-node-template/runtime)
 Building [=====================================================> ] 857/861: node-template-runtime(build) 

Cargo has been executed for a long time(almost one+ hour) without ending,It seems to be stuck, does anyone know the reason?help me

OS:Ubuntu 20.04

CPU: AMD Ryzen 7 1700 Eight-Core Processor


Solution

  • I found the reason.

    $CARGO_HOME/config.toml:

    [build]
    target-dir = "target"
    

    remove it.