Bug#1105474: llvm-toolchain-18: FTBFS with make --shuffle=reverse: /bin/sh: 4: --stats-format: not found
Lucas Nussbaum
lucas at debian.org
Tue May 13 20:07:18 BST 2025
Source: llvm-toolchain-18
Version: 1:18.1.8-18
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[1]: Entering directory '/build/reproducible-path/llvm-toolchain-18-18.1.8'
> debian/rules:1083: update target 'stamps/sccache-stats' due to: target does not exist
> if test -f ; then \
> ls -al /; \
> mkdir -p /tmp/buildd/source/; \
> --stats-format json --show-stats > /tmp/buildd/source/sccache-stats.json; \
> cat /tmp/buildd/source/sccache-stats.json; \
> fi
> total 64
> drwxr-xr-x 18 root root 4096 May 1 12:40 .
> drwxr-xr-x 18 root root 4096 May 1 12:40 ..
> lrwxrwxrwx 1 root root 7 Mar 4 11:20 bin -> usr/bin
> drwxr-xr-x 2 root root 4096 Mar 4 11:20 boot
> drwxr-xr-x 3 root root 4096 May 1 12:31 build
> drwxr-xr-x 4 root root 4096 May 1 12:41 dev
> drwxr-xr-x 42 root root 4096 May 1 12:41 etc
> drwxr-xr-x 2 root root 4096 Mar 4 11:20 home
> lrwxrwxrwx 1 root root 7 Mar 4 11:20 lib -> usr/lib
> lrwxrwxrwx 1 root root 9 May 1 12:40 lib32 -> usr/lib32
> lrwxrwxrwx 1 root root 9 Mar 4 11:20 lib64 -> usr/lib64
> lrwxrwxrwx 1 root root 10 May 1 12:40 libx32 -> usr/libx32
> drwxr-xr-x 2 root root 4096 May 1 12:31 media
> drwxr-xr-x 2 root root 4096 May 1 12:31 mnt
> drwxr-xr-x 2 root root 4096 May 1 12:31 opt
> dr-xr-xr-x 231 nobody nogroup 0 May 1 12:41 proc
> drwx------ 2 root root 4096 May 1 12:31 root
> drwxr-xr-x 4 root root 4096 May 1 12:31 run
> lrwxrwxrwx 1 root root 8 Mar 4 11:20 sbin -> usr/sbin
> drwxr-xr-x 2 root root 4096 May 1 12:31 srv
> dr-xr-xr-x 13 nobody nogroup 0 May 1 12:30 sys
> drwxrwxrwt 15 nobody nogroup 4096 May 1 12:43 tmp
> drwxr-xr-x 14 root root 4096 May 1 12:40 usr
> drwxr-xr-x 11 root root 4096 May 1 12:31 var
> /bin/sh: 4: --stats-format: not found
> touch stamps/sccache-stats
> debian/rules:959: update target 'build-wasm/compiler-rt-wasm64' due to: target does not exist
> echo "Building compiler-rt for wasm64"
> Building compiler-rt for wasm64
> echo "Using cmake: cmake"
> Using cmake: cmake
> mkdir -p "build-wasm/compiler-rt-wasm64"
> cmake -B "build-wasm/compiler-rt-wasm64" -S compiler-rt/lib/builtins/ \
> -G Ninja \
> \
> -DCMAKE_SYSTEM_NAME=Generic \
> -DCMAKE_C_COMPILER_TARGET=wasm64-unknown-unknown \
> -DCMAKE_CXX_COMPILER_TARGET=wasm64-unknown-unknown \
> -DCMAKE_ASM_COMPILER_TARGET=wasm64-unknown-unknown \
> -DCMAKE_C_COMPILER=/build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/bin/clang \
> -DCMAKE_CXX_COMPILER=/build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/bin/clang++ \
> -DCMAKE_C_FLAGS="-O2 -DNDEBUG -g1 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
> -DCMAKE_CXX_FLAGS="-O2 -DNDEBUG -g1 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
> -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id,--as-needed -L/build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/lib" \
> -DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id,--as-needed -L/build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/lib" \
> -DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id,--as-needed -L/build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/lib" \
> -DCMAKE_INSTALL_PREFIX=/usr/lib/llvm-18/lib/clang/18 \
> -DCMAKE_INSTALL_DATADIR=lib \
> -DCMAKE_INSTALL_INCLUDEDIR=include \
> -DLLVM_CMAKE_DIR=/build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/bin/../ \
> -DCOMPILER_RT_STANDALONE_BUILD=ON \
> -DCOMPILER_RT_BAREMETAL_BUILD=ON \
> -DCOMPILER_RT_INCLUDE_TESTS=OFF \
> -DCOMPILER_RT_USE_LIBCXX=OFF \
> -DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON \
> -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=wasm64-unknown-unknown \
> -DCOMPILER_RT_OS_DIR=wasi
> -- The C compiler identification is unknown
> -- The ASM compiler identification is unknown
> -- Didn't find assembler
> CMake Error at CMakeLists.txt:9 (project):
> The CMAKE_C_COMPILER:
>
> /build/reproducible-path/llvm-toolchain-18-18.1.8/build-llvm/tools/clang/stage2-bins/bin/clang
>
> is not a full path to an existing compiler tool.
>
> Tell CMake where to find the compiler by setting either the environment
> variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
> the compiler, or to the compiler name if it is in the PATH.
>
>
> CMake Error at CMakeLists.txt:9 (project):
> No CMAKE_ASM_COMPILER could be found.
>
> Tell CMake where to find the compiler by setting either the environment
> variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
> to the compiler, or to the compiler name if it is in the PATH.
>
>
> -- Warning: Did not find file Compiler/-ASM
> -- Configuring incomplete, errors occurred!
> make[1]: *** [debian/rules:962: build-wasm/compiler-rt-wasm64] Error 1 shuffle=reverse
The full build log is available from:
http://qa-logs.debian.net/2025/05/05/shuffle/reverse/llvm-toolchain-18_18.1.8-18_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 Pkg-llvm-team
mailing list