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

Compilation Error On Windows #159

Open
OllieMurray opened this issue Jun 28, 2022 · 5 comments
Open

Compilation Error On Windows #159

OllieMurray opened this issue Jun 28, 2022 · 5 comments

Comments

@OllieMurray
Copy link

OllieMurray commented Jun 28, 2022

near-sandbox-utils-0.2.0

const fn platform() -> &'static str {
 #[cfg(all(target_os = "linux", target_arch = "x86_64"))]
 return "Linux-x86_64";

 #[cfg(all(target_os = "macos", target_arch = "x86_64"))]
 return "Darwin-x86_64";

 #[cfg(all(
 not(all(target_os = "macos", target_arch = "x86_64")),
 not(all(target_os = "linux", target_arch = "x86_64"))
 ))]
 compile_error!("Unsupported platform");
 }

Produces error

compile_error!("Unsupported platform");

when running on Windows. Is Windows in fact not a supported platform or is this a bug in the compilation check?

@ChaoticTempest
Copy link
Member

Windows is not in fact supported, but you can get away with it if you're on WSL2. This is due to nearcore not being compatible with windows at this time, which is required for running a sandbox node

@OllieMurray
Copy link
Author

Can you help me with a command to get the Hn Limit increased? I am running into limits there and, not being a WSL/Unix user, I'm having trouble getting those to carry over into my vscode instance. thanks!

@ChaoticTempest
Copy link
Member

@OllieMurray you're running into the open file limit right? I usually just use su <username> to get past it since super user has higher defaults

@OllieMurray
Copy link
Author

OllieMurray commented Jun 30, 2022

Yea, they are not enough. Looking at resources online I have tried the following:

I editing /etc/security/limits.conf to include:

* hard nofile 20000
* soft nofile 20000
root soft nofile 20000
root hard nofile 20000

I also edited \etc\systemd\user.conf and system.conf to include the following:

DefaultLimitNOFILE=524288:524288

My ulimit is still like 1024 or something. I made sure to restart wsl as well. Any ideas? Thanks

@ChaoticTempest
Copy link
Member

if you follow this SO post about it https://stackoverflow.com/q/63960859, in the UPDATED section, it should work. That's at least what worked for me when I was on WSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: NEW❗
Development

No branches or pull requests

2 participants