Closed cpb8010 closed 1 week ago
Running with just hardhat gives a different, but equally suspicious error
Compiler run failed: Error: Compiler error (/solidity/libyul/backends/evm/AsmCodeGen.cpp:61):Stack too deep when compiling inline assembly: Variable dataEnd is 2 slot(s) too deep inside the stack. CompilerError: Stack too deep when compiling inline assembly: Variable dataEnd is 2 slot(s) too deep inside the stack.
@cpb8010 we're investigating the first error and preparing a fix: it is on zksolc's side.
The 2nd one is on solc's side. Is there a zksolc section in the hardhat config? I can only see solc here.
@cpb8010 we're investigating the first error and preparing a fix: it is on zksolc's side.
The 2nd one is on solc's side. Is there a zksolc section in the hardhat config? I can only see solc here.
Oh ignore the second error then, I was trying to reproduce it another way
@cpb8010 fixed in zksolc v1.5.7! The release will be finalized today after the verifier gets updated.
π Bug Report
As originally reported: https://github.com/zkSync-Community-Hub/zksync-developers/discussions/746
π Description
Compiling contracts causes a duplicate symbol error to be thrown in LLVM.
π Reproduction Steps
forge build --zksync
π€ Expected Behavior
Compile without errors or at least with errors that look like the contracts need to be changed. Not seeing LLVM errors would at least make it look like incompatible Solidity (no selfdestruct is OK)
π― Current Behavior
Compiling the contracts fails with the following suspicious error
π₯οΈ Environment
Reproduced on both Fedora and OSX, see above log
π Additional Context
I'm 80% sure someone got these contracts to compile before by making changes, but I don't know who and what changes they made.
π Log Output
Full error log