diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-01-24 14:57:32 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-26 13:39:37 +0000 |
commit | bb97a087e98697ee8dafa27ad5eb9b3d50f18387 (patch) | |
tree | 683c00cc24f8e1d93ec2972d0ac1ccc82a7f97fb /meta/recipes-devtools/ccache/ccache_3.6.bb | |
parent | f3b6a6e4ee41d466646866dfcd544b386cb499b9 (diff) | |
download | poky-bb97a087e98697ee8dafa27ad5eb9b3d50f18387.tar.gz |
ccache: Fix Segmentation fault error when gcc -o /dev/null
Fixed:
$ export CCACHE_DEBUG=1
$ ccache gcc -c hello.c -o /dev/null
Segmentation fault (core dumped)
This is because failed to open /dev/null.foo (Permission denied), check file
stream before write to it can fix the problem.
(From OE-Core rev: 78a24b3a1eae04e5f4744f320e4ccbb8bfe17b9a)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ccache/ccache_3.6.bb')
-rw-r--r-- | meta/recipes-devtools/ccache/ccache_3.6.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ccache/ccache_3.6.bb b/meta/recipes-devtools/ccache/ccache_3.6.bb index a12306e9a5..60807be0ae 100644 --- a/meta/recipes-devtools/ccache/ccache_3.6.bb +++ b/meta/recipes-devtools/ccache/ccache_3.6.bb | |||
@@ -8,4 +8,5 @@ SRC_URI[sha256sum] = "a3f2b91a2353b65a863c5901251efe48060ecdebec46b5eaec8ea8e092 | |||
8 | 8 | ||
9 | SRC_URI += " \ | 9 | SRC_URI += " \ |
10 | file://0002-dev.mk.in-fix-file-name-too-long.patch \ | 10 | file://0002-dev.mk.in-fix-file-name-too-long.patch \ |
11 | file://0003-Fix-Segmentation-fault-error-when-gcc-o-dev-null.patch \ | ||
11 | " | 12 | " |