Skip to content

GCC images appear to be used for clang builds

Over the past couple of days, I have noticed certain builds failing due to clang not being found:

https://storage.tuxsuite.com/public/clangbuiltlinux/continuous-integration2/builds/2igJxEwBCegqTECGAOWR6FAl6Vr/build.log

https://storage.tuxsuite.com/public/clangbuiltlinux/continuous-integration2/builds/2igK3LVk54MC1q88cGmoyaDascl/build.log

tuxmake --target-arch=arm64 --kconfig=gki_defconfig --kconfig-add=CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n --toolchain=clang-nightly --wrapper=none --environment=KBUILD_BUILD_TIMESTAMP=@1719906878 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/home/tuxbuild/.cache/tuxmake/builds/2/build/= --runtime=podman --image=855116176053.dkr.ecr.us-east-1.amazonaws.com/tuxmake/arm64_gcc-13@sha256:0828650a53ac5e10b3ba497148f1b34511ec06995997f9175977823bce69cf26 LLVM=1 LLVM_IAS=1 config default kernel
# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n -> /home/tuxbuild/.cache/tuxmake/builds/2/build/0.config
make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=1 CROSS_COMPILE_COMPAT=arm-linux-gnueabihf- gki_defconfig
/bin/sh: 1: clang: not found
make[2]: *** [/builds/linux/scripts/Makefile.host:95: scripts/basic/fixdep] Error 127
make[2]: Target '__build' not remade because of errors.
make[1]: *** [/builds/linux/Makefile:583: scripts_basic] Error 2
make[1]: Target 'gki_defconfig' not remade because of errors.
make: *** [Makefile:244: __sub-make] Error 2
make: Target 'gki_defconfig' not remade because of errors.
tuxmake --target-arch=x86_64 --kconfig=gki_defconfig --kconfig-add=CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n --toolchain=korg-clang-18 --wrapper=sccache --environment=KBUILD_BUILD_TIMESTAMP=@1719906903 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/home/tuxbuild/.cache/tuxmake/builds/2/build/= --environment=SCCACHE_BUCKET=sccache.tuxbuild.com --runtime=podman --image=855116176053.dkr.ecr.us-east-1.amazonaws.com/tuxmake/arm64_gcc-13@sha256:0828650a53ac5e10b3ba497148f1b34511ec06995997f9175977823bce69cf26 LLVM=1 LLVM_IAS=1 config default kernel
# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n -> /home/tuxbuild/.cache/tuxmake/builds/2/build/0.config
make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/2/build ARCH=x86_64 SRCARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache clang' LLVM=1 LLVM_IAS=1 gki_defconfig
error: failed to execute compile
caused by: Cannot find binary path
make[2]: *** [/builds/linux/scripts/Makefile.host:95: scripts/basic/fixdep] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [/builds/linux/Makefile:583: scripts_basic] Error 2
make[1]: Target 'gki_defconfig' not remade because of errors.
make: *** [Makefile:244: __sub-make] Error 2
make: Target 'gki_defconfig' not remade because of errors.

Looking at the reproducer, it requests clang-nightly or korg-clang-18 via --toolchain but the compiler image for both appears to be gcc-13. Did something go wrong with the mirrored image selection?