From nobody Sun Jul 26 17:04:58 2026 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h7SlQ72pyz6nF2q for ; Sun, 26 Jul 2026 17:05:06 +0000 (UTC) (envelope-from pfg@freebsd.org) Received: from sonic312-24.consmr.mail.ne1.yahoo.com (sonic312-24.consmr.mail.ne1.yahoo.com [66.163.191.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4h7SlQ6Bjvz460h for ; Sun, 26 Jul 2026 17:05:06 +0000 (UTC) (envelope-from pfg@freebsd.org) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1785085501; bh=PNsU294kx51Zj2P66l2cmJE5+5zq0aGa28eq6L1n3io=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=LUFWP67OUiqZOdzq6JsaumgjuCigw0HkIIDYqvb0uXvo7SMziK7a27gW9IbLfh8S1EFLI9GX8l5OayWVBkljgfMOmfrkyp6F9VWss1eLNtGqWQwH34/JGIz90T5YvPgYYmJMz6l8UQBxM9OkkGaLVSA0e5y0oO2bcEzWW1VZ5m5/O+uGmCUjIVpk09TBs6jcTIlCP7XbHZjU6G/XCvWP/1A+I5nD8qiNFoQRfL6cToKXwg3RPlFUEwEVbMdQlgDWVxgPda7kBTv9li3lSXKENNq1f3F1RG7fd2ptGFZI2W5O8BxzFJFwcLbZRNtOBGDu40PsklvTe37pjLLquztxjw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1785085501; bh=hI3X2AA/dgUzFdQr8XRhEPV3c1xFkt9J/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3QJeygnZavlbaYM6HoMaIaC9BMuE6V_KvHxnkE.csDmQ3.ywVdhzHgImRj1Qd6IJtdmMzTsOn7qH utUOBkET5IFY5terbrUJkgvZgW.LPjmrIC404Sg8dGK7DmrYAaIak2bc_j1xN4G5BNqeHuszJIxd U5Um7WZwVfkRA2GWVMC9HYnTLasQfuHo7FMDXg6LkMgccvp_tXzs4LFo41Ta0B8Chub5KL2rl5.h Go13oCzqXe7k_v01a8pecfKGB1rGQtD7GNWDVTsuVlcGckC3TxOdfy.k3uzrQJJp847TIhcDrsu. 2mCkPWj6EUO0FoUrq6yzP5zPlKFZmQAKsCivqwbD_z3E08y2Ah2fAH7TQWfayrfmIxLSdEYASdQa _YjbgJRJ82APIEv.Nt.16Eu0MOZFCx70bN.u6mO1vLAuXyiB6HYnIKUiiB0F35r6RXIoEuuhtMkm wn3AuVmXp5Dl5jKWsl3WkwqSx9vHLK..vgj4dN8gGqOBM2uXYBtuhquFmr3TPTrNQT870T_Cq.91 PZeQCPBr1Laodh_FzCSUOT5SwE1NCM0Q- X-Sonic-MF: X-Sonic-ID: 821f8f2b-b8e3-4802-8806-7fab07133c9b Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Sun, 26 Jul 2026 17:05:01 +0000 Date: Sun, 26 Jul 2026 17:04:58 +0000 (UTC) From: Pedro Giffuni To: ShengYi Hung Cc: "freebsd-hackers@FreeBSD.org" Message-ID: <2099721564.2382268.1785085498592@mail.yahoo.com> In-Reply-To: <0018738e-5393-4331-ba69-985cd0877d53@FreeBSD.org> References: <1668654531.2282553.1785012228754.ref@mail.yahoo.com> <1668654531.2282553.1785012228754@mail.yahoo.com> <0018738e-5393-4331-ba69-985cd0877d53@FreeBSD.org> Subject: Re: Experimental musl Port for FreeBSD List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2382267_1276487477.1785085498591" X-Mailer: WebService/1.1.26180 YMailNovation X-Rspamd-Queue-Id: 4h7SlQ6Bjvz460h X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US] X-Spamd-Bar: ---- ------=_Part_2382267_1276487477.1785085498591 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable (Sorry for top posting, my mailer sucks)Hi; I haven't been following MUSL lately but I recall their math library was sp= onsored by ARM.When discussing a possible port ,the subject of threads came= up as the toughest=C2=A0with doubts=C2=A0 about the interface used by the = linuxulator being stable, but I see you have that solved already. Cheers, Pedro. On Sunday, July 26, 2026 at 10:42:48 AM GMT-5, ShengYi Hung wrote: =20 =20 =20 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, havi= ng another libc implementation can help determine whether an issue is speci= fic to FreeBSD or not. =20 Additionally, some users may want to build their own userspace with a diff= erent libc. Since the libc interface is relatively stable, I think it is wo= rthwhile to spend some time porting another libc implementation to FreeBSD.= If this project gains enough interest, I am willing to rewrite the AI-gene= rated patch myself and work toward getting it merged upstream. =20 Regarding the musl libc AI policy, my understanding is that they do not ac= cept AI-generated patches. I also do not feel comfortable submitting AI-gen= erated patches to a project that I am not familiar with, so I will not do t= hat. =20 =20 =20 Best =20 ShengYi Hung. =20 =20 On 7/26/26 04:43, Pedro Giffuni wrote: =20 =20 Kudos!=20 On Sat, Jul 25, 2026 at 8:31=E2=80=AFPM ShengYi Hung 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.=20 FWIW, I was proposing that as a GSoC some years ago. It would not ever r= eplace our native libc but there are always people wanting to run experimen= ts like creating distributions like Chimera BSD or Alpine BSD. Pretty much = the reason there is/was a FreeBSD glibc port.=20 I wonder if musl libc has some policy regarding AI contibutions :).=20 Pedro. =20 ------=_Part_2382267_1276487477.1785085498591 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
(Sorry for top posting, my m= ailer sucks)
Hi;

I haven't been following MUSL lately but I recall their math library w= as sponsored by ARM.
When discu= ssing a possible port ,the subject of threads came up as the toughest=  with doubts  about the interface used by the linuxulator being s= table, but I see you have that solved already.

Che= ers,

Pedro.
<= br>

=20
=20
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=E2=80=AFPM 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.
=20
------=_Part_2382267_1276487477.1785085498591--