Android O ccache record full path in .ccache folder

87 views
Skip to first unread message

jimmy...@fih-foxconn.com

unread,
Oct 9, 2017, 10:24:13 AM10/9/17
to Android Building
Hi, I saw .ccache record full build source code path, it will not re-use in different directory, even same source code.
Android N doesn't have this issue?
Does Android O need set other flag?

I posted a part of content for reference.

out/target/product/NB1/obj/EXECUTABLES/toybox_intermediates/toys/posix/chgrp.o: \   --> Android N
  external/toybox/toys/posix/chgrp.c external/toybox/toys.h \  --> Android N
  external/toybox/generated/config.h external/toybox/lib/portability.h \  --> Android N
  bionic/libc/include/features.h bionic/libc/include/sys/cdefs.h \  --> Android N
  bionic/libc/include/android/api-level.h \  --> Android N
  bionic/libc/include/android/versioning.h \  --> Android N
  bionic/libc/include/sys/types.h \  --> Android N
  /home/cm/android_o/LINUX/android/prebuilts/clang/host/linux-x86/clang-3859424/bin/../lib64/clang/4.0.285906/include/stddef.h \   --> Android O
  bionic/libc/include/stdint.h bionic/libc/include/bits/wchar_limits.h \  --> Android N
  bionic/libc/kernel/uapi/linux/types.h \  --> Android N
  bionic/libc/kernel/uapi/asm-arm64/asm/types.h \  --> Android N
  bionic/libc/kernel/uapi/asm-generic/types.h \  --> Android N
  bionic/libc/kernel/uapi/asm-generic/int-ll64.h \  --> Android N

Thanks

Gokulnath A

unread,
Jul 23, 2018, 9:48:04 AM7/23/18
to Android Building
Hello, 

Have you tried upgrading the ccache version , or tried using the ccache from your Host machine.
I upgraded to the latest version(CCACHE 3.4.2+38_g13377bb) of ccache binary (compiled on my own)

with the following setting in ccache i could able to over the issue you have mentioned, 

/prebuilts/misc/linux-x86/ccache/ccache --set-config=hash_dir=false"

Regards
Gokulnath A
Reply all
Reply to author
Forward
0 new messages