subtensor
subtensor copied to clipboard
README.md cargo build command misses a flag
Describe the bug
Building subtensor leads to a non-functioning binary (with fatal errors such as "runtime requires function imports which are not present on the host: 'env:ext_benchmarking_current_time_version_1'"
) which is solved by adding --features=runtime-benchmarks
as mentioned in the Discord. It would be nice if the README would reflect this requirement.
To Reproduce
- Go to https://github.com/opentensor/subtensor
- Follow the build instructions, especially
cargo build --release
- Run the subtensor
- Observe it crashing with error
"runtime requires function imports which are not present on the host: 'env:ext_benchmarking_current_time_version_1'"
Expected behavior
I expect a working binary after performing the build instructions.
Screenshots
No response
Environment
Linux Ubuntu
Additional context
It seems to be solved by adding --features=runtime-benchmarks
to the cargo build
command.