diff mbox series

meta-lts-mixins kirkstone/go: depend on -crosssdk recipes

Message ID 68FCFF96-C849-410C-A25F-3B797A817B67@dorumtech.no
State New
Headers show
Series meta-lts-mixins kirkstone/go: depend on -crosssdk recipes | expand

Commit Message

Martin Dørum Sept. 2, 2024, 11:56 a.m. UTC
The Go recipes failed to compile for me,
because Bitbake said that the recipes
virtual/${HOST_PREFIX}gcc and virtua/${HOST_PREFIX}binutils
didn't exist.
I took a look at how Poky does it, and Poky's Go recipes depend on
virtual/${HOST_PREFIX}gcc-crosssdk and
virtual/${HOST_PREFIX}binutils-crosssdk,
so I changed the mixin recipes to reflect that.

With these changes, the Go recipes compile on Kirkstone.
---
 recipes-devtools/go/go-cross-canadian.inc | 2 +-
 recipes-devtools/go/go-crosssdk.inc       | 2 +-
 recipes-devtools/go/go-runtime.inc        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--
2.46

Comments

Jose Quaresma Oct. 8, 2024, 2:26 p.m. UTC | #1
Hi Martin,

First of all, sorry for the delay.
This happened during my vacation and I didn't see it at the time or when I
came back later.

I mostly use this with clang and everything seems to work but I believe you
use gcc. I will test with the latter to see what happens.
Could you please describe the steps to reproduce your build problem?

Jose

Martin Dørum via lists.yoctoproject.org <martin=
dorumtech.no@lists.yoctoproject.org> escreveu (segunda, 2/09/2024 à(s)
12:57):

