From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 398E1C07E95 for ; Wed, 7 Jul 2021 17:42:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1032C61CC9 for ; Wed, 7 Jul 2021 17:42:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231222AbhGGRpP (ORCPT ); Wed, 7 Jul 2021 13:45:15 -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