Skip to contentSkip to conversation

packagegroup-core-buildessential: Add clang with clang toolchain

PATCH New Khem Raj 1 participant 1 message Nov 26

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 packagegroup-core-buildessential: Add clang with clang toolchain

When the target is built with the clang toolchain, python's sysconfig and perl's Config record ${TARGET_PREFIX}clang as the C compiler, so anything compiling on the target through them fails when only gcc is installed:

FileNotFoundError: [Errno 2] No such file or directory: 'x86_64-yoe-linux-clang'

The target clang package installs the ${TARGET_PREFIX}clang symlinks. Add it to packagegroup-core-buildessential

Cc Ross Burton <[email protected]>
Cc Paul Barker <[email protected]>

---
v2: Drop anon python from ptest.bbclass, it slows things down

 .../packagegroups/packagegroup-core-buildessential.bb            | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb +1 -0
index 2cd67ad05f..d33af54d26 100644
@@ -29,3 +29,4 @@ RDEPENDS:packagegroup-core-buildessential = "\
     pkgconfig \
     "
 
+RDEPENDS:packagegroup-core-buildessential:append:toolchain-clang = " clang"