Skip to contentSkip to conversation

Multilib in yocto: I am enabling Multilib ,lib32-gcc, lib32-gfortran support in x86 #error

DISCUSSION Kamal GMBH 1 participant 1 message Nov 29, 2024

lore
Share & tools
lore

Kamal GMBH

author
#0 lore raw

I have an x86-based board, and I am trying to enable lib32-gcc, lib32-gfortran, and multilib support. I followed the guidelines provided in the multilib example configuration.
reference:
*https://git.openembedded.org/openembedded-core/tree/meta-skeleton/conf/multilib-example.conf?h=scarthgap*

In my *local.conf* , I added the following configuration:

*MACHINE = "Creter"*
*require conf/multilib.conf*
*MULTILIBS = "multilib:lib32"* *DEFAULTTUNE:virtclass-multilib-lib32 = "x86"* *IMAGE_INSTALL:append = " lib32-gcc lib32-gfortran"*

However, I am encountering the following error during the build process:
*Build error:*
ERROR: glibc-2.39+git-r0 do_package: ExecutionError('/media/nvme1/umesha/kamal-scarthgap/poky-amd-scarthgap/build-weston-crater-scarthgap/tmp-glibc/work/zen2-oe-linux/glibc/2.39+git/temp/run.stash_locale_package_cleanup.4120757', 1, None, None)
ERROR: Logfile of failure stored in: /media/nvme1/umesha/kamal-scarthgap/poky-amd-scarthgap/build-weston-crater-scarthgap/tmp-glibc/work/zen2-oe-linux/glibc/2.39+git/temp/log.do_package.4120757
| rmdir: failed to remove '/media/nvme1/umesha/kamal-scarthgap/poky-amd-scarthgap/build-weston-crater-scarthgap/tmp-glibc/work/zen2-oe-linux/glibc/2.39+git/package/usr/lib': Directory not empty
| WARNING: exit code 1 from a shell command.

*Additionally, I noticed that the lib32 folder is not being generated under the root filesystem:*

umesha@yocto-server-2:/media/nvme1/umesha/kamal-scarthgap/poky-amd-scarthgap/build-weston-crater-scarthgap/tmp-glibc/work/crater-oe-linux/xen-image/1.0/rootfs/usr$ ls
*bin  games  include  lib  libexec  sbin  share  src  x86_64-oe-linux   => here lib32 should show*
Do I need to make any specific changes on the kernel side to enable multilib support? If so, could you please guide me on what needs to be configured?
Thank you in advance for your assistance!