nervosnetwork / blake2b-rs Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Compiling any code that uses blake2b-rs
with target wasm32-unknown-unknown
fails with the following:
user@host:~/ckb-sdk-rust-wasm-test$ sudo apt install llvm-dev libclang-dev clang lld;
user@host:~/ckb-sdk-rust-wasm-test$ cargo build --target wasm32-unknown-unknown;
Compiling blake2b-rs v0.2.0
The following warnings were emitted during compilation:
warning: BLAKE2/ref/blake2b-ref.c:17:10: fatal error: 'string.h' file not found
warning: #include <string.h>
warning: ^~~~~~~~~~
warning: 1 error generated.
error: failed to run custom build command for `blake2b-rs v0.2.0`
Caused by:
process didn't exit successfully: `/home/user/ckb-sdk-rust-wasm-test/target/debug/build/blake2b-rs-fbb694b1e880f308/build-script-build` (exit status: 1)
--- stdout
TARGET = Some("wasm32-unknown-unknown")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
running: "clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-o" "/home/user/ckb-sdk-rust-wasm-test/target/wasm32-unknown-unknown/debug/build/blake2b-rs-63f6b231df7e98c0/out/BLAKE2/ref/blake2b-ref.o" "-c" "BLAKE2/ref/blake2b-ref.c"
cargo:warning=BLAKE2/ref/blake2b-ref.c:17:10: fatal error: 'string.h' file not found
cargo:warning=#include <string.h>
cargo:warning= ^~~~~~~~~~
cargo:warning=1 error generated.
exit status: 1
--- stderr
error occurred: Command "clang" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-o" "/home/user/ckb-sdk-rust-wasm-test/target/wasm32-unknown-unknown/debug/build/blake2b-rs-63f6b231df7e98c0/out/BLAKE2/ref/blake2b-ref.o" "-c" "BLAKE2/ref/blake2b-ref.c" with args "clang" did not execute successfully (status code exit status: 1).
Travis is not available, so we have to migrate to GitHub Actions. We also can drop the Appveyor as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.