Skip to content

Restrict sysroot libgcc fallback script to the base variant - #1179

Closed
phlax with Copilot wants to merge 3 commits into
bazel-sysroot-libgccfrom
copilot/bazel-sysroot-libgcc-cleanup
Closed

phlax with Copilot wants to merge 3 commits into
bazel-sysroot-libgccfrom
copilot/bazel-sysroot-libgcc-cleanup

Conversation

Copilot AI commented Oct 23, 2026 •

Copy link
Copy Markdown

The fallback libgcc_s.so script was also being added to libstdc++ sysroots because Debian installs its development script under a GCC-versioned directory. Unsupported architectures were rejected only after debootstrap.

  • Variant isolation: Gate fallback creation on base, retain the existing-file guard, and clarify the README.
  • Early validation: Map amd64/arm64 to a global TRIPLE before build setup and print it in the configuration.
  • Diagnostics: Report missing runtimes on stderr and list discovered libgcc_s.so* files.
  • Linker semantics: Document why the script uses a bare runtime name and omits Debian’s -lgcc:
    INPUT ( libgcc_s.so.1 )
    This preserves GNU ld/lld search-path portability without requiring libgcc.a.

phlax and others added 2 commits October 23, 2026 17:06
removes need for libstc++ to be pulled in

Signed-off-by: Ryan Northey <ryan@synca.io>
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
Copilot AI changed the title [WIP] Cleanup install_libgcc_dev_link step in build_sysroot.sh Restrict sysroot libgcc fallback script to the base variant Oct 23, 2026
Copilot AI requested a review from phlax October 23, 2026 16:27
@phlax
phlax force-pushed the bazel-sysroot-libgcc branch from 2383edb to 647a785 Compare October 23, 2026 16:28
@phlax phlax closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants