From: Alexey.Brodkin@synopsys.com (Alexey Brodkin)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix
Date: Mon, 3 Jun 2019 08:31:38 +0000 [thread overview]
Message-ID: <CY4PR1201MB012004A6281FFE93B8191F30A1140@CY4PR1201MB0120.namprd12.prod.outlook.com> (raw)
In-Reply-To: <CAK7LNASiHzar3JmzGB1fgUYUC91F3FPsALj3iMhANTjGgnux5w@mail.gmail.com>
Hi Masahiro-san,
> -----Original Message-----
> From: Masahiro Yamada <yamada.masahiro at socionext.com>
> Sent: Monday, June 3, 2019 11:18 AM
> To: Alexey Brodkin <abrodkin at synopsys.com>
> Cc: arcml <linux-snps-arc at lists.infradead.org>; Linux Kernel Mailing List <linux-
> kernel at vger.kernel.org>; Vineet Gupta <Vineet.Gupta1 at synopsys.com>
> 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
> <Alexey.Brodkin@synopsys.com> 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 at pug:~$ which arc-linux-gcc
> /home/masahiro/tools/arc/bin/arc-linux-gcc
> masahiro at pug:~$ which dummy-linux-gcc
> masahiro at 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.
-Alexey
next prev parent reply other threads:[~2019-06-03 8:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-03 6:31 [PATCH] ARC: build: Try to guess CROSS_COMPILE with cc-cross-prefix Alexey Brodkin
2019-06-03 8:18 ` Masahiro Yamada
2019-06-03 8:31 ` Alexey Brodkin [this message]
2019-06-03 9:01 ` Masahiro Yamada
2019-06-03 16:24 ` Vineet Gupta
2019-06-03 16:34 ` Alexey Brodkin
2019-06-12 11:17 ` Masahiro Yamada
2019-06-12 15:40 ` Vineet Gupta
2019-06-04 0:39 ` Masahiro Yamada
2019-06-03 16:40 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CY4PR1201MB012004A6281FFE93B8191F30A1140@CY4PR1201MB0120.namprd12.prod.outlook.com \
--to=alexey.brodkin@synopsys.com \
--cc=linux-snps-arc@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).