Description
Hello,
When trying to build some Solana program, I got this error:
Error: Function _ZN14spl_token_20229extension21confidential_transfer12verify_proof30verify_transfer_with_fee_proof17h685e567a79796daaE Stack offset of 4392 exceeded max offset of 4096 by 296 bytes, please minimize large stack variables. Estimated function frame size: 4472 bytes. Exceeding the maximum stack offset may cause undefined behavior during execution.
Error: A function call in method _ZN14spl_token_20229extension21confidential_transfer12verify_proof30verify_transfer_with_fee_proof17h685e567a79796daaE overwrites values in the frame. Please, decrease stack usage or remove parameters from the call.The function call may cause undefined behavior during execution.
A space is missing between call.
and The function
. In the latest commit from the current default branch (solana-rustc/19.1-2024-12-03
), this string is generated from:
llvm-project/llvm/lib/Target/SBF/SBFRegisterInfo.cpp
Lines 158 to 163 in 176f4c2
Would it be possible to add a space after call.
line 161?
(By the way, I found this issue while following the tutorial on owner checks, which is using spl-token-2022
3.0.4 in Cargo.lock
. The error reported by the compiler was already fixed in a later version of Token-2022, as mentioned on solana-program/token-2022#216 (comment).)