Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md cargo build command misses a flag #261

Closed
mvds00 opened this issue Mar 18, 2024 · 1 comment
Closed

README.md cargo build command misses a flag #261

mvds00 opened this issue Mar 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mvds00
Copy link

mvds00 commented Mar 18, 2024

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

  1. Go to https://github.com/opentensor/subtensor
  2. Follow the build instructions, especially cargo build --release
  3. Run the subtensor
  4. 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.

@mvds00 mvds00 added the bug Something isn't working label Mar 18, 2024
@hamletwasntfat
Copy link

This bug still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants