Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp689585pxv; Thu, 8 Jul 2021 11:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPNPut9aS9YA/K2rhgPqH/fGoxnPoxZjnuWFIkarbJZb5q+f+spN57kX5tj0aJyA5CGlL9 X-Received: by 2002:a05:6402:35cf:: with SMTP id z15mr40531414edc.208.1625769605418; Thu, 08 Jul 2021 11:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625769605; cv=none; d=google.com; s=arc-20160816; b=TvCPb/New+NEInjHCuEsmEum8rrimNxEGOQ/QGGKNbooCLks+Ty+7vpTYn/mEoG2uv 20l6VHGeeTjSKTuHP9B8Lv4lzb34BIvDssfN/hkSFyffhkjoh4bCavYwkF6FEd1VkJmW HGJSebDGzpibh83wAlm4GpdDz68jipgKHGp6G6V59JJepcKqhu8GTqHCctp4RWiZpgeE h2Hw+nLofIvn9iI5dRnO+UoQon+c58bAgO3YU7xzK/r5aaXdJQcIIkinODIAKXSaynSy +j83K3vcmfHYHuF6UUn0j2bHzpwDgiV8uQshgYSeKRzSj7780lqxcG+ZRl6XxrbUlEtC ByNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:reply-to:dmarc-filter:sender :dkim-signature; bh=CaCFZHGTqeI0frAdNEP44m6CAB9Mlr4tcLRQxgjQMC0=; b=Crje8S0KGnPwD/eHDGTbAaqU/11vnD595bVDvUCJAHmyN3eRLx1WmOJMvEohXZEUdO Ehh4Stp6XAcmof+6/AGCKtX+TYiz2h6pLvD+MbPaxu8LzcKnY07jkIuxhJXJDOwdyLtU B/A2pM1Vd/qKotU39op+lX+HXj7f/6xaLpJThFAOKMBDLRdXLW4Vt9koKJnPGJu9kqJP 2pd9Vu5hUQSewh7kbfXbQn0Sr80fi/wUQwWCyyo7STYC/TFi/blIDP4dnNoVvXHkMmnT 7UR7ykf5cBLu4P33ERjeJJM5X6UcwkA5kKcbVos/Mq2RIpRd3TMLxPMLauYswXsai2w2 NIRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=m3HUMQj1; 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 hw7si3614196ejc.145.2021.07.08.11.39.41; Thu, 08 Jul 2021 11:40: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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=m3HUMQj1; 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 S229866AbhGHSjM (ORCPT + 99 others); Thu, 8 Jul 2021 14:39:12 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:56156 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbhGHSjJ (ORCPT ); Thu, 8 Jul 2021 14:39:09 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1625769387; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Reply-To: Sender; bh=CaCFZHGTqeI0frAdNEP44m6CAB9Mlr4tcLRQxgjQMC0=; b=m3HUMQj1xxyma1swyAt7aiu0O286JGjG/LeOix7WDS+s1HT4CIa9MRS+MraGANZMa7z5iEjT Ns7amQFFVqwoT2JECxHLPUBuD1F35uAvNZm//PKkJHa3Uo9HUGqQaq0EmTVGyTd1c2fx6zmu lkjs4055zPfVLS3uSd4TfMwKqJ8= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 60e74589ec0b18a7451dfa54 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 08 Jul 2021 18:35:53 GMT Sender: bcain=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B9806C43143; Thu, 8 Jul 2021 18:35:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from BCAIN (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bcain) by smtp.codeaurora.org (Postfix) with ESMTPSA id 44C17C433F1; Thu, 8 Jul 2021 18:35:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 44C17C433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=bcain@codeaurora.org Reply-To: From: "Brian Cain" To: "'Nick Desaulniers'" , "'Christoph Hellwig'" Cc: "'Manning, Sid'" , "'Nathan Chancellor'" , "'Sid Manning'" , "'Arnd Bergmann'" , , , References: <20210623141854.GA32155@lst.de> <08df01d7683d$8f5b7b70$ae127250$@codeaurora.org> <08e101d76842$94f78a60$bee69f20$@codeaurora.org> <20210623151746.GA4247@lst.de> <20210707141054.GA24828@lst.de> <1ee8fc44-3e8c-91c0-7909-a636757dbda4@kernel.org> <20210708052751.GA18789@lst.de> In-Reply-To: Subject: RE: how can we test the hexagon port in mainline Date: Thu, 8 Jul 2021 13:35:49 -0500 Message-ID: <0a6801d77428$13c88060$3b598120$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJHxj6Ga6VuoE3mNrk9EKW2w3HC7gG6K8dnAg2GTicC7yoGzAOeQQE6AcpiXAwBQV0IVQJh9CDkAd1aUgECtDKCjQHeCRXAqactp4A= Content-Language: en-us Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Nick Desaulniers > Sent: Thursday, July 8, 2021 12:54 PM > To: Christoph Hellwig > Cc: Nathan Chancellor ; Brian Cain > ; Sid Manning ; Arnd > Bergmann ; linux-hexagon@vger.kernel.org; linux- > kernel@vger.kernel.org; clang-built-linux@googlegroups.com > Subject: Re: how can we test the hexagon port in mainline >=20 > On Wed, Jul 7, 2021 at 10:27 PM Christoph Hellwig wrote: > > > > On Wed, Jul 07, 2021 at 10:42:27AM -0700, Nathan Chancellor wrote: > > >> hch@brick:~/work/linux$ make -j4 ARCH=3Dhexagon > > >> CROSS_COMPILE=3Dhexagon-unknown-linux-musl LLVM=3D1 LLVM_IAS=3D1 > 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 > > > > I did install libtinfo5, which just gets me to the next error: > > > > hch@brick:~/work/linux$ export PATH=3D/opt/clang+llvm-12.0.0-cross- > hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/:$PATH > > hch@brick:~/work/linux$ make -j4 ARCH=3Dhexagon > CROSS_COMPILE=3Dhexagon-unknown-linux-musl LLVM=3D1 LLVM_IAS=3D1 = defconfig > all > > HOSTCC scripts/basic/fixdep > > clang: error while loading shared libraries: libc++.so.1: cannot = open shared > object file: No such file or directory >=20 > ^ Nathan did mention earlier in the thread that he "had to install > libtinfo5 and libc++1-7 on Debian Buster." Emphasis on the _and > libc++_ part. >=20 > I'm not sure if that binary distribution came with a libc++.so.1; if > so, that path needs to be specified via LD_LIBRARY_PATH so that the > runtime loader can find it. Perhaps rpath wasn't set when the clang > binary was built. The only libc++ builds in this distribution are the target hexagon ones. = I did not include a host x86_64 libc++.so library, but it does seem = like it would be more convenient if we did. Nathan suggested disabling the terminfo dependency, I will include that = change for the next release that we produce. Also, the upcoming = clang-13 release from releases.llvm.org should contain all the necessary = fixes (discussed recently) to build kernel code for hexagon. > We're looking into statically linked images of clang to prevent these > kinds of games. Statically linking against libc++/libc++abi at least seems like a good = idea. Let me know if we can help. -Brian