Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5794397pxv; Wed, 7 Jul 2021 11:53:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznJhZn9bTnioyUiIh12FiQpeg5HZS7sXMiTbq4gkk/dJ3Kn70kbdepSYbBIstwMAUhgEja X-Received: by 2002:a17:906:edbc:: with SMTP id sa28mr19986185ejb.370.1625684020015; Wed, 07 Jul 2021 11:53:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625684020; cv=none; d=google.com; s=arc-20160816; b=kap1WMBlEMUS4+WYkgbSVHvvqP8DHWZp4Ywed8SMf/Zf81XUxl1mRs3zgDxCrB6Stq ns6XcjyXU629Nki7+meESiMA2vGs4IFXUQx9VItmimG8dDJ4cWedn1Y5v2+sulyR4n0W f46jWHhM4qJ3FtgkVPmV/8Wk+4gWRxYjFNuf2Py4tV7eTG7GXUUUz4gaR1oFwoQ1DTUj TWewD2XIuzY0PmnNELLGAzcFJBapdnuyrRlOeAjwe6IUG8VmqdYKxzd8bL2jUVmYJQyF c0tGK95o6t0lpsjrBV68GAvt1V1DZpzpRNSjmd1esyOJKnGAG9/8IVd+xyu7cd8ylCol 7w6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=lMrxpMvBZXKUckRRseDcZCGvz7oxJYAhHIuN/xT3W0g=; b=Jku82/luJquNLLsqicxrf5dw+Lt0D7iqtZYEn0y8rqaxrKvdLR/E4NlBk7tqe0RqMR EcZFY3KVgRBlTbAC5PxOQIWv/TTQfI5QPWzzTW78x5o2DE3PNptPMSz0n/Hvo5W2DU2h 6UggAJr/kaMeU4islh+Ln5qn2qm7XZ8KcmN1D7kBoI2Y7ktO7eZd/1A8JzMZ0ln0FvBO 9WSIVUfjT5DvLzLJH/fOrK4j2UI4XGXWbIkhzxikTh0EYj1KlSYsKqXk4kCpERZM/H0H CXRpREucMSdd3/BNqEbvzQniUnbN//vlsBZljstneu09WRN5IxwfOtFObbDXCoFVX6j7 rd5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hMbfu1g6; 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 dr18si7755308ejc.30.2021.07.07.11.53.16; Wed, 07 Jul 2021 11:53:40 -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=hMbfu1g6; 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 S231192AbhGGRpO (ORCPT + 99 others); Wed, 7 Jul 2021 13:45:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbhGGRpK (ORCPT ); Wed, 7 Jul 2021 13:45:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A55B61CC9; Wed, 7 Jul 2021 17:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625679750; bh=Tf1JbiTjBYSqr3fsXG06VqkmXcrZq/92XkeTceZpn5M=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hMbfu1g6APDl53Tn9rXQc5wtA1iNOivGcl10HL4v7YRByVgCxyh0xvlSWSpgWdqYr CMCYMbZV47X57YXuIcZgzSKPchRe1TMdCdsSlawD+U/vdY3abWvsV0TGF0f0XAm3K+ 2AQKV1DX96tVCcg2ddXua6HfhpBDx7YzKcOkBIKyjl+vG0o4GR+4Kic7izBfyCY01T 5UBoXc4DhRmBA6UFN7qiCrkjycxFMK9Gzi+vCwbmI9M9TnXGZsV8ZxwTL82mszW6vl kEIN2t1tnLYOTfrC+LfeJ7jXxkvVcWkplDF3YyygPYbFtCLXq5TtySCOnXiA9hj95s DQiDNDUdJAwSQ== Subject: Re: how can we test the hexagon port in mainline To: Christoph Hellwig , Brian Cain , Sid Manning Cc: Arnd Bergmann , linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , clang-built-linux@googlegroups.com References: <20210623141854.GA32155@lst.de> <08df01d7683d$8f5b7b70$ae127250$@codeaurora.org> <08e101d76842$94f78a60$bee69f20$@codeaurora.org> <20210623151746.GA4247@lst.de> <20210707141054.GA24828@lst.de> From: Nathan Chancellor Message-ID: <1ee8fc44-3e8c-91c0-7909-a636757dbda4@kernel.org> Date: Wed, 7 Jul 2021 10:42:27 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210707141054.GA24828@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On 7/7/2021 7:10 AM, Christoph Hellwig wrote: > On Wed, Jun 23, 2021 at 09:06:41PM -0700, Nathan Chancellor wrote: >> 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.. Sorry, I directed that at Arnd. I should have kept you in the loop too. >> 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 Hmmm, is that with libtinfo5 installed (or whatever the ncurses-compat equivalent is on your distribution installed)? I had that problem on Debian until I insta Brian/Sid, it might be worth flipping LLVM_ENABLE_TERMINFO to OFF during your cmake configuration so that there are less dynamic dependencies and it is easier for more people to run the toolchain. Android's clang team did the same thing: https://github.com/android/ndk/issues/574 With https://reviews.llvm.org/D42055, there should not be too much of a sacrifice. Cheers, Nathan