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

[Bug-Candidate]: ERROR:Slither-simil:Compilation failed for C.sol using solc-0.4.25 #2622

Open
iirekm opened this issue Jan 5, 2025 · 1 comment
Labels
bug-candidate Bugs reports that are not yet confirmed

Comments

@iirekm
Copy link

iirekm commented Jan 5, 2025

Describe the issue:

I'm even unable to run the tutorial from https://github.com/crytic/slither/wiki/Code-Similarity-detector, I'm getting ERROR:Slither-simil:Compilation failed for C.sol using solc-0.4.25
And no further information, I can't even find in slither a switch to enable verbose mode. When I manually run SOLC_VERSION=0.4.25 solc C.sol - it works.

Code example to reproduce the issue:

Version:

0.10.4

Relevant log output:

No response

@iirekm iirekm added the bug-candidate Bugs reports that are not yet confirmed label Jan 5, 2025
@elopez
Copy link
Member

elopez commented Jan 6, 2025

Hi! Do you have a binary called solc-0.4.25 on your system and in PATH? The --solc flag takes a path to the solc compiler.

I'm assuming you wanted to run this from the tutorial:

slither-simil test etherscan_verified_contracts.bin --filename MetaCoin.sol --fname MetaCoin.sendCoin --input cache.npz --ntop 25 --solc solc-0.4.25

As it sounds like you're using solc-select you probably would need to drop the --solc flag (it defaults to just solc) and then have SOLC_VERSION=0.4.25 on the environment or run solc-select use 0.4.25 beforehand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-candidate Bugs reports that are not yet confirmed
Projects
None yet
Development

No branches or pull requests

2 participants