Hi Masahiro-san, > -----Original Message----- > From: Masahiro Yamada <[email protected]> > Sent: Monday, June 3, 2019 11:18 AM > To: Alexey Brodkin <[email protected]> > Cc: arcml <[email protected]>; Linux Kernel Mailing List > <linux- > [email protected]>; Vineet Gupta <[email protected]> > 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 > <[email protected]> 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. -Alexey

