This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Stack offset error on v1.18.2 or Rustc error on v1.17.17 #35571
Labels
community
Community contribution
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
The text was updated successfully, but these errors were encountered: