glibc-abi-tool

Dev tools

cross compilation tooling

SHOW HN2021

glibc-abi-tool

A 166 KB file for cross compiling glibc for any version, any target

github.com

#glibc#cross compiling#abi#zig#libc

171points
32comments
#279of 2,533 in 2021
Top 12%of 2021 by points

How HN took it

CuriousMostly questions and neutral comments

6 positive, 11 neutral or asking, 0 mixed, 2 critical, out of 19 comments about the project. Thread score +0.14.

Idea: 3 for, 2 againstDesign: 1 for, 0 againstExecution: 1 for, 0 againstDocs: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Zig can target any glibc version, a useful feature

    From 2 comments
    • Something is very wrong with the state of C/C++ compiler development that it takes a different language to come in and make these obviously useful convenience features. Why are…
      modeless on HN
    • Well, but zig just... does it?
      juliancoffee on HN

Objections

  • Maintaining a custom encoding may be costly as glibc changes

    From 1 comment
    • How much work is it to then maintain this bespoke encoding? Without having much context on it, it sounds similar to having to maintain unicode identifier character tables for…
      lhorie on HN

Questions

  • Can the approach be used with other toolchains or C++ compilers

    From 2 comments
    • What does "targeting any glibc version" mean? Is it the solution to the problem where you have to compile on an ancient Debian version to produce a binary that works on all Linux…
      throwaway525142 on HN
    • Can I use this incredible feature with other toolchains, or existing artifacts that have a glibc dependency? Say if I am using a language/toolchain which pulls in a C/C++…
      gavinray on HN
  • How to test against arbitrary glibc versions

    From 1 comment

Alternatives named

  • Sysroot images with older glibc

    From 2 comments
    • The correct solution for that is to just cross compile to whatever older CPU you want and target a sysroot that has a base image of whatever older glibc you wanted: you don't…
      saurik on HN
    • Example: https://github.com/ClickHouse-Extras/sysroot
      zX41ZdbW on HN
  • Docker with older Linux distributions

    From 1 comment

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/29538264)