qemuarm64 use lib64 as multilib

[email protected]
Newsgroups org.yoctoproject.lists.poky
Message-ID <20231227124351.NWhZcd60SVCUvYVwiGS9x9C6eYMz3oUl68K4DWVMNuw@z>
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 linux-yocto to compile kernel, 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.