Skip to content

Windows: nine lld-link "section name .debug_* is longer than 8 characters" warnings on every compile, including with -e 'print("x")' #1147

Closed

Description

@joshhickson

Summary

Every Windows compile emits nine lld-link warnings about debug section names, including the most trivial possible program. They are harmless but constant, and they bury real diagnostics.

Reproduction

with -e 'print("x")' 2>&1 >/dev/null | wc -l
# 9

Actual

lld-link: warning: section name .debug_abbrev is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_addr is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_info is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_line is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_line_str is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_names is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_rnglists is longer than 8 characters and will use a non-standard string table
lld-link: warning: section name .debug_str is longer than 8 characters and will use a non-standard string table

(plus one more on some inputs)

Expected

A successful trivial compile should be quiet. COFF's 8-character section-name limit with a non-standard string table is expected and normal for DWARF-in-COFF; the warning is not actionable by the user.

Suggest either suppressing this specific warning class on the Windows link line, or filtering it in the driver.

Severity

Cosmetic — but on Windows it is the default experience for every compile, and it makes real linker errors easy to miss. It cost me a few minutes on first install working out whether my print("x") had failed.

Environment

With v0.15.2.1 (release asset with-windows-x86_64.exe, sha256 8f4817f2c4a3a916515ec93fd8a8f228bc9cfcd423689c5977dc564efc02a115, matching the with-windows-x86_64.exe pin in seed.lock)
Host Windows 11 Home 10.0.26200, x86_64
LLVM SDK with-llvm-sdk-22.1.6-windows-x86_64.tar.gz taken from nightly-20260907-34132069721-1-8a729db8d01f, with LLVM_PREFIX set (see the linked issue on SDK packaging)

First-time install on a machine with no prior With and no system LLVM.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    Contributor

    Triage 2026-10-25, Windows x86_64 (win10, with.exe from main c88f3ee): does not reproduce; eb49da3 (#1329) emits CodeView instead of DWARF in COFF objects.

    > with.exe -e print(1)
    1
    # stderr: empty; a behavior test run likewise printed no "section name" warnings
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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