Closed causevic closed 2 years ago
Try to build without --locked
:
cargo install --git https://github.com/project-serum/anchor anchor-cli
Try to build without
--locked
:cargo install --git https://github.com/project-serum/anchor anchor-cli
This is not working for me. It's not working specifically for arm64/linux target. On arm64/darwin the installation works on my machine.
Any idea where the issue might come from?
The underlying problem of the compile error above is caused usually by OOM. In my case I compiled anchor-cli under a docker container restricted in terms of CPUs and memory. Once I've loosen the memory restriction on the container the compilation succeeded. @causevic , do you run on a memory restricted system?
Try to build without
--locked
:cargo install --git https://github.com/project-serum/anchor anchor-cli
Already tried that and didn't help, unfortunately. Thank you for suggestion.
The underlying problem of the compile error above is caused usually by OOM. In my case I compiled anchor-cli under a docker container restricted in terms of CPUs and memory. Once I've loosen the memory restriction on the container the compilation succeeded. @causevic , do you run on a memory restricted system?
Thank you @iulianbarbu. The RAM was the issue. I'm running it inside Parallels Desktop on an M1 Max with 32GB of memory, but the (default) RAM for Linux box was only 2GB. When I increased that to 8GB in Parallels settings everything works fine. Thanks once more!
@causevic thank you mate, you save my day! I had similar issue with Oracle VirtualBox, increasing RAM upto 4Gb was enough.
I don't really wanted to reopen the issue, however, it would be good to have some meaningful error message in such case, not just "error: failed to compile anchor-cli"
Here's the error log: