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

winnow package throwing error #100

Closed
metaproph3t opened this issue Apr 28, 2023 · 2 comments
Closed

winnow package throwing error #100

metaproph3t opened this issue Apr 28, 2023 · 2 comments

Comments

@metaproph3t
Copy link

I ran the following commands:

$ seahorse init <name>
$ cd <name>
$ seahorse build

It threw the following error:

Error: anchor build -p poseidon failed:

This is most likely a bug in the Seahorse compiler!

If you want to help the project, you can report this:
  - on the Seahorse Discord (http://discord.gg/4sFzH5pus8)
  - or as a Github issue (https://github.com/ameliatastic/seahorse-lang/issues).

Thanks!

error: package `winnow v0.4.4` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.62.0-dev

When I run

$ rustc --version

I get rustc 1.69.0.

As requested, I am reporting the error by creating an issue.

@acheroncrypto
Copy link
Contributor

This error is not resulting from Seahorse. See solana-labs/solana#31428 to understand why it's complaining about rustc version.

To fix this, add the latest git version of anchor-spl to your Cargo.toml

anchor-spl = { git = "https://github.com/coral-xyz/anchor" }

You can also choose to remove anchor-spl dependency if you are not using it. Seahorse comes with it by default afaik.

See full explanation: https://solana.stackexchange.com/a/6535/471

@metaproph3t
Copy link
Author

The fix that you specified on stack exchange worked, sir. Closing.

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

No branches or pull requests

2 participants