From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30320 invoked from network); 19 Nov 2021 19:57:47 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 19 Nov 2021 19:57:47 -0000 Received: (qmail 5354 invoked by uid 550); 19 Nov 2021 19:57:44 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 5321 invoked from network); 19 Nov 2021 19:57:43 -0000 Resent-From: Rich Felker Resent-Date: Fri, 19 Nov 2021 14:57:31 -0500 Resent-Message-ID: <20211119195731.GW7074@brightrain.aerifal.cx> Resent-To: musl@lists.openwall.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+d2e9VdJBMYSMMPAfyyAvct5MJCTg7pRXryjjmEwpPY=; b=bLiU1bpmiK0cX7FkE+F/jMXhaoQTvzDBDBvlqO08QM/Nvr8SM/Lww7CYL2s1Jsg25d lSzVEaBNpGIx+1/ts7KTbe0wrF+VoOiDC3yhPXz0NJql5+ptVeiKcJZWT9d+M2r3hwF2 kULY7jBxIUfOAIbreA5Q++PvLiE7p7AF+trVJLl9P2ADW/EqF0r2RZiV2RiUlCOJwMDr VVZaEkhLx+9sa/6NvJqJ9fi2axXmUP1Oa+hfaovej3ixnB+aMwrqnhGrPMW2HNiQ+fQc BoESsg45dvZ2iFOnzBBtrP4GHZNeVLvZpwbnqaJVVXw35V+g1FDegc5BENexrWT4tHdj 09fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+d2e9VdJBMYSMMPAfyyAvct5MJCTg7pRXryjjmEwpPY=; b=ZeFTvYAjs7AJNRn8amnYh8xyOK1U5Nty+vmr/oAj3BTdQmeQ7Ven+uEr6Kadahx5Ku Mzc8vSWiAATTrw4To6d30WuYlcYF1vkXhoYkY+f6twPxDLQbxhTtOYyr8+dqUnttzAlZ Xhd4g7KQP4quBOJLlj6PSk+6hEXe+pPEo19vCQ+1OrINR5O5JZEIwjxbjLwqMFp48InU 0ogSvi+S837GALmfBYpwlY4D3OvZbWDrOoRZ+qKaeh2T0h306JYNtQCB89HWlz0Yvxbd klUuxVYYwr7r0ZX9jEHWn+AIQ9MWhJTGNTtQzH9hkNm/qmr7pVFbIiuRs7NcGmPJsEMk SJbw== X-Gm-Message-State: AOAM530Ghg3U/DJAW/acq4oecRocd7F58nElJ/ruGowSYwoQKuD5hvqw zCn80fiuxPlQWIan82x6hP1soCdAknwDLwZ+wQKcmaEn X-Google-Smtp-Source: ABdhPJxn0ZvwqFbjjAMGvE4CwJEHBHs7eAX4GgAS5V3gAO/cdn+Qpp05OzgidEpfx4J0j1Dh2GOPDZuuFJvPnoRA6nQ= X-Received: by 2002:a05:6402:84f:: with SMTP id b15mr7616056edz.375.1637277401732; Thu, 18 Nov 2021 15:16:41 -0800 (PST) MIME-Version: 1.0 References: <20211118214024.GT7074@brightrain.aerifal.cx> In-Reply-To: From: Matt Andrews Date: Fri, 19 Nov 2021 10:16:30 +1100 Message-ID: To: Rich Felker Cc: musl@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000edd96005d1185985" Subject: Re: [musl] Why does musl require another libc to be built (noob question) --000000000000edd96005d1185985 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So if there is no dependency on another libc, then the only =E2=80=98depend= ency=E2=80=99 musl would have is some compiler runtime? I see in the source there is a =E2=80=98crt=E2=80=99 folder. Is that musl= =E2=80=99s compiler runtime? On Fri, 19 Nov 2021 at 09:31, Matt Andrews wrote: > Oh. I read somewhere that some syscalls like abort require an > implementation that is picked up from some other libc. > > On Fri, 19 Nov 2021 at 08:40, Rich Felker wrote: > >> On Fri, Nov 19, 2021 at 08:28:54AM +1100, Matt Andrews wrote: >> > Lately I=E2=80=99ve been trying to cross compile musl with clang. It= =E2=80=99s been a >> > really interesting process and everyone on this list has been really >> > helpful. >> > >> > I hope this isn=E2=80=99t too much of a silly question, but there=E2= =80=99s a missing >> piece >> > to my understanding of the standard library and that is why you need >> > another libc to build it. I assumed that it is a self contained thing, >> > everything else depends on it. >> > >> > I=E2=80=99m sure there are very good reasons for needing another stand= ard >> library >> > to build musl, but I=E2=80=99m not sure what they are and if anyone co= uld let me >> > know that would greatly appreciated. >> >> It doesn't and I'm not sure where you got that idea. Can you explain >> what you mean? >> >> Rich >> > --000000000000edd96005d1185985 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So if there is no dependency on another libc, then the on= ly =E2=80=98dependency=E2=80=99 musl would have is some compiler runtime?

I see in the source there= is a =E2=80=98crt=E2=80=99 folder. Is that musl=E2=80=99s compiler runtime= ?

On Fri, 19 Nov 2021 at 09:31, Matt Andrews <mattandrews@gmail.com> wrote:
Oh. I read somewhere that some syscalls like abort= require an implementation that is picked up from some other libc.=C2=A0

On Fri, 19 Nov 2021 at 08:40, Rich Felker <dalias@libc.org> wrote:
On Fri, Nov 19, 2021 at 08:28:54AM +1100, Matt Andrews wrote:
> Lately I=E2=80=99ve been trying to cross compile musl with clang. It= =E2=80=99s been a
> really interesting process and everyone on this list has been really > helpful.
>
> I hope this isn=E2=80=99t too much of a silly question, but there=E2= =80=99s a missing piece
> to my understanding of the standard library and that is why you need > another libc to build it. I assumed that it is a self contained thing,=
> everything else depends on it.
>
> I=E2=80=99m sure there are very good reasons for needing another stand= ard library
> to build musl, but I=E2=80=99m not sure what they are and if anyone co= uld let me
> know that would greatly appreciated.

It doesn't and I'm not sure where you got that idea. Can you explai= n
what you mean?

Rich
--000000000000edd96005d1185985--