From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6795 Path: news.gmane.org!not-for-mail From: Tomasz Sterna Newsgroups: gmane.linux.lib.musl.general Subject: musl-llvm-clang-libc++ Date: Tue, 06 Jan 2015 15:31:43 +0100 Organization: Xiaoka.com Message-ID: <1420554703.1028.19.camel@xiaoka.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-B8ScwC9v0EdJnWt1sHG2" X-Trace: ger.gmane.org 1420555327 22982 80.91.229.3 (6 Jan 2015 14:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2015 14:42:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6808-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 06 15:42:03 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Y8VEc-0005N8-6o for gllmg-musl@m.gmane.org; Tue, 06 Jan 2015 15:35:50 +0100 Original-Received: (qmail 32270 invoked by uid 550); 6 Jan 2015 14:35:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32261 invoked from network); 6 Jan 2015 14:35:48 -0000 X-Mailer: Evolution 3.12.9 X-Scan-Signature: xkh0.infr.xiaoka.com 1Y8VEN-00027l-Nc eb93fa383ca5c816281e9ad094fb5874 Xref: news.gmane.org gmane.linux.lib.musl.general:6795 Archived-At: --=-B8ScwC9v0EdJnWt1sHG2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 --a= llow-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=3D7276 --=20 Tomasz Sterna :(){ :|:&};: Instant Messaging Consultant Open Source Developer=20 http://abadcafe.pl/ http://xiaoka.com/portfolio --=-B8ScwC9v0EdJnWt1sHG2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJUq/HPAAoJEMbh7DlLbipirN8H/j6SJ48ibJE6Ub76rAroDII0 SEDp3bptlni9xQBZN/t7yy6zCrpkY31TBVQsygX9CtPDRWeYkyyOYbxaOu5uRdM2 xdKF8m43j7jrc7XWDkDLMiJYSeGWMw/vX8gQvcU2uFL1FavzmxTDhPjyUesMbRKV n8S9c69pj+K7WJ3GaTF57qTsLZVWC3hVlj+Ek/n6K4RYEDTKeJPcdcBj6ixtjhhp x+IQS0soTuDnrJM2GtRfrp9YnhAojgrR4XwIaiJPKHbK+cAZkKTBeBB8HJwr4taH goHG42YVjt0rkha7a9yfRo7R2+KwW2JivSFDnrSeeBciwmbDW3dKb6J11purDu4= =eJAF -----END PGP SIGNATURE----- --=-B8ScwC9v0EdJnWt1sHG2--