Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5586874pxv; Wed, 7 Jul 2021 07:14:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzYjDd/e44kf7kIcOjLseNLiiWQGyXCE+KzETV2CJIhpT2AuyY4SII7SjvqZ4moOXyRAE1 X-Received: by 2002:a05:6638:347:: with SMTP id x7mr22214077jap.143.1625667245935; Wed, 07 Jul 2021 07:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625667245; cv=none; d=google.com; s=arc-20160816; b=Atj3YeSsP4BHoYtMKEb1kTvYZCSB3pmxi7FN8y3SowkPLXsIe2v9O0qlRRbcI6A/uy Rb5qnux4tPah0Cno0o4PPaXxvBcig8iP3aWP84bDQZ1J1svx58xNY1nHiMXIv4/fikKY 4Valu+egY1u4MEBhFXRGVwRw12KDcmVn9Np8rrcrGjZZFtqNrcQIU4eBm3mTW3SCcYxZ IX0h65g0KV4kISFFkjmb9m9iRqBa5sl19ic3PRVFLHA2LaqjHYUNzHwUhf2eXD8BkxLN RNz7okH5FgQ109iTss3OTD1XHc1dgbdkYJdIqiU44260Eni+kYBisJQ8nptCQ5PP/Tcs kD9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LRb02DqEVN6yT+o1oBVSNSz/zMNK3NkvYrnj76C/B94=; b=hYCSrRYIhzF8KynTk+E4nKl56M9jPeUs1dlcXh0arUiCWPnmnXeKbzRdcTYTgtICHc iZuCbCSMfpoQK1+pQMUW9o57iGNlhQ2uLI5bpA+sTxiJ63rn/G1ULW+x4Y7A+jyFPuTG /2dxLK54qlvSkJ5rGw0/iRbQ/AZ6ieWhVQ4SIG0sHG5cq+auu/MEEQJI4h4/Yl/iZJI1 HMpk87jhABJBxSlHlpIDXNKMcMkemAlSkMbUVtIH7oz1VlRrxlBFHEkmZjcp7PDXuGjk eFlR7wbytSXPSm169oWop4Vvk4q5LXBLSRnVA8Zn+/YWHueZoMnJ494hHO0o3L/S/PiJ BKig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si18305454ilk.157.2021.07.07.07.13.53; Wed, 07 Jul 2021 07:14:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbhGGONj (ORCPT + 99 others); Wed, 7 Jul 2021 10:13:39 -0400 Received: from verein.lst.de ([213.95.11.211]:37099 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbhGGONj (ORCPT ); Wed, 7 Jul 2021 10:13:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9B32B68BFE; Wed, 7 Jul 2021 16:10:54 +0200 (CEST) Date: Wed, 7 Jul 2021 16:10:54 +0200 From: Christoph Hellwig To: Nathan Chancellor Cc: Arnd Bergmann , 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: <20210707141054.GA24828@lst.de> 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: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 09:06:41PM -0700, Nathan Chancellor wrote: > 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 I've not actually got any mail from that Cc.. > 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 hch@brick:~/work/linux$ make -j4 ARCH=hexagon CROSS_COMPILE=hexagon-unknown-linux-musl LLVM=1 LLVM_IAS=1 defconfig all HOSTCC scripts/basic/fixdep clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory