<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14986</bug_id>
          
          <creation_ts>2022-12-12 17:41:56 +0000</creation_ts>
          <short_desc>Check libraries linked with qemu</short_desc>
          <delta_ts>2026-08-20 15:24:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="New Comer Bugs">newcomer</assigned_to>
          <cc>adrian.freihofer</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94516</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-12-12 17:41:56 +0000</bug_when>
    <thetext>qemu may/will link with libraries from the host instead of the ones from the native sysroot. It is necessary to check it is allowed to do so else, it will later fail after sstate reuse on another worker with a cryptic error like:

/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/libzstd.so.1)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/libvirglrenderer.so.1)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/libvirglrenderer.so.1)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/libvirglrenderer.so.1)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/libasound.so.2)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/libasound.so.2)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/sysroots-uninative/x86_64-linux/lib/libdl.so.2)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/sysroots-uninative/x86_64-linux/lib/librt.so.1)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/sysroots-uninative/x86_64-linux/lib/libpthread.so.0)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_ABI_DT_RELR&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/sysroots-uninative/x86_64-linux/lib/libresolv.so.2)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/sysroots-uninative/x86_64-linux/lib/libresolv.so.2)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/./libwayland-server.so.0)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/./libwayland-server.so.0)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/./libX11.so.6)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/./libX11.so.6)
/home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386: /usr/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33&apos; not found (required by /home/pokybuild/yocto-worker/qemux86/build/build/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/../lib/./././libXau.so.6)

This particular ocurrence was due to libpng and was fixed by:

https://git.yoctoproject.org/poky/commit/?id=9e2e0e73a4ca5ff5fbea80783e27bf31f133961e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95547</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-05-17 10:46:56 +0000</bug_when>
    <thetext>I&apos;ve a series that I need to actually submit that turns all of the &apos;auto&apos; dependencies to forcibly on, which will stop these automatic dependencies happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96107</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:29:35 +0000</bug_when>
    <thetext>Bulk move to 4.3 M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96501</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 16:56:33 +0000</bug_when>
    <thetext>Moved to 5.0 M1 since it&apos;s an enhancement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98806</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:08:13 +0000</bug_when>
    <thetext>Move to 5.99 since no one is actively working on this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102543</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian">adrian.freihofer</who>
    <bug_when>2025-08-03 12:34:16 +0000</bug_when>
    <thetext>Probably I just run into this issue. Here are the details:

- The host is a (not yet supported) Fedora 42
- A build folder where qemu-native is built without sstate-cache (bitbake core-image-full-cmdline).
- Run oe-selftest in build-st: Some tests such as c_cpp.CMakeTests which use qemu usermode failed.
  The root cause seems to be that the qemu-x86_64 just segfaults.

From a clean shell, without oe-init-build-env sourced: qemu-x86_64 -h works:

   ~/projets/oss/poky/build/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/qemu-x86_64 -h
   usage: qemu-x86_64 [options] program [arguments...]
   Linux CPU emulator (compiled for x86_64 emulation)
   ...

   ldd ~/projets/oss/poky/build/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/qemu-x86_64
        linux-vdso.so.1 (0x00007fc199645000)
        libm.so.6 =&gt; /lib64/libm.so.6 (0x00007fc199532000)
        libglib-2.0.so.0 =&gt; /home/adrian/projets/oss/poky/build/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/../lib/libglib-2.0.so.0 (0x00007fc1990b2000)
        libgmodule-2.0.so.0 =&gt; /home/adrian/projets/oss/poky/build/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/../lib/libgmodule-2.0.so.0 (0x00007fc19952c000)
        libc.so.6 =&gt; /lib64/libc.so.6 (0x00007fc198ec0000)
        /home/adrian/projets/oss/poky/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 =&gt; /lib64/ld-linux-x86-64.so.2 (0x00007fc199647000)
        libpcre2-8.so.0 =&gt; /home/adrian/projets/oss/poky/build/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/../lib/./libpcre2-8.so.0 (0x00007fc1994bf000)

However, from build-st qemu-x86_64 -h segfaults:

   ~/projets/oss/poky/build-st/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/qemu-x86_64 -h
   Segmentation fault (core dumped)


   ldd ~/projets/oss/poky/build-st/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/qemu-x86_64
        linux-vdso.so.1 (0x00007fee8cdcb000)
        libm.so.6 =&gt; /lib64/libm.so.6 (0x00007fee8ccb8000)
        libglib-2.0.so.0 =&gt; /home/adrian/projets/oss/poky/build-st/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/../lib/libglib-2.0.so.0 (0x00007fee8c8b2000)
        libgmodule-2.0.so.0 =&gt; /home/adrian/projets/oss/poky/build-st/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/../lib/libgmodule-2.0.so.0 (0x00007fee8ccb2000)
        libc.so.6 =&gt; /lib64/libc.so.6 (0x00007fee8c6c0000)
        /home/adrian/projets/oss/poky/build-st/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 =&gt; /lib64/ld-linux-x86-64.so.2 (0x00007fee8cdcd000)
        libpcre2-8.so.0 =&gt; /home/adrian/projets/oss/poky/build-st/tmp/work/core2-64-poky-linux/meson-example/1.0/recipe-sysroot-native/usr/bin/../lib/./libpcre2-8.so.0 (0x00007fee8c655000)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102592</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-08-14 09:56:28 +0000</bug_when>
    <thetext>Adrian: Did you try using the latest uninative from master? Also note that ldd is not accurate with our native binaries as it doesn&apos;t understand our uninative loader which changes the search path</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102594</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian">adrian.freihofer</who>
    <bug_when>2025-08-14 13:31:00 +0000</bug_when>
    <thetext>It was built via oe-selftest from master branch commit from 2025-08-03. I also checked that the uninative glibc version is &gt;= the version on Fedora 42. So yes, that should be the case.

Thanks for the hint with ldd.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>