Skip to content

LLVM build output spew doubles the size CI logs. #70468

Closed
@eddyb

Description

@eddyb

Out of the 12622 log lines in a recent dist-x86_64-linux build:

  • 4843 of them are from the LLVM build itself
    • half of those are printing the file being compiled
    • the other half is this warning for every compiler invocation:
      clang-9: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
      
  • 1693 are from installing the LLVM build

So that's 6536 lines, over half of the log, that's noise from a successful LLVM build.

The result is slowed down log navigation, which can be frustrating when looking for an failure.

I'm not sure what the best way to quiet each of these things is, but I should mention that with ninja (and no -static-libstdc++), the only thing I see locally is the 1693 "Installing: ..." lines:

  • the build itself is contained within one status line, assuming there are no warnings, but I'm not sure how ninja would behave on CI (on Windows CI it certainly still outputs one line per file)
  • would be nice to get rid of those "Installing: ..." lines locally too

cc @Mark-Simulacrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions