Skip to content

Fix missing libstdc++.so.6#5

Merged
reutermj merged 1 commit intomainfrom
fix_libstdcxx
Jun 28, 2025
Merged

Fix missing libstdc++.so.6#5
reutermj merged 1 commit intomainfrom
fix_libstdcxx

Conversation

@reutermj
Copy link
Copy Markdown
Owner

libstdc++ was getting statically linked into the binary due to missing target of the symlink from libstdc++.so -> libstdc++.so.6. This was caused by missing a dependency libstdc++6 of libstdc++-12-dev.

Copilot AI review requested due to automatic review settings June 28, 2025 17:31
@reutermj reutermj enabled auto-merge (squash) June 28, 2025 17:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR ensures that libstdc++.so.6 is available by extracting the libstdc++6 package in addition to libstdc++-12-dev.

  • Added download and extraction of libstdc++6 artifacts to the sysroot.
  • Ensured the missing libstdc++.so.6 symlink target is provided.
Comments suppressed due to low confidence (2)

impl/ubuntu.bzl:25

  • The function’s docstring or comment should be updated to mention the new libstdc++6 extraction step so readers understand its full behavior.
def _extract_libstdcxx(rctx):

impl/ubuntu.bzl:31

  • The URL references the toolchains_cc repo whereas the first extraction uses toolchains_cc.bzl; please verify and correct the repository path for consistency.
        url = "https://github.com/reutermj/toolchains_cc/releases/download/binaries/libstdc++6_12.3.0-1ubuntu1.22.04_amd64.tar.xz",

url = "https://github.com/reutermj/toolchains_cc.bzl/releases/download/binaries/libstdc++-12-dev_12.3.0-1ubuntu1.22.04_amd64.tar.xz",
output = "sysroot",
)
rctx.download_and_extract(
Copy link

Copilot AI Jun 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider extracting the version string and base URL into constants to avoid duplication and simplify future updates.

Copilot uses AI. Check for mistakes.
@reutermj reutermj merged commit eafdec5 into main Jun 28, 2025
4 checks passed
@reutermj reutermj deleted the fix_libstdcxx branch June 28, 2025 17:32
libstdc++ was getting statically linked into the binary due to missing target of the symlink from libstdc++.so -> libstdc++.so.6. This was caused by missing a dependency `libstdc++6` of `libstdc++-12-dev`.
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