-
Notifications
You must be signed in to change notification settings - Fork 6k
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
assertion failed [block != nullptr]: BasicBlock requested for unrecognized address (BuilderBase.h:550 block_for_offset) #13523
Comments
Is that error really coming from the compiler? We do have a struct called If it's a compiler problem it should be reproducible just by running |
Same for me: assertion failed [block != nullptr]: BasicBlock requested for unrecognized address And also on MacOs. Same code on Ubuntu works. |
This error happens running Deno scripts on macos with M1. It's nothing to do with solidity per se. |
Thanks for confirming @crucialfelix. In that case I'm going to close this. |
SolvedThe issueFor those who find this and are still stuck with these intermittent errors. The issue (that I had) was that node was installed with x86 arch on an M2 Mac. The underlying issue is with Rosetta, which is used to translate between the x86 instructions to Apple silicon. I encountered this particular problem where the integrated terminal in VSCode kept using Rosetta as the default option. You can check the arch in your terminal.
Steps to solveIf you're using brew, delete node entirely and install
Steps to solve in VSCodeAdd this into your
Thanks for listening to my TED Talk |
You can also run brew commands this way:
|
If you have cpu m1/m2 y can use # arch="$(uname -m)"
arch="arm64" it work like a charm. compilation speed increased in 70% or more. To install some special vesrion: nodenv install 18.16.0
nodenv local 18.16.0 |
Description
The compiler is crashing with the following error message:
I contacted truffle support, and they advised that it was a compiler bug and it should be reported here.
Environment
Compiler version:
Truffle v5.4.11 (core: 5.4.11)
Solidity - 0.8.17 (solc-js)
Node v18.7.0
Web3.js v1.5.2
Target EVM version (as per compiler settings): 0.8.17
Framework/IDE (e.g. Truffle or Remix): 5.4.11
EVM execution environment / backend / blockchain client: ganache v7.4.1 (@ganache/cli: 0.5.1, @ganache/core: 0.5.1)
Operating system: Mac OS
Steps to Reproduce
This error is intermittent, I will record a video to demonstrate it and share it in the comments. Also, documenting the steps below
The text was updated successfully, but these errors were encountered: