Package: ccache Version: 3.7.5-1 Severity: important Have a look here, that is where I reported the problem first: https://github.com/sonyxperiadev/bug_tracker/issues/492
I can provide you files or infos from the failing build if you need those, the problem is reproducible. The error message from the build is: [ 66% 72657/109596] //bionic/libc:libc link libc.so [arm] FAILED: out/soong/.intermediates/bionic/libc/libc/android_arm_armv8-a_cortex-a73_core_shared_com.android.runtime.debug/unstripped/libc.so prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++ @out/soong/.intermediates/bionic/libc/libc/android_arm_armv8-a_cortex-a73_core_shared_com.android.runtime.debug/unstripped/libc.so.rsp -Wl,--whole-archive out/soong/.intermediates/external/jemalloc_new/libjemalloc5/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libjemalloc5.a out/soong/.intermediates/bionic/libc/libc_init_dynamic/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libc_init_dynamic.a out/soong/.intermediates/bionic/libc/libc_common_shared/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libc_common_shared.a -Wl,--no-whole-archive out/soong/.intermediates/bionic/libdl/libdl_android/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libdl_android.a prebuilts/clang/host/linux-x86/clang-r353983c/lib64/clang/9.0.3/lib/linux/libclang_rt.builtins- arm-android.a prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux- androideabi/lib/libatomic.a out/soong/.intermediates/build/soong/libgcc_stripped/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libgcc_stripped.a out/soong/.intermediates/bionic/linker/ld- android/android_arm_armv8-a_cortex-a73_core_shared_com.android.runtime.debug/ld- android.so out/soong/.intermediates/bionic/libdl/libdl/android_arm_armv8-a_cortex-a73_core_shared_com.android.runtime.debug/libdl.so -o out/soong/.intermediates/bionic/libc/libc/android_arm_armv8-a_cortex-a73_core_shared_com.android.runtime.debug/unstripped/libc.so -nostdlib -Wl,--gc-sections -shared -Wl,-soname,libc.so -target armv7a-linux- androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux- androideabi/bin -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl, --exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -fuse-ld=lld -Wl, --pack-dyn-relocs=none -Wl,--no-undefined -Wl,--icf=safe -Wl,--hash-style=gnu -Wl,-m,armelf -Wl,-z,muldefs -Wl,--hash-style=both -Wl,--version- script,out/soong/.intermediates/bionic/libc/libc.arm.map/gen/libc.arm.map -Wl, --symbol-ordering-file,bionic/libc/symbol_ordering ld.lld: error: undefined symbol: strcpy_a9 >>> referenced by dynamic_function_dispatch.cpp:0 (bionic/libc/arch- arm/dynamic_function_dispatch.cpp:0) >>> dynamic_function_dispatch.o:(strcpy) in archive out/soong/.intermediates/bionic/libc/libc_common_shared/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libc_common_shared.a ld.lld: error: undefined symbol: stpcpy_a9 >>> referenced by dynamic_function_dispatch.cpp:0 (bionic/libc/arch- arm/dynamic_function_dispatch.cpp:0) >>> dynamic_function_dispatch.o:(stpcpy) in archive out/soong/.intermediates/bionic/libc/libc_common_shared/android_arm_armv8-a_cortex-a73_core_static_com.android.runtime.debug/libc_common_shared.a clang-9: error: linker command failed with exit code 1 (use -v to see invocation) 06:59:15 ninja failed with: exit status 1 To use ccache along with the android build it is required to do following exports: export USE_CCACHE=1 export CCACHE_EXEC=/usr/bin/ccache It used to work without problems using ccache 3.7.4-1, last successful build was 2019-10-28/2019-10-29 after that ccache 3.7.5-1 was migrated to testing and with that version the problem seems to have been introduced. -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.2.0-3-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ccache depends on: ii libc6 2.29-2 ii zlib1g 1:1.2.11.dfsg-1+b1 ccache recommends no packages. Versions of packages ccache suggests: pn distcc | icecc <none> -- no debconf information