> The Go recipes failed to compile for me,
> because Bitbake said that the recipes
> virtual/${HOST_PREFIX}gcc and virtua/${HOST_PREFIX}binutils
> didn't exist.
> I took a look at how Poky does it, and Poky's Go recipes depend on
> virtual/${HOST_PREFIX}gcc-crosssdk and
> virtual/${HOST_PREFIX}binutils-crosssdk,
> so I changed the mixin recipes to reflect that.
>
> With these changes, the Go recipes compile on Kirkstone.
> ---
>  recipes-devtools/go/go-cross-canadian.inc | 2 +-
>  recipes-devtools/go/go-crosssdk.inc       | 2 +-
>  recipes-devtools/go/go-runtime.inc        | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-devtools/go/go-cross-canadian.inc
> b/recipes-devtools/go/go-cross-canadian.inc
> index dd485b6..2c6ed29 100644
> --- a/recipes-devtools/go/go-cross-canadian.inc
> +++ b/recipes-devtools/go/go-cross-canadian.inc
> @@ -1,7 +1,7 @@
>  inherit cross-canadian
>
>  DEPENDS = "go-native virtual/${HOST_PREFIX}go
> virtual/nativesdk-${HOST_PREFIX}go-runtime \
> -           virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc \
> +           virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc \
>             virtual/nativesdk-${HOST_PREFIX}compilerlibs"
>  PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
>
> diff --git a/recipes-devtools/go/go-crosssdk.inc
> b/recipes-devtools/go/go-crosssdk.inc
> index 1293900..61486a6 100644
> --- a/recipes-devtools/go/go-crosssdk.inc
> +++ b/recipes-devtools/go/go-crosssdk.inc
> @@ -1,6 +1,6 @@
>  inherit crosssdk
>
> -DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc
> virtual/nativesdk-${TARGET_PREFIX}compilerlibs
> virtual/${TARGET_PREFIX}binutils"
> +DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc-crosssdk
> virtual/nativesdk-${TARGET_PREFIX}compilerlibs
> virtual/${TARGET_PREFIX}binutils-crosssdk"
>  PN = "go-crosssdk-${SDK_SYS}"
>  PROVIDES = "virtual/${TARGET_PREFIX}go"
>
> diff --git a/recipes-devtools/go/go-runtime.inc
> b/recipes-devtools/go/go-runtime.inc
> index 413cf6d..86539f2 100644
> --- a/recipes-devtools/go/go-runtime.inc
> +++ b/recipes-devtools/go/go-runtime.inc
> @@ -1,5 +1,5 @@
>  DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native"
> -DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go"
> +DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk"
>  PROVIDES = "virtual/${TARGET_PREFIX}go-runtime"
>
>  DEBUG_PREFIX_MAP = "\
> --
> 2.46
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#609):
> https://lists.yoctoproject.org/g/yocto-patches/message/609
> Mute This Topic: https://lists.yoctoproject.org/mt/108225175/5052612
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe:
> https://lists.yoctoproject.org/g/yocto-patches/leave/13170708/5052612/1504338242/xyzzy
> [quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
>
Jose Quaresma Oct. 8, 2024, 4:34 p.m. UTC | #2
Jose Quaresma via lists.yoctoproject.org <quaresma.jose=
gmail.com@lists.yoctoproject.org> escreveu (terça, 8/10/2024 à(s) 15:26):

> Hi Martin,
>
> First of all, sorry for the delay.
> This happened during my vacation and I didn't see it at the time or when I
> came back later.
>
> I mostly use this with clang and everything seems to work but I believe
> you use gcc. I will test with the latter to see what happens.
> Could you please describe the steps to reproduce your build problem?
>

I have built go in the latest kirkstone without problems:

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "4.0.21"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky            = "kirkstone:b61f2dc18a8b928091e4997335be66fa67a5e10d"
meta-lts-mixins      =
"kirkstone/go:5e3924465987f19655f6f5540f8c5187fa4c7c59"


>
> Jose
>
> Martin Dørum via lists.yoctoproject.org <martin=
> dorumtech.no@lists.yoctoproject.org> escreveu (segunda, 2/09/2024 à(s)
> 12:57):
>
>> The Go recipes failed to compile for me,
>> because Bitbake said that the recipes
>> virtual/${HOST_PREFIX}gcc and virtua/${HOST_PREFIX}binutils
>> didn't exist.
>> I took a look at how Poky does it, and Poky's Go recipes depend on
>> virtual/${HOST_PREFIX}gcc-crosssdk and
>> virtual/${HOST_PREFIX}binutils-crosssdk,
>> so I changed the mixin recipes to reflect that.
>>
>> With these changes, the Go recipes compile on Kirkstone.
>> ---
>>  recipes-devtools/go/go-cross-canadian.inc | 2 +-
>>  recipes-devtools/go/go-crosssdk.inc       | 2 +-
>>  recipes-devtools/go/go-runtime.inc        | 2 +-
>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/recipes-devtools/go/go-cross-canadian.inc
>> b/recipes-devtools/go/go-cross-canadian.inc
>> index dd485b6..2c6ed29 100644
>> --- a/recipes-devtools/go/go-cross-canadian.inc
>> +++ b/recipes-devtools/go/go-cross-canadian.inc
>> @@ -1,7 +1,7 @@
>>  inherit cross-canadian
>>
>>  DEPENDS = "go-native virtual/${HOST_PREFIX}go
>> virtual/nativesdk-${HOST_PREFIX}go-runtime \
>> -           virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc \
>> +           virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc \
>>             virtual/nativesdk-${HOST_PREFIX}compilerlibs"
>>  PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
>>
>> diff --git a/recipes-devtools/go/go-crosssdk.inc
>> b/recipes-devtools/go/go-crosssdk.inc
>> index 1293900..61486a6 100644
>> --- a/recipes-devtools/go/go-crosssdk.inc
>> +++ b/recipes-devtools/go/go-crosssdk.inc
>> @@ -1,6 +1,6 @@
>>  inherit crosssdk
>>
>> -DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc
>> virtual/nativesdk-${TARGET_PREFIX}compilerlibs
>> virtual/${TARGET_PREFIX}binutils"
>> +DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc-crosssdk
>> virtual/nativesdk-${TARGET_PREFIX}compilerlibs
>> virtual/${TARGET_PREFIX}binutils-crosssdk"
>>  PN = "go-crosssdk-${SDK_SYS}"
>>  PROVIDES = "virtual/${TARGET_PREFIX}go"
>>
>> diff --git a/recipes-devtools/go/go-runtime.inc
>> b/recipes-devtools/go/go-runtime.inc
>> index 413cf6d..86539f2 100644
>> --- a/recipes-devtools/go/go-runtime.inc
>> +++ b/recipes-devtools/go/go-runtime.inc
>> @@ -1,5 +1,5 @@
>>  DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native"
>> -DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go"
>> +DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk"
>>  PROVIDES = "virtual/${TARGET_PREFIX}go-runtime"
>>
>>  DEBUG_PREFIX_MAP = "\
>> --
>> 2.46
>>
>>
>>
>>
>>
>>
>>
>
> --
> Best regards,
>
> José Quaresma
> _._,_._,_
> ------------------------------
> Links:
>
> You receive all messages sent to this group.
>
> View/Reply Online (#693)
> <https://lists.yoctoproject.org/g/yocto-patches/message/693> | Reply To
> Group
> <yocto-patches@lists.yoctoproject.org?subject=Re:%20Re%3A%20%5Byocto-patches%5D%20%5BPATCH%5D%20meta-lts-mixins%20kirkstone%2Fgo%3A%20depend%20on%20-crosssdk%20recipes>
> | Reply To Sender
> <quaresma.jose@gmail.com?subject=Private:%20Re:%20Re%3A%20%5Byocto-patches%5D%20%5BPATCH%5D%20meta-lts-mixins%20kirkstone%2Fgo%3A%20depend%20on%20-crosssdk%20recipes>
> | Mute This Topic <https://lists.yoctoproject.org/mt/108225175/5052612> | New
> Topic <https://lists.yoctoproject.org/g/yocto-patches/post>
> Your Subscription
> <https://lists.yoctoproject.org/g/yocto-patches/editsub/5052612> | Contact
> Group Owner <yocto-patches+owner@lists.yoctoproject.org> | Unsubscribe
> <https://lists.yoctoproject.org/g/yocto-patches/leave/13170708/5052612/1504338242/xyzzy>
> [quaresma.jose@gmail.com]
> _._,_._,_
>
>
Martin Dørum Oct. 8, 2024, 8:34 p.m. UTC | #3
I didn't understand the problem properly when I sent the patch,
so my description was a bit lacking. Sorry for that.
It turns out that the problem occurs specifically when building go-cross-canadian-<ARCH>.
Turns out that I was seeing it because I had "packagegroup-go-cross-canadian-${MACHINE}"
in my TOOLCHAIN_HOST_TASK and packagegroup-go-cross-canadian-<ARCH>
depends on go-cross-canadian-<ARCH>.

I think the problem is that commit 768c89e306d0486acf8bc76cecef90436f6551b3
(https://git.yoctoproject.org/poky/commit/?h=styhead&id=768c89e306d0486acf8bc76cecef90436f6551b3)
changed all the recipes to remove the -crosssdk suffix,
and meta-lts-mixins kirkstone/go incorporates that change even though
it doesn't work with the rest of Poky kirkstone.

Here's what happens when I try to `bitbake go-cross-canadian-x86-64`
on a fresh system with only Poky kirkstone and meta-lts-mixins kirkstone/go:

∞ nova /yocto/build $ bitbake go-cross-canadian-x86-64
Loading cache: 100% |##################################################################| Time: 0:00:00
Loaded 1653 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/x86_64-pokysdk-linux-gcc' (but /yocto/meta-lts-mixins-go/recipes-devtools/go/go-cross-canadian_1.22.6.bb DEPENDS on or otherwise requires it). Close matches:
  virtual/x86_64-poky-linux-g++
  virtual/x86_64-poky-linux-gcc
  virtual/x86_64-pokysdk-linux-go
ERROR: Required build target 'go-cross-canadian-x86-64' has no buildable providers.
Missing or unbuildable dependency chain was: ['go-cross-canadian-x86-64', 'virtual/x86_64-pokysdk-linux-gcc']

> On 8 Oct 2024, at 18:34, Jose Quaresma <quaresma.jose@gmail.com> wrote:
> 
> 
> 
> Jose Quaresma via lists.yoctoproject.org <http://lists.yoctoproject.org/> <quaresma.jose=gmail.com@lists.yoctoproject.org <mailto:gmail.com@lists.yoctoproject.org>> escreveu (terça, 8/10/2024 à(s) 15:26):
>> Hi Martin,
>> 
>> First of all, sorry for the delay.
>> This happened during my vacation and I didn't see it at the time or when I came back later.
>> 
>> I mostly use this with clang and everything seems to work but I believe you use gcc. I will test with the latter to see what happens.
>> Could you please describe the steps to reproduce your build problem?
> 
> I have built go in the latest kirkstone without problems:
> 
> Build Configuration:
> BB_VERSION           = "2.0.0"
> BUILD_SYS            = "x86_64-linux"
> NATIVELSBSTRING      = "universal"
> TARGET_SYS           = "x86_64-poky-linux"
> MACHINE              = "qemux86-64"
> DISTRO               = "poky"
> DISTRO_VERSION       = "4.0.21"
> TUNE_FEATURES        = "m64 core2"
> TARGET_FPU           = ""
> meta                 
> meta-poky            = "kirkstone:b61f2dc18a8b928091e4997335be66fa67a5e10d"
> meta-lts-mixins      = "kirkstone/go:5e3924465987f19655f6f5540f8c5187fa4c7c59"
>  
>> 
>> Jose
>> 
>> Martin Dørum via lists.yoctoproject.org <http://lists.yoctoproject.org/> <martin=dorumtech.no@lists.yoctoproject.org <mailto:dorumtech.no@lists.yoctoproject.org>> escreveu (segunda, 2/09/2024 à(s) 12:57):
>>> The Go recipes failed to compile for me,
>>> because Bitbake said that the recipes
>>> virtual/${HOST_PREFIX}gcc and virtua/${HOST_PREFIX}binutils
>>> didn't exist.
>>> I took a look at how Poky does it, and Poky's Go recipes depend on
>>> virtual/${HOST_PREFIX}gcc-crosssdk and
>>> virtual/${HOST_PREFIX}binutils-crosssdk,
>>> so I changed the mixin recipes to reflect that.
>>> 
>>> With these changes, the Go recipes compile on Kirkstone.
>>> ---
>>>  recipes-devtools/go/go-cross-canadian.inc | 2 +-
>>>  recipes-devtools/go/go-crosssdk.inc       | 2 +-
>>>  recipes-devtools/go/go-runtime.inc        | 2 +-
>>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>> 
>>> diff --git a/recipes-devtools/go/go-cross-canadian.inc b/recipes-devtools/go/go-cross-canadian.inc
>>> index dd485b6..2c6ed29 100644
>>> --- a/recipes-devtools/go/go-cross-canadian.inc
>>> +++ b/recipes-devtools/go/go-cross-canadian.inc
>>> @@ -1,7 +1,7 @@
>>>  inherit cross-canadian
>>> 
>>>  DEPENDS = "go-native virtual/${HOST_PREFIX}go virtual/nativesdk-${HOST_PREFIX}go-runtime \
>>> -           virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc \
>>> +           virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc \
>>>             virtual/nativesdk-${HOST_PREFIX}compilerlibs"
>>>  PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
>>> 
>>> diff --git a/recipes-devtools/go/go-crosssdk.inc b/recipes-devtools/go/go-crosssdk.inc
>>> index 1293900..61486a6 100644
>>> --- a/recipes-devtools/go/go-crosssdk.inc
>>> +++ b/recipes-devtools/go/go-crosssdk.inc
>>> @@ -1,6 +1,6 @@
>>>  inherit crosssdk
>>> 
>>> -DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/${TARGET_PREFIX}binutils"
>>> +DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc-crosssdk virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/${TARGET_PREFIX}binutils-crosssdk"
>>>  PN = "go-crosssdk-${SDK_SYS}"
>>>  PROVIDES = "virtual/${TARGET_PREFIX}go"
>>> 
>>> diff --git a/recipes-devtools/go/go-runtime.inc b/recipes-devtools/go/go-runtime.inc
>>> index 413cf6d..86539f2 100644
>>> --- a/recipes-devtools/go/go-runtime.inc
>>> +++ b/recipes-devtools/go/go-runtime.inc
>>> @@ -1,5 +1,5 @@
>>>  DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native"
>>> -DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go"
>>> +DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk"
>>>  PROVIDES = "virtual/${TARGET_PREFIX}go-runtime"
>>> 
>>>  DEBUG_PREFIX_MAP = "\
>>> --
>>> 2.46
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> --
>> Best regards,
>> 
>> José Quaresma
>> _._,_._,_
>> Links:
>> You receive all messages sent to this group.
>> 
>> View/Reply Online (#693) <https://lists.yoctoproject.org/g/yocto-patches/message/693> | Reply To Group <mailto:yocto-patches@lists.yoctoproject.org?subject=Re:%20Re%3A%20%5Byocto-patches%5D%20%5BPATCH%5D%20meta-lts-mixins%20kirkstone%2Fgo%3A%20depend%20on%20-crosssdk%20recipes> | Reply To Sender <mailto:quaresma.jose@gmail.com?subject=Private:%20Re:%20Re%3A%20%5Byocto-patches%5D%20%5BPATCH%5D%20meta-lts-mixins%20kirkstone%2Fgo%3A%20depend%20on%20-crosssdk%20recipes> | Mute This Topic <https://lists.yoctoproject.org/mt/108225175/5052612> | New Topic <https://lists.yoctoproject.org/g/yocto-patches/post> 
>> Your Subscription <https://lists.yoctoproject.org/g/yocto-patches/editsub/5052612> | Contact Group Owner <mailto:yocto-patches+owner@lists.yoctoproject.org> | Unsubscribe <https://lists.yoctoproject.org/g/yocto-patches/leave/13170708/5052612/1504338242/xyzzy> [quaresma.jose@gmail.com <mailto:quaresma.jose@gmail.com>]
>> 
>> _._,_._,_
>> 
>> 
> 
> 
> --
> Best regards,
> 
> José Quaresma
Jose Quaresma Oct. 10, 2024, 9:52 a.m. UTC | #4
Martin Dørum <martin@dorumtech.no> escreveu (terça, 8/10/2024 à(s) 21:34):

> I didn't understand the problem properly when I sent the patch,
> so my description was a bit lacking. Sorry for that.
> It turns out that the problem occurs specifically when building
> go-cross-canadian-<ARCH>.
> Turns out that I was seeing it because I had
> "packagegroup-go-cross-canadian-${MACHINE}"
> in my TOOLCHAIN_HOST_TASK and packagegroup-go-cross-canadian-<ARCH>
> depends on go-cross-canadian-<ARCH>.
>
> I think the problem is that commit 768c89e306d0486acf8bc76cecef90436f6551b3
> (
> https://git.yoctoproject.org/poky/commit/?h=styhead&id=768c89e306d0486acf8bc76cecef90436f6551b3
> )
> changed all the recipes to remove the -crosssdk suffix,
> and meta-lts-mixins kirkstone/go incorporates that change even though
> it doesn't work with the rest of Poky kirkstone.
>
> Here's what happens when I try to `bitbake go-cross-canadian-x86-64`
> on a fresh system with only Poky kirkstone and meta-lts-mixins
> kirkstone/go:
>
> ∞ nova /yocto/build $ bitbake go-cross-canadian-x86-64
> Loading cache: 100%
> |##################################################################| Time:
> 0:00:00
> Loaded 1653 entries from dependency cache.
> NOTE: Resolving any missing task queue dependencies
> ERROR: Nothing PROVIDES 'virtual/x86_64-pokysdk-linux-gcc' (but
> /yocto/meta-lts-mixins-go/recipes-devtools/go/go-cross-canadian_1.22.6.bb
> DEPENDS on or otherwise requires it). Close matches:
>   virtual/x86_64-poky-linux-g++
>   virtual/x86_64-poky-linux-gcc
>   virtual/x86_64-pokysdk-linux-go
> ERROR: Required build target 'go-cross-canadian-x86-64' has no buildable
> providers.
> Missing or unbuildable dependency chain was: ['go-cross-canadian-x86-64',
> 'virtual/x86_64-pokysdk-linux-gcc']
>
>
Hi Martin,

As a note I do not test this layer using the nativesdk and because of that
I do not know the level of support in the sdk.

I managed to reproduce the problem locally and after some testing I found
no regressions and so merged it.
Thanks for the steps to reproduce the issue.

Jose


> On 8 Oct 2024, at 18:34, Jose Quaresma <quaresma.jose@gmail.com> wrote:
>
>
>
> Jose Quaresma via lists.yoctoproject.org <quaresma.jose=
> gmail.com@lists.yoctoproject.org> escreveu (terça, 8/10/2024 à(s) 15:26):
>
>> Hi Martin,
>>
>> First of all, sorry for the delay.
>> This happened during my vacation and I didn't see it at the time or when
>> I came back later.
>>
>> I mostly use this with clang and everything seems to work but I believe
>> you use gcc. I will test with the latter to see what happens.
>> Could you please describe the steps to reproduce your build problem?
>>
>
> I have built go in the latest kirkstone without problems:
>
> Build Configuration:
> BB_VERSION           = "2.0.0"
> BUILD_SYS            = "x86_64-linux"
> NATIVELSBSTRING      = "universal"
> TARGET_SYS           = "x86_64-poky-linux"
> MACHINE              = "qemux86-64"
> DISTRO               = "poky"
> DISTRO_VERSION       = "4.0.21"
> TUNE_FEATURES        = "m64 core2"
> TARGET_FPU           = ""
> meta
> meta-poky            = "kirkstone:b61f2dc18a8b928091e4997335be66fa67a5e10d"
> meta-lts-mixins      =
> "kirkstone/go:5e3924465987f19655f6f5540f8c5187fa4c7c59"
>
>
>>
>> Jose
>>
>> Martin Dørum via lists.yoctoproject.org <martin=
>> dorumtech.no@lists.yoctoproject.org> escreveu (segunda, 2/09/2024 à(s)
>> 12:57):
>>
>>> The Go recipes failed to compile for me,
>>> because Bitbake said that the recipes
>>> virtual/${HOST_PREFIX}gcc and virtua/${HOST_PREFIX}binutils
>>> didn't exist.
>>> I took a look at how Poky does it, and Poky's Go recipes depend on
>>> virtual/${HOST_PREFIX}gcc-crosssdk and
>>> virtual/${HOST_PREFIX}binutils-crosssdk,
>>> so I changed the mixin recipes to reflect that.
>>>
>>> With these changes, the Go recipes compile on Kirkstone.
>>> ---
>>>  recipes-devtools/go/go-cross-canadian.inc | 2 +-
>>>  recipes-devtools/go/go-crosssdk.inc       | 2 +-
>>>  recipes-devtools/go/go-runtime.inc        | 2 +-
>>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/recipes-devtools/go/go-cross-canadian.inc
>>> b/recipes-devtools/go/go-cross-canadian.inc
>>> index dd485b6..2c6ed29 100644
>>> --- a/recipes-devtools/go/go-cross-canadian.inc
>>> +++ b/recipes-devtools/go/go-cross-canadian.inc
>>> @@ -1,7 +1,7 @@
>>>  inherit cross-canadian
>>>
>>>  DEPENDS = "go-native virtual/${HOST_PREFIX}go
>>> virtual/nativesdk-${HOST_PREFIX}go-runtime \
>>> -           virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc \
>>> +           virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc \
>>>             virtual/nativesdk-${HOST_PREFIX}compilerlibs"
>>>  PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"
>>>
>>> diff --git a/recipes-devtools/go/go-crosssdk.inc
>>> b/recipes-devtools/go/go-crosssdk.inc
>>> index 1293900..61486a6 100644
>>> --- a/recipes-devtools/go/go-crosssdk.inc
>>> +++ b/recipes-devtools/go/go-crosssdk.inc
>>> @@ -1,6 +1,6 @@
>>>  inherit crosssdk
>>>
>>> -DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc
>>> virtual/nativesdk-${TARGET_PREFIX}compilerlibs
>>> virtual/${TARGET_PREFIX}binutils"
>>> +DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc-crosssdk
>>> virtual/nativesdk-${TARGET_PREFIX}compilerlibs
>>> virtual/${TARGET_PREFIX}binutils-crosssdk"
>>>  PN = "go-crosssdk-${SDK_SYS}"
>>>  PROVIDES = "virtual/${TARGET_PREFIX}go"
>>>
>>> diff --git a/recipes-devtools/go/go-runtime.inc
>>> b/recipes-devtools/go/go-runtime.inc
>>> index 413cf6d..86539f2 100644
>>> --- a/recipes-devtools/go/go-runtime.inc
>>> +++ b/recipes-devtools/go/go-runtime.inc
>>> @@ -1,5 +1,5 @@
>>>  DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native"
>>> -DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go"
>>> +DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk"
>>>  PROVIDES = "virtual/${TARGET_PREFIX}go-runtime"
>>>
>>>  DEBUG_PREFIX_MAP = "\
>>> --
>>> 2.46
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> Best regards,
>>
>> José Quaresma
>> _._,_._,_
>> ------------------------------
>> Links:
>>
>> You receive all messages sent to this group.
>>
>> View/Reply Online (#693)
>> <https://lists.yoctoproject.org/g/yocto-patches/message/693> | Reply To
>> Group
>> <yocto-patches@lists.yoctoproject.org?subject=Re:%20Re%3A%20%5Byocto-patches%5D%20%5BPATCH%5D%20meta-lts-mixins%20kirkstone%2Fgo%3A%20depend%20on%20-crosssdk%20recipes>
>> | Reply To Sender
>> <quaresma.jose@gmail.com?subject=Private:%20Re:%20Re%3A%20%5Byocto-patches%5D%20%5BPATCH%5D%20meta-lts-mixins%20kirkstone%2Fgo%3A%20depend%20on%20-crosssdk%20recipes>
>> | Mute This Topic <https://lists.yoctoproject.org/mt/108225175/5052612>
>> | New Topic <https://lists.yoctoproject.org/g/yocto-patches/post>
>> Your Subscription
>> <https://lists.yoctoproject.org/g/yocto-patches/editsub/5052612> | Contact
>> Group Owner <yocto-patches+owner@lists.yoctoproject.org> | Unsubscribe
>> <https://lists.yoctoproject.org/g/yocto-patches/leave/13170708/5052612/1504338242/xyzzy>
>> [quaresma.jose@gmail.com]
>> _._,_._,_
>>
>>
>>
>
> --
> Best regards,
>
> José Quaresma
>
>
>
diff mbox series

Patch

diff --git a/recipes-devtools/go/go-cross-canadian.inc b/recipes-devtools/go/go-cross-canadian.inc
index dd485b6..2c6ed29 100644
--- a/recipes-devtools/go/go-cross-canadian.inc
+++ b/recipes-devtools/go/go-cross-canadian.inc
@@ -1,7 +1,7 @@ 
 inherit cross-canadian

 DEPENDS = "go-native virtual/${HOST_PREFIX}go virtual/nativesdk-${HOST_PREFIX}go-runtime \
-           virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc \
+           virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc \
            virtual/nativesdk-${HOST_PREFIX}compilerlibs"
 PN = "go-cross-canadian-${TRANSLATED_TARGET_ARCH}"

diff --git a/recipes-devtools/go/go-crosssdk.inc b/recipes-devtools/go/go-crosssdk.inc
index 1293900..61486a6 100644
--- a/recipes-devtools/go/go-crosssdk.inc
+++ b/recipes-devtools/go/go-crosssdk.inc
@@ -1,6 +1,6 @@ 
 inherit crosssdk

-DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/${TARGET_PREFIX}binutils"
+DEPENDS = "go-native virtual/${TARGET_PREFIX}gcc-crosssdk virtual/nativesdk-${TARGET_PREFIX}compilerlibs virtual/${TARGET_PREFIX}binutils-crosssdk"
 PN = "go-crosssdk-${SDK_SYS}"
 PROVIDES = "virtual/${TARGET_PREFIX}go"

diff --git a/recipes-devtools/go/go-runtime.inc b/recipes-devtools/go/go-runtime.inc
index 413cf6d..86539f2 100644
--- a/recipes-devtools/go/go-runtime.inc
+++ b/recipes-devtools/go/go-runtime.inc
@@ -1,5 +1,5 @@ 
 DEPENDS = "virtual/${TUNE_PKGARCH}-go go-native"
-DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go"
+DEPENDS:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk"
 PROVIDES = "virtual/${TARGET_PREFIX}go-runtime"

 DEBUG_PREFIX_MAP = "\