[Android-tools-devel] Bug#1105254: android-platform-tools: FTBFS with make --shuffle=reverse: clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Lucas Nussbaum lucas at debian.org
Tue May 13 19:51:36 BST 2025


Source: android-platform-tools
Version: 34.0.5-12
Severity: minor
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-shuffle

Hi,

GNU Make now has a --shuffle option that simulates non-deterministic ordering
of target prerequisites. See
https://trofi.github.io/posts/238-new-make-shuffle-mode.html and also previous
work in Debian by Santiago Vila:
https://people.debian.org/~sanvila/make-shuffle/

This package fails to build with make --shuffle=reverse.
This is likely to be caused by a missing dependency in
debian/rules or an upstream Makefile.

More information about this mass bug filing is available at
https://wiki.debian.org/qa.debian.org/FTBFS/Shuffle

Relevant part (hopefully):
> make[2]: Entering directory '/build/reproducible-path/android-platform-tools-34.0.5'
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/file_descriptor_jni.o' due to: target does not exist
> clang -c -o libnativehelper/file_descriptor_jni.o libnativehelper/file_descriptor_jni.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/JniInvocation.o' due to: target does not exist
> clang -c -o libnativehelper/JniInvocation.o libnativehelper/JniInvocation.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/JniConstants.o' due to: target does not exist
> clang -c -o libnativehelper/JniConstants.o libnativehelper/JniConstants.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/JNIPlatformHelp.o' due to: target does not exist
> clang -c -o libnativehelper/JNIPlatformHelp.o libnativehelper/JNIPlatformHelp.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/JNIHelp.o' due to: target does not exist
> clang -c -o libnativehelper/JNIHelp.o libnativehelper/JNIHelp.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/ExpandableString.o' due to: target does not exist
> clang -c -o libnativehelper/ExpandableString.o libnativehelper/ExpandableString.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:37: update target 'libnativehelper/DlHelp.o' due to: target does not exist
> clang -c -o libnativehelper/DlHelp.o libnativehelper/DlHelp.c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/android-platform-tools-34.0.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu17 -gdwarf-4 -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -I/usr/include/android -Ilibnativehelper/header_only_include -Ilibnativehelper/include -Ilibnativehelper/include_jni -Isystem/libbase/include -Isystem/logging/liblog/include 
> debian/libnativehelper/libnativehelper.mk:33: update target 'build' due to: target does not exist
> clang++ libnativehelper/DlHelp.o libnativehelper/ExpandableString.o libnativehelper/JNIHelp.o libnativehelper/JNIPlatformHelp.o libnativehelper/JniConstants.o libnativehelper/JniInvocation.o libnativehelper/file_descriptor_jni.o -o debian/out/libnativehelper/libnativehelper.so.0 -Wl,-z,relro -Wl,-z,now -fPIC -fuse-ld=lld -Wl,--build-id=sha1 -Ldebian/out/system -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -Wl,-soname,libnativehelper.so.0 -ldl -llog -lpthread -shared
> ld.lld: error: unable to find library -llog
> clang++: error: linker command failed with exit code 1 (use -v to see invocation)


The full build log is available from:
http://qa-logs.debian.net/2025/05/05/shuffle/reverse/android-platform-tools_34.0.5-12_unstable_reverse.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects



More information about the Android-tools-devel mailing list