All of lore.kernel.org
 help / color / mirror / Atom feed
* buildman failed on v2022.07-rc2 with toolchain-wrapper option
@ 2022-05-18 15:45 Patrick DELAUNAY
  0 siblings, 0 replies; only message in thread
From: Patrick DELAUNAY @ 2022-05-18 15:45 UTC (permalink / raw)
  To: Simon Glass, U-Boot Mailing List

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








^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-18 15:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 15:45 buildman failed on v2022.07-rc2 with toolchain-wrapper option Patrick DELAUNAY

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.