mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Tomasz Sterna <tomek@xiaoka.com>
To: musl@lists.openwall.com
Subject: musl-llvm-clang-libc++
Date: Tue, 06 Jan 2015 15:31:43 +0100	[thread overview]
Message-ID: <1420554703.1028.19.camel@xiaoka.com> (raw)

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

Hello.

You might be interested to know, that I managed to build a
musl + LLVM (clang, libc++) based, self hosted system.

The hardest part was to scrub libgcc and libstdc++ dependencies.
Using instructions from Wiki[1] and hints from this list[2] and LLVM
bugtracker[3] I finally managed to get a self-hosting system able to
rebuild itself clean without any GCC help.

It requires a bit arm-twisting to LLVM compiler and libs, but it looks
like it works just fine. The musl/libc++/clang++ env is able to build
working libc++ and clang++, which I consider GoodEnough(TM) test case.

If you want to toy around with it you can install it directly from repo.

# mkdir /mnt/test	# I usually mount a btrfs subvolume here
# apk.static --repository http://ftp.d-os.eu/latest/core --update-cache --allow-untrusted --root /mnt/test --initdb add dos-base dos-sdk libcxx-dev

It is based on great work of Alpine Linux.
Still heavily work-in-progress and very rough on edges, but I think it
may be very useful for people trying to get free of GNU libc, libstdc++
and GCC bits, so I decided to share early.
Also it is good to have some more eyes on as there is a lot of guesswork
there.

The apk sources with required patches and some quick notes are on
GitHub: https://github.com/D-os/aports/tree/master/core


[1] http://wiki.musl-libc.org/wiki/BuildingLLVM
[2] http://www.openwall.com/lists/musl/2014/04/22/2
[3] http://llvm.org/bugs/show_bug.cgi?id=7276

-- 
Tomasz Sterna                           :(){ :|:&};:
Instant Messaging Consultant   Open Source Developer 
http://abadcafe.pl/      http://xiaoka.com/portfolio


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

             reply	other threads:[~2015-01-06 14:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 14:31 Tomasz Sterna [this message]
2015-01-06 14:55 ` musl-llvm-clang-libc++ Daniel Cegiełka
2015-01-06 15:06 ` musl-llvm-clang-libc++ Luca Barbato
2015-01-06 16:41   ` musl-llvm-clang-libc++ stephen Turner
2015-01-06 16:43 ` musl-llvm-clang-libc++ Szabolcs Nagy
2015-01-06 17:29   ` musl-llvm-clang-libc++ Szabolcs Nagy
2015-01-06 17:50   ` musl-llvm-clang-libc++ Rich Felker
2015-01-06 22:12 ` musl-llvm-clang-libc++ Richard Pennington
2015-01-06 23:43   ` musl-llvm-clang-libc++ Tomasz Sterna
2015-01-07  0:26     ` musl-llvm-clang-libc++ Richard Pennington

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=1420554703.1028.19.camel@xiaoka.com \
    --to=tomek@xiaoka.com \
    --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).