Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp71902pxb; Wed, 13 Jan 2021 23:41:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsX/mqVpt9jUKabCB/SxMPDcSz7Ab/k9WtVtVH5rjCp2QbS6ibRW2e2z1qkSYEiHa9E5+I X-Received: by 2002:a05:6402:1692:: with SMTP id a18mr4609734edv.321.1610610106859; Wed, 13 Jan 2021 23:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610610106; cv=none; d=google.com; s=arc-20160816; b=iMzeHfo+qgfB+1cJJK7jlDqRYbun12cltYFVoJxu6IziSrSxxo+GOma42McbYEYlyh qSiUd5C7glfE3FkjFqOX1wwtjDqULi0/CyoyVr1p+Bp/kOFcgbgGyiZpFDzp6IVIF+SK +T/MH0wp2sTlqNGp9V7Lf0jtjOVBdhxHoxn098awKUOLPAwsGdMOCQhdGuooMh8P6srW iwBGIjmHJzOnmgxjCuzIAcnbGJRC4rDkyJml/BKGG8ew0pAA37C3xx8AIZMuzmu7tJKT RQlo+is+uSz1rNDbqHq8QFMulb1p8rOlbPE4w+TJmnelEGHPU84rqfGSg8mHchGq376V 1u1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=pDkl50wKKXvlnFEMyoCOA4eiXkVtCkofqFa11F/2prs=; b=og2/Ar9BWPCI40QUGJ+JgW7j7dhshfpQJCgx5e1tDS5t4+UNhjdceK43QpUXkZbk69 9GEfln+lxOtnZ80/LYXkpGQW5lWEV2o43QAW/Q4E1Z0q6Cqy7Q6LjM7cl8nRzhjT9cuc exv1hB+tXzR/oDzN9Sm30ZB7O3fWlxMSEUix4GLrxxJnnXrKcuiimrYoN8f7Bjh78o43 dwLYYgUE+vkRrGrTjXBn5UlCfzoID6ZJCvEgUzvrJjZ33xLdGPxHp+bzPmme/MrFdVBz RyG6WIaBG7Z24zIMuDBAWvf2w9DzqoZc+S2D5B2toEx96yHdNl+5yuysuHeP30hZ0EAM inrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LZyONW5l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si2388546edj.194.2021.01.13.23.41.23; Wed, 13 Jan 2021 23:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LZyONW5l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727499AbhANHkE (ORCPT + 99 others); Thu, 14 Jan 2021 02:40:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727377AbhANHkD (ORCPT ); Thu, 14 Jan 2021 02:40:03 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2390C061786; Wed, 13 Jan 2021 23:39:22 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id o6so9347296iob.10; Wed, 13 Jan 2021 23:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=pDkl50wKKXvlnFEMyoCOA4eiXkVtCkofqFa11F/2prs=; b=LZyONW5l41afxbiMWOMOs2HO+Ycvj/ZhU6K3xVqaHgQmQgTGvC1VQ1gc6kVTsnGFKJ cmL7EHu+N03GO+52M3MV2CNuYp5od3c08tcT4hFsrAZpMZ3bmTUxl8b+L7yv4UNwPdU+ TvSw9dtuJ/2nVUNZlFoy1x22WzDToEqa8CQB8oUIaZRUkFbzU51MT90mThiwyeodhDZM 0f2nX0dcifQEi3DsWP81K2g5pcFZpilE/644iPlx2Ie6SraPNbekg18NWSylqf0BSYCt /zrNRyt0B9abhw5pPdskxkXdremW4yHbcGPAr1aOBU+8Q9SfhmmByiTZ45JdMzj+IzMQ pJTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=pDkl50wKKXvlnFEMyoCOA4eiXkVtCkofqFa11F/2prs=; b=SMXAXCxx2a9ipsBYY9Fw+bNmiyoR2HgGBuVUcjdkLKQo2AXb9xM3itEqUI7ptHhG58 XJdsT9ntvH6ORA4owA5YBawiSTZQuxhOPX/8KyqEHK+Blv+wWnh53neF4wMRjSdaVfdG NyByoa2JgoG/IS9TEFhXkKCflRxH01O+Qgzbz+ZKQv63wsbrA2Dk7p/BYSXA30KMiTkS 1kNH4r8d/czRl4ifGQ4Xl3F+F6BVUr073nC5Q2ttOF/spPLA2BSVHVpJTLJB1StvCgNR zVia1aSMI6uzyT/VEWi+eZigYISGXjmUlu1O2Ahp/V2yFvtgmXZ0psuJmeHbyRn1ZTK0 x5MA== X-Gm-Message-State: AOAM5337QjXeKf3nFZpEZJNw19wStoy9J3UiIwcIKEmLF9nDds/XVdiS kC0YuZT1uEzXv7lj6t69tazX+QAbZP8cBHtfB2I= X-Received: by 2002:a92:d990:: with SMTP id r16mr5718971iln.10.1610609962241; Wed, 13 Jan 2021 23:39:22 -0800 (PST) MIME-Version: 1.0 References: <20210114003447.7363-1-natechancellor@gmail.com> In-Reply-To: <20210114003447.7363-1-natechancellor@gmail.com> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Thu, 14 Jan 2021 08:39:11 +0100 Message-ID: Subject: Re: [PATCH] Documentation/llvm: Add a section about supported architectures To: Nathan Chancellor Cc: Nick Desaulniers , Masahiro Yamada , Michal Marek , Jonathan Corbet , Clang-Built-Linux ML , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Miguel Ojeda Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 1:35 AM Nathan Chancellor wrote: > > The most common question around building the Linux kernel with clang is > "does it work?" and the answer has always been "it depends on your > architecture, configuration, and LLVM version" with no hard answers for > users wanting to experiment. LLVM support has significantly improved > over the past couple of years, resulting in more architectures and > configurations supported, and continuous integration has made it easier > to see what works and what does not. > > Add a section that goes over what architectures are supported in the > current kernel version, how they should be built (with just clang or the > LLVM utilities as well), and the level of support they receive. This > will make it easier for people to try out building their kernel with > LLVM and reporting issues that come about from it. > Thanks, this was overdue and is definitely helpful for users and developers. For x86 64bit: Reviewed-by: Sedat Dilek Together with "[PATCH] kbuild: check the minimum compiler version in Kconfig" this looks very good to me. /o\ - Sedat - [1] https://marc.info/?t=161059811000001&r=1&w=2 > Suggested-by: Miguel Ojeda > Signed-off-by: Nathan Chancellor > --- > Documentation/kbuild/llvm.rst | 44 +++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/Documentation/kbuild/llvm.rst b/Documentation/kbuild/llvm.rst > index 21c847890d03..b18401d2ba82 100644 > --- a/Documentation/kbuild/llvm.rst > +++ b/Documentation/kbuild/llvm.rst > @@ -63,6 +63,50 @@ They can be enabled individually. The full list of the parameters: :: > Currently, the integrated assembler is disabled by default. You can pass > ``LLVM_IAS=1`` to enable it. > > +Supported Architectures > +----------------------- > + > +LLVM does not target all of the architectures that Linux supports and > +just because a target is supported in LLVM does not mean that the kernel > +will build or work without any issues. Below is a general summary of > +architectures that currently work with ``CC=clang`` or ``LLVM=1``. Level > +of support corresponds to "S" values in the MAINTAINERS files. If an > +architecture is not present, it either means that LLVM does not target > +it or there are known issues. Using the latest stable version of LLVM or > +even the development tree will generally yield the best results. > +An architecture's ``defconfig`` is generally expected to work well, > +certain configurations may have problems that have not been uncovered > +yet. Bug reports are always welcome at the issue tracker below! > + > +.. list-table:: > + :widths: 10 10 10 > + :header-rows: 1 > + > + * - Architecture > + - Level of support > + - ``make`` command > + * - arm > + - Supported > + - ``LLVM=1`` > + * - arm64 > + - Supported > + - ``LLVM=1`` > + * - mips > + - Maintained > + - ``CC=clang`` > + * - powerpc > + - Maintained > + - ``CC=clang`` > + * - riscv > + - Maintained > + - ``CC=clang`` > + * - s390 > + - Maintained > + - ``CC=clang`` > + * - x86 > + - Supported > + - ``LLVM=1`` > + > Getting Help > ------------ > > > base-commit: 7c53f6b671f4aba70ff15e1b05148b10d58c2837 > -- > 2.30.0 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20210114003447.7363-1-natechancellor%40gmail.com.