Skip to content

Stack too deep error building a16z/cicada #811

Open
@0xkarmacoma

Description

@0xkarmacoma

Building https://github.com/a16z/cicada @ dec37d732f8ef8a91119650c416ae9bfb531a64a:

 FOUNDRY_PROFILE=solx forge build
[⠊] Compiling...
[⠆] Compiling 23 files with Solc 0.8.29
[⠰] Solc 0.8.29 finished in 72.33s
Error: Compiler run failed:
Error: "/usr/local/bin/solx" subprocess failed without exit code:

LLVM ERROR: fun_finalizeVote: cannot dup 17-th stack item, %318.
Item it located too deep in the stack: [ %318 %54 %28 %30 %122 %60 RET %118 %22 %1 %21 %121 %119 %27 %26 %314 %656 ]
PLEASE submit a bug report to https://github.com/matter-labs/era-compiler-llvm/issues/ and include the crash backtrace.
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'src/SemaphoreCicada.sol:SemaphoreCicada.runtime'.
1.	Running pass 'EVM backward propagation stackification' on function '@fun_finalizeVote'
--> src/SemaphoreCicada.sol:SemaphoreCicada

Error: "/usr/local/bin/solx" subprocess failed without exit code:

LLVM ERROR: fun_finalizeVote: cannot dup 17-th stack item, %318.
Item it located too deep in the stack: [ %318 %54 %28 %30 %122 %60 RET %118 %22 %1 %21 %121 %119 %27 %26 %314 %656 ]
PLEASE submit a bug report to https://github.com/matter-labs/era-compiler-llvm/issues/ and include the crash backtrace.
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'test/EndToEndTest.t.sol:VoteWrapper.runtime'.
1.	Running pass 'EVM backward propagation stackification' on function '@fun_finalizeVote'
--> test/EndToEndTest.t.sol:VoteWrapper

Error: "/usr/local/bin/solx" subprocess failed without exit code:

LLVM ERROR: fun_mulMod: cannot dup 17-th stack item, %24.
Item it located too deep in the stack: [ %0 RET %1 %4 %1 %24 %23 %1 %16 %14 %16 %3 %21 %23 %3 %1 %16 %1 %14 %14 %21 %16 ]
PLEASE submit a bug report to https://github.com/matter-labs/era-compiler-llvm/issues/ and include the crash backtrace.
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'test/LibUint1024.t.sol:LibUint1024Test.runtime'.
1.	Running pass 'EVM backward propagation stackification' on function '@fun_mulMod'
--> test/LibUint1024.t.sol:LibUint1024Test

Error: "/usr/local/bin/solx" subprocess failed without exit code:

LLVM ERROR: fun_mulMod: cannot dup 17-th stack item, %24.
Item it located too deep in the stack: [ %0 RET %1 %4 %1 %24 %23 %1 %16 %14 %16 %3 %21 %23 %3 %1 %16 %1 %14 %14 %21 %16 ]
PLEASE submit a bug report to https://github.com/matter-labs/era-compiler-llvm/issues/ and include the crash backtrace.
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'test/VerifyBallot.t.sol:VoteWrapper.runtime'.
1.	Running pass 'EVM backward propagation stackification' on function '@fun_mulMod'
--> test/VerifyBallot.t.sol:VoteWrapper

Error: "/usr/local/bin/solx" subprocess failed without exit code:

LLVM ERROR: fun_mulMod: cannot dup 17-th stack item, %24.
Item it located too deep in the stack: [ %0 RET %1 %4 %1 %24 %23 %1 %16 %14 %16 %3 %21 %23 %3 %1 %16 %1 %14 %14 %21 %16 ]
PLEASE submit a bug report to https://github.com/matter-labs/era-compiler-llvm/issues/ and include the crash backtrace.
Stack dump:
0.	Running pass 'Function Pass Manager' on module 'test/VerifySolution.t.sol:VoteWrapper.runtime'.
1.	Running pass 'EVM backward propagation stackification' on function '@fun_mulMod'
--> test/VerifySolution.t.sol:VoteWrapper

Version info:

 solx --version
solx, eXtremely optimizing SOLidity compiler v0.1.0-alpha.2, LLVM revision: v1.0.2, LLVM build: 9ec5f5291166f06135b0de25a6bc45233826a740
Version: 0.8.29+commit.5549c873.Darwin.appleclang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions