runtimeverification / runtimeverification/kontrol
Running solc-to-k raises `Target undefined or not built` error
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 122
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Running kontrol solc-to-k test/Simple.t.sol AssertTest raises an error ValueError: Target undefined or not built: evm-semantics.haskell
Full log:
anvacaru@desktop foundry$ kontrol solc-to-k test/Simple.t.sol AssertTest
Traceback (most recent call last):
File "/nix/store/bpcvczdhfxs8ibrdkxpph6a79cxhm4jp-python3.10-kontrol-0.1.123/bin/.kontrol-wrapped", line 9, in <module>
sys.exit(main())
File "/nix/store/bpcvczdhfxs8ibrdkxpph6a79cxhm4jp-python3.10-kontrol-0.1.123/lib/python3.10/site-packages/kontrol/__main__.py", line 90, in main
execute(**vars(args))
File "/nix/store/bpcvczdhfxs8ibrdkxpph6a79cxhm4jp-python3.10-kontrol-0.1.123/lib/python3.10/site-packages/kontrol/__main__.py", line 162, in exec_solc_to_k
k_text = solc_to_k(
File "/nix/store/bpcvczdhfxs8ibrdkxpph6a79cxhm4jp-python3.10-kontrol-0.1.123/lib/python3.10/site-packages/kontrol/solc_to_k.py", line 40, in solc_to_k
definition_dir = kdist.get('evm-semantics.haskell')
File "/nix/store/pfj7ncis3akqr3y8sq56jp9h9c7n5p2x-python3.10-pyk-0.1.585/lib/python3.10/site-packages/pyk/kdist/_kdist.py", line 72, in get
raise ValueError(f'Target undefined or not built: {target_id.full_name}')
ValueError: Target undefined or not built: evm-semantics.haskell
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce kontrol solc-to-k test/Simple.t.sol AssertTest, then inspect kontrol/solc_to_k.py and the exec_solc_to_k entry point in kontrol/__main__.py, focusing on the evm-semantics.haskell lookup. Done means the reported command no longer raises Target undefined or not built and completes its conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, solidity
- Domain
- cli, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100