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

Failed to build gear-sandbox with feature std #3622

Closed
clearloop opened this issue Dec 26, 2023 · 0 comments · Fixed by #3623
Closed

Failed to build gear-sandbox with feature std #3622

clearloop opened this issue Dec 26, 2023 · 0 comments · Fixed by #3623
Labels
C0-bug Something isn't working

Comments

@clearloop
Copy link
Contributor

clearloop commented Dec 26, 2023

branch: master

NOTE: core-backend has the same problem, however, core-processor works

Problem

looks like some std and no_std features are messed up

 2:19PM cargo b                                                                                                                                                                                                                                                                 
   Compiling sp-io v7.0.0 (https://github.com/gear-tech/substrate.git?branch=gear-polkadot-v0.9.41-canary-no-sandbox-revert-oom-changes#9aa124f3)                                                                                                                               
error[E0433]: failed to resolve: could not find `format` in `alloc`                                                                                                                                                                                                             
    --> /Users/clearloop/.cargo/git/checkouts/substrate-e6594450811c5caa/9aa124f/primitives/io/src/lib.rs:1643:31                                                                                                                                                               
     |                                                                                                                                                                                                                                                                          
1643 |     let message = sp_std::alloc::format!("{}", info);                                                                                                                                                                                                                    
     |                                  ^^^^^^ could not find `format` in `alloc`                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                
error[E0433]: failed to resolve: could not find `wasm` in `proc_macro_runtime_interface`                                                                                                                                                                                        
   --> /Users/clearloop/.cargo/git/checkouts/substrate-e6594450811c5caa/9aa124f/primitives/io/src/lib.rs:125:1                                                                                                                                                                  
    |                                                                                                                                                                                                                                                                           
125 | #[runtime_interface]                                                                                                                                                                                                                                                      
    | ^^^^^^^^^^^^^^^^^^^^ could not find `wasm` in `proc_macro_runtime_interface`                                                                                                                                                                                              
    |                                                                                                                                                                                                                                                                           
    = note: this error originates in the attribute macro `runtime_interface` (in Nightly builds, run with -Z macro-backtrace for more info)                                                                                                                                                                                                                                                                                                                                                                                                                     

I've checked the manifest of gear-sandbox, but there's no obvious bug

Steps

cd gear/sandbox/sandbox
cargo b

Possible Solution

No response

Notes

No response

Relevant Log Output

Click to expand/collapse

<Paste your log here>

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

Successfully merging a pull request may close this issue.

1 participant