Replies: 4 comments
-
@Pynex cannot reproduce this on Win / Linux, most probably related to your install / setup. Please provide more details, try running |
Beta Was this translation helpful? Give feedback.
-
Title: forge compile hangs indefinitely on Arch Linux during Solidity version installation Description:
logs
forge config:
--use flag works for single Solidity version but fails for multiple versions
But for contracts requiring multiple versions (e.g., 0.6.12 and 0.8.20), it fails with:
How can I compile projects with multiple Solidity versions using only locally installed solc binaries? |
Beta Was this translation helpful? Give feedback.
-
more detail logs |
Beta Was this translation helpful? Give feedback.
-
hi! you have a solidity file pinned to =0.8.20 so you need that version to build. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge Version: 1.2.3-stable Commit SHA: a813a2c Build Timestamp: 2025-06-08T15:42:40.147013149Z (1749397360) Build Profile: maxperf
What version of Foundryup are you on?
foundryup: 1.1.0
What command(s) is the bug in?
forge build/test/compile/coverage
Operating System
Arch Linux
Describe the bug
forge compile hangs indefinitely and never completes compilation, even for simple contracts. The process needs to be manually terminated with Ctrl+C.
Steps to Reproduce
Install Foundry using foundryup
Create a new project or use existing project with simple contract
Run forge compile
Command hangs indefinitely without output
What Works
solc src/Counter.sol --bin --abi --optimize -o build/ - compiles successfully
forge --version - works fine
forge config - works fine
Additional Notes
The issue occurs consistently across different projects
No error messages are displayed
Installed via foundryup from official installer
Local solc compiler works fine with the same contracts
Beta Was this translation helpful? Give feedback.
All reactions