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

Docker version analysis error: No such file or directory #170

Open
HaveYouTall opened this issue Dec 5, 2024 · 5 comments
Open

Docker version analysis error: No such file or directory #170

HaveYouTall opened this issue Dec 5, 2024 · 5 comments

Comments

@HaveYouTall
Copy link

I installed the gigahorse using curl -s -L https://raw.githubusercontent.com/nevillegrech/gigahorse-toolchain/master/scripts/docker/install/install_amd64 | bash on debian 12.

Then I tried the example: gigahorse examples/long_running.hex, and it showed the following error:

Found cached executable for /opt/gigahorse/gigahorse-toolchain/src/../logic/fallback_scalable.dl
Found cached executable for /opt/gigahorse/gigahorse-toolchain/src/../logic/main.dl
Found cached executable for /opt/gigahorse/gigahorse-toolchain/src/../clientlib/function_inliner.dl
Processing contract names...
Discovered 1 contracts. Setting up workers.
Analysing...

Error: [Errno 2] No such file or directory: 'examples/long_running.hex'

Finished 1 contracts...

--------------------------------------------------------------------------------
Timeouts and Errors
--------------------------------------------------------------------------------
  ERROR: 1 of 1 contracts



Writing results to results.json
@sifislag
Copy link
Collaborator

sifislag commented Dec 5, 2024

Hi,

Stupid question but at your working directory does examples/long_running.hex exist?

@HaveYouTall
Copy link
Author

Sure it exists, example/long_running.hex is the official example in this repo.
But since I am using the gigahorse docker, I don't know how to give the correct path, even if this path exists in the host file system.
That's why I am asking this so-called stupid question.

@HaveYouTall
Copy link
Author

By the way, how can I get solidity-like pseudo-code as mentioned in ICSE'19? I only find clients/visualizeout.py to generate a pretty-printed textual representation of the IR.

@sifislag
Copy link
Collaborator

sifislag commented Dec 6, 2024

Sorry for the confusion, I was saying my question is stupid and not yours. I only use the docker wrapper once every six months to check it still works so I'm not too familiar with how it operates.

Anyway the path you are giving gigahorse corresponds to a file in your host machine, not inside the container, so you need to clone the repo, or download the file somewhere else.

Regarding the source-like output this is not open source.

@HaveYouTall
Copy link
Author

Thanks for answering, it just worked when I changed -v ${HOME}:${HOME} in gigahorse bash script (for launching docker) to absolute path, don't know why though. I also checked the output of echo $HOME, which is correct. But anyway, it just works now :)

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

2 participants