Closed code-brewer closed 1 month ago
Searching the error on a search engine gets me to https://solana.stackexchange.com/a/9899.
Compiling anchor-lang v0.28.0
You're using anchor-lang 0.28.0
which uses solana-program 1.16
, but the problem is fixed in solana-program 1.18.2
. You can upgrade Anchor to 0.29.0
or 0.30.0
to be able to use solana-program 1.18.2
. See https://github.com/solana-labs/solana/issues/35003#issuecomment-1970028870.
example project: https://github.com/coral-xyz/anchor/tree/14309ea14639b8042055e1b432bd6be24434970f/tests/events
let solana v1.18.10 present in ENV/PATH, and
anchor build
got error:Stack offset of 4608 exceeded max offset of 4096 ...
Note: this solana was download from: wget https://github.com/anza-xyz/platform-tools/releases/download/v1.41/platform-tools-linux-x86_64.tar.bz2
while let old version solana present in ENV/PATH,
anchor build
build output so without error.