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

Stack offset error on v1.18.2 or Rustc error on v1.17.17 #35571

Closed
0xEl-Loco opened this issue May 29, 2024 · 1 comment
Closed

Stack offset error on v1.18.2 or Rustc error on v1.17.17 #35571

0xEl-Loco opened this issue May 29, 2024 · 1 comment
Labels
community Community contribution

Comments

@0xEl-Loco
Copy link

Problem

I'm experiencing a nightmare right now and seem to be blocked in an infinite loop.
I created a program on Solana playground : build and deploy perfectly.
Now when i'm trying to build it locally (anchor build) i run into these problems :

with : sh -c "$(curl -sSfL https://release.solana.com/v1.18.2/install)"
and cargo.toml :
[dependencies]
anchor-lang = "0.30.0"
anchor-spl = "0.30.0"
solana-program = "1.18.2"
-> my anchor build generate this pb: Stack offset of 4584 exceeded max offset of 4096 by 488 bytes, please minimize large stack variables
(of course when i modify the data structure of the program the offset in bytes remain the same, so the problem clearly doesn't come from a real stack offset imho)

#34991
when i downgrade and change my cargo.toml :
sh -c "$(curl -sSfL https://release.solana.com/v1.17.17/install)"
[dependencies]
solana-program = "=1.17.17"
-> my anchor build generate this pb: cannot be built because it requires rustc 1.69 or newer, while the currently active rustc version is 1.68.0-dev Either upgrade to rustc 1.69 or newer
while of course my rustc --version -> 1.78.0

of course if i use solana 1.16.24 like in playground i run into the same rustc problem.
there are many content on one specific issue but never the two together... and i'm just doing pingpong between rustc or stack error.

Proposed Solution

@0xEl-Loco 0xEl-Loco added the community Community contribution label May 29, 2024
Copy link
Contributor

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

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

No branches or pull requests

1 participant