0

When running ./scripts/cargo-install-all.sh . from the instructions in the Solana docs (https://docs.solana.com/cli/install-solana-cli-tools#build-from-source) I am seeing

error: expected item, found '..'
 --> frozen-abi/macro/build.rs:1:1
  |
1 | ../build.rs
  | ^^ expected item

error: expected item, found '..'
 --> sdk/build.rs:1:1
  |
1 | ../frozen-abi/build.rs
  | ^^ expected item

error: expected item, found '..'
 --> program-runtime/build.rs:1:1
  |
1 | ../frozen-abi/build.rs
  | ^^ expected item

error: expected item, found '..'
 --> sdk/program/build.rs:1:1
  |
1 | ../../frozen-abi/build.rs
  | ^^ expected item

error: could not compile 'solana-program-runtime' due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

I have to build Solana from source because when I installed Solana through the command prompt from the Windows instructions in the docs, running solana-test-validator results in ERROR solana_perf] Incompatible CPU detected: missing AVX2 support. Please build from source on the target

I am on Windows 10 using WSL: Ubuntu-18.04.

Would switching to a new Macbook help?

2
  • What version of the CLI are you trying to run?
    – Jacob Creech
    Commented Jul 15, 2022 at 4:10
  • @JacobCreech I was using the main branch from the solana-labs repo, but after switching to v1.9.29 I no longer am having these issues.
    – elijahdr
    Commented Jul 16, 2022 at 6:12

1 Answer 1

1

Found the problem. I had to clone the repo instead of downloading the Source Code zip file. https://forums.solana.com/t/solana-test-validator-error-missing-avx2/3272/10

1
  • elaborating the contents of the link here would improve the quality of this answer
    – trent.sol
    Commented Jul 17, 2022 at 16:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.