Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp246376pxj; Wed, 23 Jun 2021 21:08:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyICDta61cMJfj6BuIHTfqvsSYRMug8TOSAW0aGwEDxDKCJNVw2XD4wwYU7HXKKXMzF+CrJ X-Received: by 2002:a5d:948a:: with SMTP id v10mr2422672ioj.37.1624507709596; Wed, 23 Jun 2021 21:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624507709; cv=none; d=google.com; s=arc-20160816; b=udKV9/kgMgxWSjHJzkgErFFvXS/MdbwmfdqrX+ap7h4FInb+swDMHvrcZzQGX24Ed4 8wbFccyStkemtGJYnAJ79Zxoz+pqTwYL4u9VGmTkEk+q+6FDRaqyAxvIoGKc2IvnUdJe CDcgqgcHOtP1mY7hzj/foqw1oK5fhovVdKCtOZ8ZbDCV3VnvnNyISS+uJtJj+uwP0DrG 7mzNseA0l6aBEYNZZdyM5lbJIyly4ULBngzRZlNEETv60oHsi3ZJllulBF8JqV80PXNy qA383YqqjqZYBGscPvheRhAioVDKTAdu65CRVgne7Okk/jgKfXYQW8YXO1lOKV5/exOv ATiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CsgOZGjb7IZ+GhC4u6q7PfKiWlJtqj9nS2SOQ+wlbrA=; b=HgtBee8DgMNG2G0rMpWDwjHeGDoOpS/tx0hMGyW+RZGFnH6W5uoX0V8AJl/70LsaDk sMdAyPYz4TarSKegEmtLbtFvok451ADturrKu2fvuLwZh2DwiZ7xswMyIUEsDivqKaZW EFrOWdRY31/UajbOza7LPlGqEn1J4Nw/NQvYGbYoZh1onAJrg2qSI2M9mvz74c1RbXHD etzHr9EOorbrnglhepIYlog4j6QnWtK9yjsKcom+GI3Rnh/c1yWcj9H0yrxhbGhOBr0f KstgtIxF8KNVQSJb+8Sym2pQ2nUKtPpL4KJC5iOPOj+IPb7154Bgbw3sETw7qL9nk7L1 jAvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tsBrCdUL; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si1997461ilj.131.2021.06.23.21.08.16; Wed, 23 Jun 2021 21:08:29 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=tsBrCdUL; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbhFXEJD (ORCPT + 99 others); Thu, 24 Jun 2021 00:09:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbhFXEJC (ORCPT ); Thu, 24 Jun 2021 00:09:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A64EF613CC; Thu, 24 Jun 2021 04:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624507604; bh=AVYk9Kjb9YIUzHPE+Uh15GvFa4yhwq2OwBOq0u9InVo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tsBrCdUL+zOx7kt1L45LH0oVSMjebFmX8uELfzFhQ6ZrqEU0nqRjdlo2N7BAmE8ZC qo+FOqRJueMBU5neX87YnnK327OutYHXWascl2eWFZiE3QZuMdFr/txlOBj8KQUjGW jB3dj5IjH0J8WoTDw09sVl18ahtrbc5nqed12D2Smi40duK6/wNkF0WO47r6OhT8l+ w/cyTX1TBRZqLVOi1rnBw/SbLuNpEMZONt/JJ2C/vZGIVE3sKFiYeEDZRY+WUJmLqR +TNNauHerq7PuFEpCpM0AMywg1XfR3MXEj7gbVeIku3ZgpUybKiwKTWQ9fQy7EW2SC T0AjD+VN7aodw== Date: Wed, 23 Jun 2021 21:06:41 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Christoph Hellwig , Brian Cain , Sid Manning , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , clang-built-linux@googlegroups.com Subject: Re: how can we test the hexagon port in mainline Message-ID: References: <20210623141854.GA32155@lst.de> <08df01d7683d$8f5b7b70$ae127250$@codeaurora.org> <08e101d76842$94f78a60$bee69f20$@codeaurora.org> <20210623151746.GA4247@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 05:35:38PM +0200, Arnd Bergmann wrote: > On Wed, Jun 23, 2021 at 5:17 PM Christoph Hellwig wrote: > > > > It seem like it still isn't complete enought for a kernel build, though: > > > > $ export CROSS_COMPILE=/opt/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/hexagon-unknown-linux-musl- > > $ make ARCH=hexagon LLVM=1 oldconfig > > ... > > scripts/Kconfig.include:40: linker 'ld.lld' not found > > I tried this using the prebuilt binaries from apt.llvm.org: > > $ make ARCH=hexagon LLVM=1 O=obj-hexagon CROSS_COMPILE=hexagon-linux- > LLVM_IAS=1 CC=llvm-12 defconfig modules vmlinux > :1515:2: warning: syscall clone3 not implemented [-W#warnings] > #warning syscall clone3 not implemented > ^ > 1 warning generated. > > Doing the same thing with allmodconfig results in an internal error > with clang-12 > while compiling kernel/locking/lockdep.c. Same thing with clang-13. > After turning > off lock debugging, it seems fine. I've reported this upstream with you on CC: https://bugs.llvm.org/show_bug.cgi?id=50838 Christoph, that toolchain should work (I had to install libtinfo5 and libc++1-7 on Debian Buster): $ export PATH=$HOME/tmp/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin:$PATH $ make -skj"$(nproc)" ARCH=hexagon CROSS_COMPILE=hexagon-unknown-linux-musl LLVM=1 LLVM_IAS=1 defconfig all CROSS_COMPILE is really only used to set the '--target=' flag when LLVM=1 LLVM_IAS=1 are used, it can even be just 'hexagon-linux'. As Arnd points out, https://apt.llvm.org is also an option, that is what we use in our continuous integration: https://github.com/ClangBuiltLinux/continuous-integration2 Cheers, Nathan