]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: Set stderr for host_gcc_version()
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 13 Dec 2018 03:19:28 +0000 (11:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Dec 2018 17:09:12 +0000 (17:09 +0000)
commit91955caae584b4f75118e04411851b1a3d783fec
treeadc1e791d6de2568af2a8a2c40bee3749f6d2be5
parent8690332183f10a5e5689da7ec030567dfd1ac091
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py