Skip to content

Bad build UX: CMake configure is silent for minutes while cloning dependencies #979

Description

@Mikyx-1

A cold cmake --preset make prints nothing between sentencepiece's status lines and the end of configure:

-- VERSION: 0.2.1
-- Not Found TCMalloc: TCMALLOC_LIB-NOTFOUND
        <-- many minutes of silence here

FetchContent sets FETCHCONTENT_QUIET=ON by default, so the git clone of the remaining dependencies produces no output at all. There is no way to tell whether the build is working or has stalled, and no indication of how much is left.

It is not a short wait. On a slow link, nlohmann/json (~105k objects) took 639s of a 669s configure, entirely without output.

Ideally the configure would name the dependency it is fetching and let git's own transfer progress through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions