Closed friedger closed 4 years ago
cc @lgalabru - any thoughts here? This should probably be an issue on blockstack/stacks-blockchain.
@friedger can you try with just the master branch?
Same with master branch.
@friedger what version of rustc are you using?
rustup show
rustc 1.42.0 (b8cedc004 2020-03-09)
@zone117x cargo build
on stacks-blockchain works.
The npm script simply executes cargo build, .e.g.
BLOCKSTACK_CORE_SOURCE_BRANCH="master" yarn
runs:
cargo install --git https://github.com/blockstack/blockstack-core.git --branch master --bin=clarity-cli
Just tested on clarity-js-sdk master and works:
matt$ cd packages/clarity-native-bin
matt$ BLOCKSTACK_CORE_SOURCE_BRANCH="master" yarn
yarn install v1.22.4
$ node postInstallScript.js
Running: npx ts-node@^8.2.0 --project /Users/matt/Projects/clarity-js-sdk/packages/clarity-native-bin/tsconfig.build.json /Users/matt/Projects/clarity-js-sdk/packages/clarity-native-bin/src/directInstall.ts
npx: installed 8 in 2.269s
Found git source env var branch=master
Overwriting existing file: /Users/matt/Projects/clarity-js-sdk/packages/clarity-native-bin/.native-bin/clarity-sdk-v0.0.6/clarity-cli
Compiling to temp dir /var/folders/wk/2_q53hks7p55qyy98zd642380000gn/T/qyOv3X
Running: cargo install --git https://github.com/blockstack/blockstack-core.git --branch master --bin=clarity-cli --root /var/folders/wk/2_q53hks7p55qyy98zd642380000gn/T/qyOv3X --force
Updating git repository `https://github.com/blockstack/blockstack-core.git`
Installing blockstack-core v0.0.1 (https://github.com/blockstack/blockstack-core.git#b0a90008)
Updating crates.io index
Compiling proc-macro2 v1.0.10
Compiling unicode-xid v0.2.0
Compiling libc v0.2.68
Compiling syn v1.0.17
Compiling cc v1.0.26
Compiling cfg-if v0.1.10
Compiling typenum v1.11.2
Compiling byteorder v1.3.4
Compiling serde v1.0.106
Compiling getrandom v0.1.14
Compiling byte-tools v0.3.1
Compiling rustversion v1.0.2
Compiling opaque-debug v0.2.3
Compiling pkg-config v0.3.17
Compiling memchr v2.3.3
Compiling ryu v1.0.3
Compiling log v0.4.8
Compiling standback v0.2.2
Compiling smallvec v1.2.0
Compiling matches v0.1.8
Compiling proc-macro-hack v0.5.15
Compiling ppv-lite86 v0.2.6
Compiling bitflags v1.2.1
Compiling linked-hash-map v0.5.2
Compiling fake-simd v0.1.2
Compiling lazy_static v1.4.0
Compiling zeroize v1.1.0
Compiling subtle v2.2.2
Compiling itoa v0.4.5
Compiling regex-syntax v0.6.17
Compiling percent-encoding v2.1.0
Compiling keccak v0.1.0
Compiling slab v0.4.2
Compiling rust-ini v0.13.0
Compiling block-padding v0.1.5
Compiling unicode-bidi v0.3.4
Compiling thread_local v1.0.1
Compiling unicode-normalization v0.1.12
Compiling lru-cache v0.1.2
Compiling aho-corasick v0.7.10
Compiling quote v1.0.3
Compiling idna v0.2.0
Compiling iovec v0.1.4
Compiling net2 v0.2.33
Compiling time v0.1.42
Compiling rand_core v0.5.1
Compiling generic-array v0.12.3
Compiling mio v0.6.21
Compiling rand_chacha v0.2.2
Compiling url v2.1.1
Compiling digest v0.8.1
Compiling block-buffer v0.7.3
Compiling rand v0.7.2
Compiling sha2 v0.8.1
Compiling sha3 v0.8.2
Compiling ripemd160 v0.8.0
Compiling regex v1.3.6
Compiling libsqlite3-sys v0.11.1
Compiling clear_on_drop v0.2.3
Compiling sha2-asm v0.5.3
Compiling secp256k1 v0.11.6
Compiling serde_derive v1.0.106
Compiling time-macros-impl v0.1.0
Compiling time-macros v0.1.0
Compiling time v0.2.9
Compiling curve25519-dalek v2.0.0
Compiling serde_json v1.0.51
Compiling toml v0.5.6
Compiling ed25519-dalek v1.0.0-pre.3
Compiling rusqlite v0.16.0
Compiling blockstack-core v0.0.1 (https://github.com/blockstack/blockstack-core.git#b0a90008)
Finished release [optimized] target(s) in 3m 50s
Installing /var/folders/wk/2_q53hks7p55qyy98zd642380000gn/T/qyOv3X/bin/clarity-cli
Installed package `blockstack-core v0.0.1 (https://github.com/blockstack/blockstack-core.git#b0a90008)` (executable `clarity-cli`)
warning: be sure to add `/var/folders/wk/2_q53hks7p55qyy98zd642380000gn/T/qyOv3X/bin` to your PATH to be able to run the installed binaries
Moving /var/folders/wk/2_q53hks7p55qyy98zd642380000gn/T/qyOv3X/bin/clarity-cli to /Users/matt/Projects/clarity-js-sdk/packages/clarity-native-bin/.native-bin/clarity-sdk-v0.0.6/clarity-cli
✨ Done in 242.29s.
Versions
matt$ node -v
v13.11.0
matt$ npm -v
6.13.7
matt$ yarn -v
1.22.4
matt$ cargo -V
cargo 1.42.0 (86334295e 2020-01-31)
matt$ rustc -V
rustc 1.42.0 (b8cedc004 2020-03-09)
cargo
was on an old version.
running
rustup default stable
helped. Building now successfully.
Using
BLOCKSTACK_CORE_SOURCE_BRANCH="feature/genesis" yarn
the process errors with