Skip to contentSkip to conversation

buildman failed on v2022.07-rc2 with toolchain-wrapper option

DISCUSSION Patrick DELAUNAY 1 participant 1 message May 18, 2022

lore
Share & tools
lore
#0 lore raw

Hi Simon,

It seems the buildman option toolchain-wrapper is no more working since v2022.07-rc2

=> with the lines in ${HOME]/.buildman :

    [toolchain-wrapper]
    wrapper: ccache

I have compilation error for some ARM target with EFI support, for example for stm32mp15_defconfig.

Tests in include/efi_default_filename.h are introduced with commit 4e65ca00f3a3 ("efi_loader: bootmgr: add booting from removable media")

for examples:

    #if HOST_ARCH == HOST_ARCH_X86

but ${HOST_ARCH} is empty.

The issue occurs because when CROSSCOMPILER="ccache arm-linux-gnueabi-"

in Makefile, MK_ARCH have invalid value and thus HOST_ARCH is empty...

The issue can be avoid with the dirty patch:

----------------------------------- Makefile -----------------------------------
index d394340221..3999bbcd71 100644
@@ -21,7 +21,7 @@ include include/host_arch.h
 ifeq ("", "$(CROSS_COMPILE)")
   MK_ARCH="${shell uname -m}"
 else
-  MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\2/p'}" +  MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/ccache//;s/^[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\2/p'}" endif

But I solve only the issue only for "ccache" wrapper !

Do you think we need to remove this option in "toolchain-wrapper" buildman ?

Patrick