Re: Experimental musl Port for FreeBSD
- In reply to: ShengYi Hung : "Re: Experimental musl Port for FreeBSD"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Jul 2026 22:39:22 UTC
JFYI;
Someone started an implementation for OpenBSD , actually hyperbolaBSD, as well:
https://git.hyperbola.info:50100/hyperbolabsd/musl.git/
Cheers,
Pedro.
On Sunday, July 26, 2026 at 10:42:48 AM GMT-5, ShengYi Hung <aokblast@freebsd.org> wrote:
For me, having another libc implementation would make it easier to perform A/B testing when debugging LLVM components (such as compiler-rt, LLDB, and other tools) on FreeBSD. I have also seen people test libm precision across multiple platforms with different libc implementations. In this case, having another libc implementation can help determine whether an issue is specific to FreeBSD or not.
Additionally, some users may want to build their own userspace with a different libc. Since the libc interface is relatively stable, I think it is worthwhile to spend some time porting another libc implementation to FreeBSD. If this project gains enough interest, I am willing to rewrite the AI-generated patch myself and work toward getting it merged upstream.
Regarding the musl libc AI policy, my understanding is that they do not accept AI-generated patches. I also do not feel comfortable submitting AI-generated patches to a project that I am not familiar with, so I will not do that.
Best
ShengYi Hung.
On 7/26/26 04:43, Pedro Giffuni wrote:
Kudos!
On Sat, Jul 25, 2026 at 8:31 PM ShengYi Hung <aokblast@freebsd.org> wrote: > > Hi all FreeBSD hackers, > > Since Claude reset my token quota last week and I couldn't use all of it, I decided > to spend some time on an interesting side project: porting musl to FreeBSD.
FWIW, I was proposing that as a GSoC some years ago. It would not ever replace our native libc but there are always people wanting to run experiments like creating distributions like Chimera BSD or Alpine BSD. Pretty much the reason there is/was a FreeBSD glibc port.
I wonder if musl libc has some policy regarding AI contibutions :).
Pedro.