Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1164541

Re: [RFC PATCH v7 23/37] perf tools: Introduce llvm config options

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Alexei Starovoitov <ast@plumgrid.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v7 23/37] perf tools: Introduce llvm config options
Date Sat, 13 Jun 2015 06:50:02 +0200
Message-ID <pALyi-2fu-3@gated-at.bofh.it> (permalink)
References <pApR7-4oZ-3@gated-at.bofh.it> <pApR9-4oZ-23@gated-at.bofh.it> <pAJwu-83z-7@gated-at.bofh.it> <pALoB-23T-5@gated-at.bofh.it>
X-Original-To pi3orama <pi3orama@163.com>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=7uvj5pavU58w58BI9Ogje4kscKtMJhvQ9PSIyO44d8A=; b=UNmGetp2owZAEg1541vN7hDwvcq0QPHIsA+Qr4/a/Q0uHsD2xa5a5fBBnR8bvH7caK yZbQ2/8HIBqIpiusQQZ6Xxd8BPe82h0zJ5XYGU8EmVy9KLIFJYmsVcl3OAOVa2i0aBTy kaw68PYW4Wc4enhHtED5Qi13z3R5eiJsJerEtRbTutTS5bVLeMx3D3QnnvkQiI6G2zrH Srq3WVpaiDVYrLtrk63BFdiP1l0JobPxfYGV3usrGuf9I2eg9QXtXBtzGH2uO2z5ice+ GawF3oXJi6Rwu+vxAy2kQWGAt2eSHLQetkv2XyTeCWu3SqUhC/XXq3Bs2IgG7LcQp6gV fUyA==
X-Gm-Message-State ALoCoQlDsO9Lt5CBCZHn/tTtLNFmmEeUIwqohvOR9c00vIoopT314RGlMiGh6bOV1PRA9cLtL/ab
X-Received by 10.66.139.167 with SMTP id qz7mr16583007pab.135.1434170619290; Fri, 12 Jun 2015 21:43:39 -0700 (PDT)
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
Content-Type text/plain; charset=gbk; format=flowed
Content-Transfer-Encoding 8bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
X-Original-Cc Wang Nan <wangnan0@huawei.com>, "acme@kernel.org" <acme@kernel.org>, "brendan.d.gregg@gmail.com" <brendan.d.gregg@gmail.com>, "daniel@iogearbox.net" <daniel@iogearbox.net>, "namhyung@kernel.org" <namhyung@kernel.org>, "masami.hiramatsu.pt@hitachi.com" <masami.hiramatsu.pt@hitachi.com>, "paulus@samba.org" <paulus@samba.org>, "a.p.zijlstra@chello.nl" <a.p.zijlstra@chello.nl>, "mingo@redhat.com" <mingo@redhat.com>, "jolsa@kernel.org" <jolsa@kernel.org>, "dsahern@gmail.com" <dsahern@gmail.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "lizefan@huawei.com" <lizefan@huawei.com>, "hekuang@huawei.com" <hekuang@huawei.com>, "xiakaixu@huawei.com" <xiakaixu@huawei.com>
X-Original-Date Fri, 12 Jun 2015 21:43:37 -0700
X-Original-Message-ID <557BB4F9.6020008@plumgrid.com>
X-Original-References <1434087345-127225-1-git-send-email-wangnan0@huawei.com> <1434087345-127225-24-git-send-email-wangnan0@huawei.com> <557B960B.60504@plumgrid.com> <C31FA58A-5D08-4966-8921-F6A9ED05FAA8@163.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1164541

Show key headers only | View raw


On 6/12/15 9:11 PM, pi3orama wrote:
>
>
> 发自我的 iPhone
>
>> 在 2015年6月13日,上午10:31,Alexei Starovoitov <ast@plumgrid.com> 写道:
>>
>>> On 6/11/15 10:35 PM, Wang Nan wrote:
>>>          # Path to clang. If omit, search it from $PATH.
>>>     clang-path = "/path/to/clang"
>>
>> I think this bit and search_program() from the next patch is
>> overly flexible. It's always delicate to search file paths.
>
> About this clang-path: in my environment the name of clang is x86_64-oe-linux-clang, and installed in /usr/bin/llvm-3.7, neither in $PATH nor has its default name. This is the default setting of yocto and open-embedded based systems. Please see do_install part in building script of it:
>
> https://github.com/openembedded/meta-oe/blob/master/meta-oe/recipes-core/llvm/llvm.inc

well, that setup installs host backend only due to:
--enable-targets=host-only
in the above script,
whereas typical clang install on ubuntu/fedora includes all backends.
So in your case you'd need to install another clang.
I agree that the name can be different than just 'clang',
so yeah 'clang-path' is needed for this reason.
So I'm ok keeping patches 23 and 24 as-is.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH v7 23/37] perf tools: Introduce llvm config options pi3orama <pi3orama@163.com> - 2015-06-13 06:40 +0200
  Re: [RFC PATCH v7 23/37] perf tools: Introduce llvm config options Alexei Starovoitov <ast@plumgrid.com> - 2015-06-13 06:50 +0200

csiph-web