fragments/autobuilder: add go to SDK_TOOLCHAIN_LANGS
PATCH v2 1/1 fragments/autobuilder: add go to SDK_TOOLCHAIN_LANGS
From: Alexander Kanavin <[email protected]>
For reasons unknown, only rust was listed, which means nativesdk-go was not built or tested, which lead to breakage like one fixed in
https://git.yoctoproject.org/poky/commit/?id=a669cd2e0c760da9d7e872daea9590fc9e86d766
Note that with this change only building and installing go into SDKsis tested, but no tests are performed with the toolchain itself in testsdk/testimage.
For that, a bug has been filed:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15953
Remove go from x32 targets as it will not build for them. (next to similar removals for rust)
--- meta/classes-recipe/populate_sdk_base.bbclass | 2 ++ meta/conf/fragments/yocto-autobuilder/autobuilder.conf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
meta/classes-recipe/populate_sdk_base.bbclass +2 -0
@@ -62,6 +62,8 @@ SDK_TOOLCHAIN_LANGS ??= "" SDK_TOOLCHAIN_LANGS:remove:sdkmingw32 = "rust" # libstd-rs doesn't build for mips n32 with compiler constraint errors SDK_TOOLCHAIN_LANGS:remove:mipsarchn32 = "rust" +# go will not build for x86-x32 +SDK_TOOLCHAIN_LANGS:remove:linux-gnux32 = "go" TOOLCHAIN_HOST_TASK ?= " \ nativesdk-packagegroup-sdk-host \
meta/conf/fragments/yocto-autobuilder/autobuilder.conf +1 -1
@@ -9,5 +9,5 @@ IMAGE_CLASSES += 'testimage' SDK_EXT_TYPE = 'minimal' SDK_INCLUDE_TOOLCHAIN = '1' ESDK_LOCALCONF_REMOVE:append = 'BB_HASHSERVE' -SDK_TOOLCHAIN_LANGS += 'rust' +SDK_TOOLCHAIN_LANGS += 'go rust'
Signature · 1 line
2.39.5
Quoted 44 lines · Alexander Kanavin via lists.openembedded.org
From: Alexander Kanavin <[email protected]>
For reasons unknown, only rust was listed, which means nativesdk-go was not built or tested, which lead to breakage like one fixed in
https://git.yoctoproject.org/poky/commit/?id=a669cd2e0c760da9d7e872daea9590fc9e86d766Note that with this change only building and installing go into SDKsis tested, but no tests are performed with the toolchain itself in testsdk/testimage.
For that, a bug has been filed:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15953Remove go from x32 targets as it will not build for them. (next to similar removals for rust)
Signed-off-by Alexander Kanavin <[email protected]>---
meta/classes-recipe/populate_sdk_base.bbclass | 2 ++meta/conf/fragments/yocto-autobuilder/autobuilder.conf| 2 +-2 files changed, 3 insertions(+), 1 deletion(-)meta/classes-recipe/populate_sdk_base.bbclass +0
-0@@ -62,6 +62,8 @@ SDK_TOOLCHAIN_LANGS ??= ""SDK_TOOLCHAIN_LANGS:remove:sdkmingw32 = "rust"
# libstd-rs doesn't build for mips n32 with compiler constraint errors SDK_TOOLCHAIN_LANGS:remove:mipsarchn32 = "rust"meta/classes-recipe/populate_sdk_base.bbclass +2
-0+# go will not build for x86-x32 +SDK_TOOLCHAIN_LANGS:remove:linux-gnux32 = "go"
TOOLCHAIN_HOST_TASK ?= " \
nativesdk-packagegroup-sdk-host \meta/conf/fragments/yocto-autobuilder/autobuilder.conf +0
-0@@ -9,5 +9,5 @@ IMAGE_CLASSES += 'testimage'SDK_EXT_TYPE = 'minimal'
SDK_INCLUDE_TOOLCHAIN = '1' ESDK_LOCALCONF_REMOVE:append = 'BB_HASHSERVE'
meta/conf/fragments/yocto-autobuilder/autobuilder.conf IMAGE_CLASSES += 'testimage' · line 12
Quoted 2 lines
meta/conf/fragments/yocto-autobuilder/autobuilder.conf +1
-1-SDK_TOOLCHAIN_LANGS += 'rust' +SDK_TOOLCHAIN_LANGS += 'go rust'
Thanks for the x32 tweak. I worked through the failures in my builds (from multiple sources) and I think there are a couple more from this.
An easy fix for mingw:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/7/builds/2272
A hash instability this is indefiying once it is included in the SDK:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/2303
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/2154
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2082
Cheers,
Richard