Re: [PATCH] xen: force usage of gcc


Jon Mason
 

I'm attaching the failing logs to this email. Let me know if it
doesn't go through.

On Mon, Jan 23, 2023 at 11:30 AM Khem Raj <raj.khem@...> wrote:



On Mon, Jan 23, 2023 at 7:44 AM Jon Mason <jdmason@...> wrote:

xen-tools and xen (and possibly others) fail to compile with clang, with the following error:
configure: error: in `/builder/meta-arm/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.17+stableAUTOINC+11560248ff-r0/git/tools':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: ./configure failed for tools


And what’s does config.log say ?
Can you post this file somewhere



Force all of xen to use gcc until this issue can be resolved.

Signed-off-by: Jon Mason <jdmason@...>
---
recipes-extended/xen/xen.inc | 2 ++
1 file changed, 2 insertions(+)

diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
index 5937763a7ddf..dcd281b5a21b 100644
--- a/recipes-extended/xen/xen.inc
+++ b/recipes-extended/xen/xen.inc
@@ -2,6 +2,8 @@ HOMEPAGE = "http://xen.org"
LICENSE = "GPL-2.0-only"
SECTION = "console/tools"

+TOOLCHAIN = "gcc"
+
inherit autotools-brokensep pkgconfig

require xen-arch.inc
--
2.30.2

Join meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.