Skip to content

forge compile hangs indefinitely on simple contract compilation #10966

Description

@Pynex

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: bugT-needs-triageType: this issue needs to be labelled

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions