Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3896051ybi; Mon, 3 Jun 2019 02:04:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr7v1bKLtozcZz1RP7AXetW5Tt6q3WeBJBMaChbiHUdInHP2lx0WyQhHDF134daqP8TaRF X-Received: by 2002:a63:f70b:: with SMTP id x11mr2179360pgh.212.1559552665969; Mon, 03 Jun 2019 02:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559552665; cv=none; d=google.com; s=arc-20160816; b=qfZdIYAgK1LWuZiIAUx9z5vxxMkRmWc3aR+6mSqzYDRNxOoa+1RQpd1q9L4x59P+mX SmtW/Y7J50MkctQqaJNVtSSW3XbgDDITCqDQqaQpnGZFmHh465F52ct05uozSDUgplEN q8pQ/h8Z7oNYK41nKSHqdHRiqJio6v32vJYXT5tLNBCZITf/eH82AC2PhKCNpGgL+rlo RsjpdZH3Nl1vcumXFeR7U2zUL/ak45gp2z1+o1JMzWD3493sNP9v+k1GuLK4nP3EcD6m ydpqn4W05iqVfYvsgyhWP8CuV5R4bwiW+gZ8bb98lklojvkA0WYbBxy/jY+tYFrR5wTf Xf+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=eEI7m3wkZyuLRC5t4Dr95mXISCNX++0zsNC/lTShoE4=; b=vNXknfjh09GcXAWJGj6TCCoBUlI7F4GvtuTrrKqoKSofkkG6Dby/GxvPPnu4nYC4rP sxVjdZOqC3y/oazw1zTtEl/cHC5DXyxH1RAAh/WU2d39gpFFWGmqg1h2upCkXJXaOwbd bwhN4dOB2kSfiq6olaKP/VCWOO7dx6ULFhjhOojBQFc011NAVEl2qpsByYhd/RAXxE5S qIzYEQSJOwgzFDZfluKGnA+it2cf4QCEsqXaUk0rWt/SLxYKRKhjbkXDtWF4qpuMAA8f YETqf+Ktfw1rFK2LAA4gLdYCXSB+zQxKTqS3r5+wT2jw2cmK9UiTU0hq1wc8OrJzcFl9 Otgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1pHEck2f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si17699819pfk.195.2019.06.03.02.04.09; Mon, 03 Jun 2019 02:04:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1pHEck2f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbfFCJCB (ORCPT + 99 others); Mon, 3 Jun 2019 05:02:01 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:32722 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfFCJCA (ORCPT ); Mon, 3 Jun 2019 05:02:00 -0400 Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com [209.85.217.49]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x5391jPm029705 for ; Mon, 3 Jun 2019 18:01:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x5391jPm029705 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1559552506; bh=eEI7m3wkZyuLRC5t4Dr95mXISCNX++0zsNC/lTShoE4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1pHEck2f7Y+LBk01WGT5fV+b3uCw5Avq+YOte/65/u1tg+kQ5LAe4240pktOPQUU/ /2UOObCVWgbGJnYC8wL0L5tjwKhlamV2WR0WWq0/czrACWj83rCljylcP+F1m//Gcc QMApTGozC+ZX5oNbg7JpXl1+3iguK0I4X/3OhhOcjdKu1xyJwpmkORFKEBgzduSXzB wFBS2VGeP7tRvEdqA6eBs/ncCCe8ShZMc7zodDbi+HWicyBe21rKEQ87RwZfd7AQB9 YzGNYPDL2QUIu3XioQ5VCVZ0XCfb7jyJbE1K2s5K7uIqI8eu3Wrk1H7rGHFRNiQEFl QLp9mPooUXQow== X-Nifty-SrcIP: [209.85.217.49] Received: by mail-vs1-f49.google.com with SMTP id d128so10733530vsc.10 for ; Mon, 03 Jun 2019 02:01:45 -0700 (PDT) X-Gm-Message-State: APjAAAXH0AvHlFqIQf6prMmLhEi8+yYNrB65lEX+suMcxyMSVIcxtMH5 nMO4KtasoqS1G9Czo25H0E90ixIWb07S1za5JnE= X-Received: by 2002:a67:de99:: with SMTP id r25mr12068520vsk.215.1559552504781; Mon, 03 Jun 2019 02:01:44 -0700 (PDT) MIME-Version: 1.0 References: <20190603063119.36544-1-abrodkin@synopsys.com> In-Reply-To: From: Masahiro Yamada Date: Mon, 3 Jun 2019 18:01:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix To: Alexey Brodkin Cc: arcml , Linux Kernel Mailing List , Vineet Gupta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexey, On Mon, Jun 3, 2019 at 5:34 PM Alexey Brodkin wrote: > > Hi Masahiro-san, > > > -----Original Message----- > > From: Masahiro Yamada > > Sent: Monday, June 3, 2019 11:18 AM > > To: Alexey Brodkin > > Cc: arcml ; Linux Kernel Mailing List > kernel@vger.kernel.org>; Vineet Gupta > > Subject: Re: [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix > > > > Hi Alexey, > > > > On Mon, Jun 3, 2019 at 3:42 PM Alexey Brodkin > > wrote: > > [snip] > > > > A side note: even though "cc-cross-prefix" does its job it pollutes > > > console with output of "which" for all the prefixes it didn't manage to find > > > a matching cross-compiler for like that: > > > | # ARCH=arc make defconfig > > > | which: no arceb-linux-gcc in (~/.local/bin:~/bin:/usr/bin:/usr/sbin) > > > | *** Default configuration is based on 'nsim_hs_defconfig' > > > > > > Oh really? > > > > masahiro@pug:~$ which arc-linux-gcc > > /home/masahiro/tools/arc/bin/arc-linux-gcc > > masahiro@pug:~$ which dummy-linux-gcc > > masahiro@pug:~$ echo $? > > 1 > > > > > > When 'which' cannot find the given command, > > it does not print anything to stderr. > > > > Does it work differently on your machine? > > Well on Ubuntu 18.04 indeed which doesn't show anything > but on my build-server with CentOS 7 I'm getting mentioned verbose output: > | # cat /etc/redhat-release > | CentOS Linux release 7.3.1611 (Core) > > | # /usr/bin/which -v > | GNU which v2.20, Copyright (C) 1999 - 2008 Carlo Wood. > | GNU which comes with ABSOLUTELY NO WARRANTY; > | This program is free software; your freedom to use, change > | and distribute this program is protected by the GPL. OK, confirmed. Probably using 'which' is a bad idea since this is not portable. I will send a fix-up patch soon. -- Best Regards Masahiro Yamada