mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Matt Andrews <mattandrews@gmail.com>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [musl] Why does musl require another libc to be built (noob question)
Date: Fri, 19 Nov 2021 10:16:30 +1100	[thread overview]
Message-ID: <CAD0C5PDFDexd+ff-Cef81a9yL+PEJSY_QxDMkJuCbDqCbKVezA@mail.gmail.com> (raw)
In-Reply-To: <CAD0C5PC72LOKap4Em3Tub7W=MVdFQOkc_9ureL2=EFq9XRfWCQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

So if there is no dependency on another libc, then the only ‘dependency’
musl would have is some compiler runtime?

I see in the source there is a ‘crt’ folder. Is that musl’s 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.
>
> 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’ve been trying to cross compile musl with clang. It’s been a
>> > really interesting process and everyone on this list has been really
>> > helpful.
>> >
>> > I hope this isn’t too much of a silly question, but there’s 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’m sure there are very good reasons for needing another standard
>> library
>> > to build musl, but I’m not sure what they are and if anyone could 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
>>
>

[-- Attachment #2: Type: text/html, Size: 2098 bytes --]

  parent reply	other threads:[~2021-11-19 19:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18 21:28 Matt Andrews
2021-11-18 21:40 ` Rich Felker
     [not found]   ` <CAD0C5PC72LOKap4Em3Tub7W=MVdFQOkc_9ureL2=EFq9XRfWCQ@mail.gmail.com>
2021-11-18 23:16     ` Matt Andrews [this message]
2021-11-19 20:00       ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAD0C5PDFDexd+ff-Cef81a9yL+PEJSY_QxDMkJuCbDqCbKVezA@mail.gmail.com \
    --to=mattandrews@gmail.com \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).