From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D5519139694 for ; Sun, 7 May 2017 06:06:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 769D1E0CCB; Sun, 7 May 2017 06:06:37 +0000 (UTC) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2D908E0CCB for ; Sun, 7 May 2017 06:06:36 +0000 (UTC) Received: by mail-wm0-x235.google.com with SMTP id b84so23177560wmh.0 for ; Sat, 06 May 2017 23:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=w0A3BOVKO5aslfwonDvU840s9s+rKovX+pQYVAe5ZQk=; b=egP7hWffTI3V7mh7ltZKKe4IbdQwBRwxrtVHBc8xthOSZospMBBCoo052zrZlFHYUC 4I9GvqENiD6rX/w4Y0l8D8m4W6GXvAc9Jt5dV4/x7P3W8jqlEF5Pjkpi9+zA87bwcrsr zXUCb/dcG62nFRFyhOzIp1b3hRlPdS9PI7rQAxL7udiGKkxnEyjXptqlZ8rByWN/Ju5P m3T7/A3JqLwc5hO+SmtLHT2yaPGObSQObhi1Nb4WCqHWsjHW19M4YYA5p6KSBnNVXAEh O/tfx/ioh7Bple51JvAaZ3tMg5DtNLvuC0uzQJFUd5Q8T+vaKzkCm6k3fuusVJra1tWY AoMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=w0A3BOVKO5aslfwonDvU840s9s+rKovX+pQYVAe5ZQk=; b=GPT6Hiua/g3cEUB+qt0VKWIY0ZBMIQizQaZJYvfH0BKF6J4Thgq3eL2ap4DDsjaCaE n5Gy7YEv7pNWc5oLcJpknc+/jG3QMr5NBLo4Zf+nKF0S/2bgOtC3SEa1CsbrkEU2AKwp x0vRCcJJqjSUWNdmvTKVpoRZl7I+rEqUSZxAzYpzazaAr6tfSweYx6Pdd5g0pLzLcepD nuMAsvLEbDaSZSLedEWdYt2ZkN1phpxM0jueZA9swzk04kzbFmou6laAcIgQdptmLJrR bQ7Xw/gQsx+HTWHOZpLuD7H2c7uLJ+TiH1Nu41vzi8QXlcPAoW5h5uVRofQYRny2vxH5 H0kA== X-Gm-Message-State: AN3rC/6Z0fRQ983PtFuBC1QJJIJTYdNR8Sk4+3kEu0/ixh4MJOnWcZZd ointBBA9n1nUcfo7 X-Received: by 10.80.204.148 with SMTP id q20mr15358951edi.122.1494137195654; Sat, 06 May 2017 23:06:35 -0700 (PDT) Received: from Krypton.localdomain (ptr-eiulhdzvcamuf6swsbo.18120a2.ip6.access.telenet.be. [2a02:1811:e409:dd00:fefc:909b:1940:3b64]) by smtp.gmail.com with ESMTPSA id g29sm3043329eda.43.2017.05.06.23.06.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 06 May 2017 23:06:34 -0700 (PDT) Date: Sun, 7 May 2017 08:05:33 +0200 From: Jens Staal To: gentoo-musl , llvm@gentoo.org Subject: [gentoo-musl] Self-hosting Clang-based (libc++, musl libc) stage4 Message-ID: <20170507060532.GA2655@Krypton.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo musl list X-BeenThere: gentoo-musl@gentoo.org X-BeenThere: gentoo-musl@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.2 (2017-04-18) X-Archives-Salt: 15ac281b-b3d2-4394-98fa-da9b186c862c X-Archives-Hash: fa2be8ac57d3ce342907a036e86c33a5 Dear all, I have made a self-hosting clang-based stage4 that some might want to play with. LLVM/clang (4) are bootstrapped against libc++ and gcc is uninstalled (custom crt{begin,end} from ELLCC, see /usr/local/hack/crt) An update from the last version announced on the gentoo-musl list 1st of May is that I now have LLVM-patched linux (4.11) sources in there (already installed and symlinked to /usr/src/linux, default config binaries installed to /boot) The stage4 can be downloaded here: https://mega.nz/#!VrQASApL!F4v7SmS5wkJKBzBigsqptipJYuT94yT3-ObjOWEEG3Y sha256sum: 6d7d68478ead5c80fa34553cf3fbff2af2916364d1aef0cbdae7147c8761aa81 stuff that might interest the LLVM project: - the whole system is based on libedit - some LLVMlinux patch sources: full patch set from llvmlinux project + extras https://github.com/staalmannen/linux/tree/llvmlinux minimal patch set https://github.com/ramosian-glider/clang-kernel-build the minimal patch set + some fixes against noisy build https://github.com/staalmannen/linux/tree/llvmlinux-fresh The linux 4.11 in /usr/local/portage-clang/sys-kernel/llvm-sources is patched against the minimal patch set. For later kernel versions I would most likely go for the llvmlinux-fresh set (alternatively, fixes are upstream in the kernel or in clang-kernel-build). Important note: I did not write any of those patches, just applied them. Some thoughts: - it would be really cool if an "official" custom crt package for llvm/clang could be in portage - it would be really cool if llvm-sources could be officially supported since this would mean that clang actually can be (optionally) used as a system compiler with no reliance on gcc (a few years later than freebsd).