]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/utils: Set stderr for host_gcc_version() rbt/stderr
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 13 Dec 2018 03:14:17 +0000 (11:14 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Thu, 13 Dec 2018 03:17:05 +0000 (11:17 +0800)
commit337e1401f58bfb235b34e6113834a51048853090
treec6b0192ec2c09b188bf8a461340584d4eba8edcd
parent8bc0d2f2197430723f8b2d0785169e48c883eedb
lib/oe/utils: Set stderr for host_gcc_version()

Fixed:
$ ln -s /usr/bin/ccache /folk/lyang1/bin/gcc
$ rm -fr tmp/hosttools/ && bitbake -p
[snip]
ERROR: Error running gcc  --version:

It didn't print the error message, now it is:
ERROR: Error running gcc  --version: ccache: error: Could not find compiler "gcc" in PATH

For the error itself, it is because ccache is not in my HOSTTOOLS, so this is
an expected error.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/lib/oe/utils.py