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

Question/Bug: Solana 1.18.17 crates don't build | Spl-pod 0.1.0 needed for older version of solana #6931

Closed
LevBeta opened this issue Jun 25, 2024 · 6 comments

Comments

@LevBeta
Copy link

LevBeta commented Jun 25, 2024

I still use, and many people still use, older versions of Solana, like 16/17, for other projects. It looks like spl-pod 0.1.0 has stopped compiling recently.

Is there any way, or a possible fix, to resolve this problem?

Small part of the error:

error[E0659]: `solana_program` is ambiguous --> /home/goncalo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spl-pod-0.1.0/src/error.rs:5:1 | 5 | #[spl_program_error] | ^^^^^^^^^^^^^^^^^^^^ ambiguous name | = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution = note: `solana_program` could refer to a crate passed with `--extern` = help: use `::solana_program` to refer to this crate unambiguously

https://solana.stackexchange.com/questions/14948/unable-to-build-rust-program-with-jupiter-core-dependency-for-swapping-sol-to-us

@buffalojoec
Copy link
Contributor

This was fixed in #6590, but it looks like the version containing the fix was included in patch version 0.4.1. Unfortunately the minimum Solana version it supports is 1.18.2.

@buffalojoec
Copy link
Contributor

This error arises when you have multiple versions of solana-program in your lockfile. Maybe try working out how to rectify that, and the issue should resolve?

@LevBeta
Copy link
Author

LevBeta commented Jun 25, 2024

This error arises when you have multiple versions of solana-program

I have the solana version locked in at 1.16.17, but even some bumps don't seem to fix, my workaround was really bumping everything to a newer solana version. As it also seems the better options, even by this quote the last issue

#6897 (comment)

@LevBeta
Copy link
Author

LevBeta commented Jun 25, 2024

But still "solana-account-decoder" 1.18.17, can't compile because of spl-token-group-interface-0.1.0

@LevBeta LevBeta changed the title Question/Bug: Spl-pod 0.1.0 needed for older version of solana Question/Bug: Solana 1.18.17 crates don't build | Spl-pod 0.1.0 needed for older version of solana Jun 26, 2024
@buffalojoec
Copy link
Contributor

But still "solana-account-decoder" 1.18.17, can't compile because of spl-token-group-interface-0.1.0

Yeah, we're still dealing with a few dependency tree issues around the 2.0 release. I'd suggest tracking them over on #6897 then. I think this one is part of that broader effort.

@joncinque
Copy link
Contributor

This should be resolved with #6897 -- please open a new issue if you're still seeing problems though!

@joncinque joncinque closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
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

3 participants