Chia-Network/clvm_rs

Fails building 0.1.19 on FreeBSD 12.2

perrin4869 opened this issue ยท 1 comments

I am trying to upgrade to chia@1.2.10 to chia@1.3.1 on my FreeBSD jail, following the instructions here.
I get stuck trying to build clvm_rs@0.1.19:

(venv) [root@chia ~/chia-blockchain/clvm_rs]# maturin develop --release
๐Ÿ”— Found pyo3 bindings with abi3 support for Python โ‰ฅ 3.7
๐Ÿ Not using a specific python interpreter (With abi3, an interpreter is only required on windows)
   Compiling autocfg v1.0.1
   Compiling proc-macro2 v1.0.28
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.74
   Compiling proc-macro-hack v0.5.19
   Compiling radium v0.6.2
   Compiling pyo3-build-config v0.14.2
   Compiling tap v1.0.1
   Compiling typenum v1.13.0
   Compiling version_check v0.9.3
   Compiling once_cell v1.8.0
   Compiling funty v1.2.0
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.99
   Compiling subtle v2.4.1
   Compiling rand_core v0.6.3
   Compiling scopeguard v1.1.0
   Compiling smallvec v1.6.1
   Compiling unindent v0.1.7
   Compiling byteorder v1.4.3
   Compiling cpufeatures v0.1.5
   Compiling opaque-debug v0.3.0
   Compiling lazy_static v1.4.0
   Compiling hex v0.4.3
   Compiling wyz v0.4.0
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling num-bigint v0.4.0
   Compiling generic-array v0.14.4
   Compiling instant v0.1.10
   Compiling lock_api v0.4.4
   Compiling bitvec v0.22.3
   Compiling quote v1.0.9
   Compiling parking_lot_core v0.8.3
   Compiling paste-impl v0.1.18
   Compiling pyo3 v0.14.2
   Compiling parking_lot v0.11.1
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling paste v0.1.18
   Compiling sha2 v0.9.5
   Compiling ff v0.10.1
   Compiling group v0.10.0
   Compiling pairing v0.20.0
   Compiling bls12_381 v0.5.0
   Compiling pyo3-macros-backend v0.14.2
   Compiling indoc-impl v0.3.6
   Compiling indoc v0.3.6
   Compiling pyo3-macros v0.14.2
   Compiling clvm v0.1.19 (/root/chia-blockchain/clvm_rs)
    Finished release [optimized] target(s) in 22.76s
๐Ÿ’ฅ maturin failed
  Caused by: Cargo didn't build a cdylib. Did you miss crate-type = ["cdylib"] in the lib section of your Cargo.toml?
(venv) [root@chia ~/chia-blockchain/clvm_rs]# maturin --version
maturin 0.12.11
(venv) [root@chia ~/chia-blockchain/clvm_rs]# git branch
* (HEAD detached at 0.1.19)
  main

Should have read the new README.md ๐Ÿคฆ๐Ÿป
The solution is obviously to run the command inside ./wheel.