Giter Site home page Giter Site logo

some error when build error about ethir HOT 7 CLOSED

ouerum avatar ouerum commented on August 14, 2024
some error when build error

from ethir.

Comments (7)

ouerum avatar ouerum commented on August 14, 2024

sorry, the output file is form /examples/advertisement.sol in you project. And EtherDelta can not run this program.

from ethir.

ouerum avatar ouerum commented on August 14, 2024

also the example in /examples/sums.sol did not work in your project

from ethir.

tutugordillo avatar tutugordillo commented on August 14, 2024

Hi,
what dou you mean with "did not work in your project"? Did you get an exception message?
Which command did you execute? I have run the three solidity examples that you mention and the execution finishes without error.

from ethir.

ouerum avatar ouerum commented on August 14, 2024

there is no exception msg show for me. I use 'python2 oyente-ethir.py -s xxx.sol' or 'python2 oyente-ethir.py -s xxx.evm -b' to build cfg. Aslo, I try to use python3, but show syntax error.

And I have installed solc, evm, z3 in the way showed in readme.

I did not know what error occurred, so I try to connect you. thinks for your reply.

p.s. I run it in Mac, not Ubuntu :)

from ethir.

tutugordillo avatar tutugordillo commented on August 14, 2024

If you don't get an exception message it executes correctly. I run it with python 2.7 using the follwoing command:
./oyente-ethir.py -s xxx.sol -cfg
It will generate a .cfg file and a .dot file for each contract that appears in the solidity file. These cfg files contain the cfg of each contract in text mode and as a dot image respectively. Note that each contract of the solidity file is executed independently so EthIR generates one file for each contract. For example, if you run EthIR with the contract that you mention in the first post, it will generate 7 cfg files, 7 dot files, 7 rbr files...one for each contract.

Which versions of solc and evm are you using? They should be solc v0.4.25 and evm v1.8.18

from ethir.

ouerum avatar ouerum commented on August 14, 2024

Thanks. I have try it in Ubuntu and it run correctly but not in osX. It show Exception: 1 when i use command:
python2 ./oyente-ethir.py -s xxx.sol -cfg
When I use Pycharm to debug the detail of this exception, the detail of exception is:
'NoneType' object has no attribute 'get_start_address'

In ubuntu, solc: 0.4.25, evm: 1.8.18. In osX, solc: 0.4.25, evm: 1.8.14-stable

from ethir.

tutugordillo avatar tutugordillo commented on August 14, 2024

We haven't tested it for osX yet. Can you send me a link to the sol file that you are using to check it?

from ethir.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.