Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM IR generator definition pass error #99

Closed
mmv08 opened this issue Aug 5, 2022 · 11 comments
Closed

LLVM IR generator definition pass error #99

mmv08 opened this issue Aug 5, 2022 · 11 comments

Comments

@mmv08
Copy link

mmv08 commented Aug 5, 2022

I'm trying to compile Safe contracts for zksync, but I'm facing an error:

Error in plugin @matterlabs/hardhat-zksync-solc: The contract contracts/proxies/GnosisSafeProxyFactory.sol:GnosisSafeProxyFactory LLVM IR generator definition pass error: Contract with identifier GnosisSafeProxy_39.GnosisSafeProxy_39_deployed not found in the project

I've tried it with Solidity 0.7.6 and 0.8.15, same error in both cases

To reproduce, you can use https://github.com/safe-global/safe-contracts/tree/zksync:

  1. Clone the repo
  2. run yarn

I'm using macOS 12.5 with an M1 laptop. Would appreciate your help in debugging

@ly0va
Copy link
Member

ly0va commented Aug 8, 2022

Thanks for the feedback @mikhailxyz!
We'll take a look at it shortly.

cc @AntonD3 @hedgar2017

@hedgar2017
Copy link

The problem is type(*).runtimeCode. We do not support it.
I can improve the error message though.

@ultraviolet10
Copy link

Is there a specified solution to this issue?
The problem seems to be arising from imports?

@1500256797
Copy link

what should we do ? how to solve this bug ?

@hedgar2017
Copy link

what should we do ? how to solve this bug ?

It is not a bug, but a feature unsupported on our architecture.
The only way is to remove runtimeCode access from the dependency.

@Senya123
Copy link

Senya123 commented May 3, 2024

Any solutions guys?

@Senya123
Copy link

Senya123 commented May 3, 2024

Can't run any test in every directory

@hedgar2017
Copy link

Can't run any test in every directory

Could you elaborate?

@Senya123
Copy link

Senya123 commented May 5, 2024

Can't run any test in every directory

Could you elaborate?

#1040

@Senya123
Copy link

Senya123 commented May 5, 2024

Can't run any test in every directory

Could you elaborate?

Since i download the foundry-zksync i can't run any test in every directory via forge test. I receive the issue above 👆 Any thoughts? I have found the guy who has the same issue and he couldn't resolve it also. He
Screenshot 2024-05-05 at 10 16 41

@Senya123
Copy link

Senya123 commented May 5, 2024

Can't run any test in every directory

Could you elaborate?

How to get rid of it ? 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants