Skip to contentSkip to conversation

xen: force usage of gcc

PATCH In review Jon Mason 2 participants 4 messages Jan 23, 2023

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 xen: force usage of gcc

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

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

---
 recipes-extended/xen/xen.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-extended/xen/xen.inc +2 -0
index 5937763a7ddf..dcd281b5a21b 100644
@@ -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
Signature · 1 line
2.30.2
#1 lore raw
Quoted 7 lines · Jon Mason

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

Quoted 25 lines

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

---
 recipes-extended/xen/xen.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-extended/xen/xen.inc +2 -1
index 5937763a7ddf..dcd281b5a21b 100644
@@ -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

author
#2 lore raw

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

Quoted 41 lines · Khem Raj
Quoted 6 lines · Jon Mason

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

Quoted 25 lines

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

---
 recipes-extended/xen/xen.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-extended/xen/xen.inc +2 -1
index 5937763a7ddf..dcd281b5a21b 100644
@@ -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

#3 lore raw

configure: line 2898: arm-poky-linux-gnueabi-gcc: command not found

So it seems this components build system does not respect CC and other bitbake environment variable

Quoted 48 lines · Jon Mason

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

Quoted 6 lines · Khem Raj
Quoted 2 lines · Jon Mason

xen-tools and xen (and possibly others) fail to compile with clang,

with the following error:

Quoted 1 line
Quoted 1 line

configure: error: in

`/builder/meta-arm/build/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/xen-tools/4.17+stableAUTOINC+11560248ff-r0/git/tools':

Quoted 34 lines
Quoted 3 lines

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

Quoted 25 lines

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

---
 recipes-extended/xen/xen.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-extended/xen/xen.inc +2 -1
index 5937763a7ddf..dcd281b5a21b 100644
@@ -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