adamritter / fastgron

High-performance JSON to GRON (greppable, flattened JSON) converter
MIT License
592 stars 10 forks source link

Compile with old GLIBC or musl? #12

Open dufferzafar opened 1 year ago

dufferzafar commented 1 year ago

I'll try compiling on my box as well, but just wanted to leave this here:

I'm on an old Ubuntu 20.04 Focal

❯ fastgron
fastgron: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by fastgron)
fastgron: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by fastgron)
adamritter commented 1 year ago

Musl sounds like a great idea, static compilation is probably more portable than using an older glibc.

dufferzafar commented 1 year ago

Yeah, I've seen rust tools shipping with a musl build precisely for this reason.

Of C++ applications, lnav is one that ships with a musl build: https://github.com/tstack/lnav/blob/master/.github/actions/muslbuilder/entrypoint.sh

adamritter commented 1 year ago

Cool, if you want to fix the release, you can start with changing the build here and send me a PR:

https://github.com/adamritter/fastgron/blob/main/.github/workflows/build.yml

Still, I appreciate your feedback :)