RE: [poky] qemuarm64 use lib64 as multilib

"Chen, Qi" <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <CO6PR11MB5602612BCA995AEAC901E5A6ED9EA@CO6PR11MB5602.namprd11.prod.outlook.com>
How about enabling multilib in a normal way and then ‘bitbake lib32-core-image-xxx’?

Regards,
Qi

From: [email protected] <[email protected]> On Behalf Of teddyxiong53 via lists.yoctoproject.org
Sent: Wednesday, December 27, 2023 8:41 PM
To: [email protected]
Subject: [poky] qemuarm64 use lib64 as multilib

Hey guys,

I use poky as the test environment. work on kirkstone branch. test on qemuarm64.
I add this to local.conf
```

require conf/multilib.conf

MULTILIBS = "multilib:lib64"

DEFAULTTUNE = "armv7athf-neon"

DEFAULTTUNE:virtclass-multilib-lib64 = "armv8a"

DEFAULTTUNE:pn-linux-yocto = "armv8a"

```
I wish to use as this :
bitbake attr   : this would output 32bit file by default
bitbake lib64-attr: this output 64bit file

I know most people use lib64 as default, but I have to use lib32 as default.
I have to use a 64bit kernel (including all kernel module), and all the userspace as 32bit.

Now I bitbake yocto, I see this error.
```
ERROR: Nothing PROVIDES 'virtual/aarch64-poky-linux-binutils' (but /mnt/fileroot/hanliang.xiong/work/yocto-study/code/poky/meta/recipes-kernel/linux/linux-yocto_5.15.bb DEPENDS on or otherwise requires it). Close matches:
  virtual/arm-poky-linux-gnueabi-binutils
  virtual/arm-poky-linux-gnueabi-rust
  virtual/lib64-aarch64-pokymllib64-linux-binutils
ERROR: Required build target 'linux-yocto' has no buildable providers.
Missing or unbuildable dependency chain was: ['linux-yocto', 'virtual/aarch64-poky-linux-binutils']
```
The DEPENDS is from kernel.bbclass, it expands to virtual/aarch64-poky-linux-binutils
But it seems no such provider.

Then how can I make it work?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.