GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Solve musl and glibc compatibility issues · Issue #952 · async-profiler/async-profiler

Solve musl and glibc compatibility issues #952

New issue
Copy link
New issue
Copy link
Closed
Closed
Solve musl and glibc compatibility issues#952
Copy link
Labels
enhancement

Description

@apangin
apangin
opened on Jul 7, 2024
Issue body actions

Describe the feature

Build a single async-profiler package for each of supported architectures: x64 and ARM64.
Binaries should not have external dependencies such as libstdc++ which may not present on Alpine Linux by default. The same binaries should work on any Linux distribution (Ubuntu, Amazon Linux, CentOS, Alpine) regardless of installed libc version.

Use Case

There has been many issues reported recently about glibc-musl compatibility, e.g. #948, #938, #908.
Also, there is a common ask to get rid of libstdc++ dependency: see #729, #793.

Proposed Solution

To achieve the goal of having one reasonably sized package that works both with glibc and musl and does not depend on libstdc++, we will do the following:

  1. Link libstdc++ and libgcc statically into libasyncProfiler.so.
  2. Reduce the size of libasyncProfiler.so with the techniques described in Get rid of libstdc++ dependency #872.
  3. Patch libasyncProfiler.so to remove the dependency on ld-linux-<arch>.so.
  4. Provide an implementation of __sprintf_chk as a weak symbol, since there is no such symbol in musl libc.
  5. Cross-compile asprof and jfrconv as static binaries with musl toolchain.
  6. Allow cross-compilation for ARM64 on x64.
  7. Prepare a docker image with all the required tools to build async-profiler for x64 and ARM64 as described above.
Reacted by Tolya Korniltsev and Yoni Katzuv

Activity

  1. apangin
    added
    enhancement
    on Jul 7, 2024
  2. apangin
    added 2 commits that reference this issue on Jul 7, 2024

    #952: Solve musl and glibc compatibility issues

    c253454

    #952: Docker image for building async-profiler release packages for x…

    e38cd32
  3. apangin
    closed this as completedon Jul 13, 2024
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.