GCC Newspaper
NOVEMBER 30, 2026
gcc — Proposed — Sentiment 7 / 10

Dereferencing symlinks in GCC snapshot source archives for Windows

GCC snapshots for Windows contain symlinks that fail to extract on Windows, suggesting a need to dereference them during archive creation or remove them from t…

A user setting up GitHub Actions builds for GCC snapshots on Windows encountered build failures due to symlinks in the source archive. Specifically, ‘.github/PULL_REQUEST_TEMPLATE.md’ is a symlink to ‘CONTRIBUTING.md’, which causes extraction issues with tar on Windows. The user proposes either adding a –dereference flag when creating archives or removing the symlink by copying the file. This issue affects GCC 17 snapshots and is not yet present in mainline distributions.

In the Thread 3 participants
  1. Zhongteng Gui <dragon-archer@outlook.com> proposer

    Reports that GCC 17 snapshot archives contain symlinks that cause extraction failures on Windows, proposing solutions to dereference symlinks or remove them.

    “When testing GCC 17 snapshot 17-20261011, the MSYS2 builds failed while extracting the source archive with bsdtar [1]: gcc-17.0.0+20261011/.github/PULL_REQUEST_TEMPLATE.md: Can't create 'gcc-17.0.0+20261011/.github/PULL_REQUEST_TEMPLATE.md': No such file or directory .github/PULL_REQUEST_TEMPLATE.md is a symlink to CONTRIBUTING.md. This means that extracting it on Windows with either GNU…”
  2. Andrea Pinski <andrew.pinski@oss.qualcomm.com> reviewer

    Acknowledges the issue by quoting the proposer's description, indicating they have seen the problem.

    “Hi, I am setting up GitHub Actions builds of GCC snapshots for MSYS2, MinGW-w64, and Cygwin, using their existing package recipes. When testing GCC 17 snapshot 17-20261011, the MSYS2 builds failed while extracting the source archive with bsdtar [1]: gcc-17.0.0+20261011/.github/PULL_REQUEST_TEMPLATE.md: Can't create 'gcc-17.0.0+20261011/.github/PULL_REQUEST_TEMPLATE.md': No such file or di”
  3. Zhongteng Gui <dragon-archer@outlook.com> proposer

    Provides further context in response to Andrea Pinski's acknowledgment.

    “On Thu, Oct 15, 2026 at 6:09 AM Zhongteng Gui via Gcc <gcc@gcc.gnu.org> wrote: > ... > .github/PULL_REQUEST_TEMPLATE.md is a symlink to CONTRIBUTING.md. This means that extracting it on Windows with either GNU tar or bsdtar is likely broken, see [2].”

Technical Tradeoffs

  • Modifying the tar command to dereference symlinks might increase archive size.
  • Removing the symlink by copying the file duplicates content, potentially increasing storage and maintenance overhead if the files diverge.

In Details

This discussion concerns the handling of symbolic links in GCC's snapshot tarball generation for Windows. Specifically, a symlink within the .github directory is causing extraction failures on Windows due to differences in how Windows tar utilities handle symlinks compared to Unix-like systems. The proposer suggests modifying the tar command or the source tree to resolve this.

Filed Under: windowssymlinkstarbuilds