<?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>15590</bug_id>
          
          <creation_ts>2024-09-05 15:16:05 +0000</creation_ts>
          <short_desc>frr: libatomic.so linked to native clippy from frr-native on alma8 box.</short_desc>
          <delta_ts>2026-06-18 15:06:51 +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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</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>99615</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2024-09-05 15:16:05 +0000</bug_when>
    <thetext>While building frr package, we can see errors like below

 /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/frr/10.1/recipe-sysroot-native/usr/lib/clippy ./python/clidef.py -o lib/affinitymap_cli_clippy.c lib/affinitymap_cli.c
...

/home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/frr/10.1/recipe-sysroot-native/usr/lib/clippy: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

make[1]: *** [Makefile:18452: lib/affinitymap_cli_clippy.c] Error 127

clippy is built by frr-native, however the problem above seems to be that
its built on a build host where libatomics.so is present and here its reused via sstate and executing on a host where it is not present.

Its seen on alma8-ty-1 build node on AB</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100672</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-16 16:17:29 +0000</bug_when>
    <thetext>Has this happened again Khem?
Is is reproducible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100675</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2025-01-16 17:01:18 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #1)
&gt; Has this happened again Khem?
&gt; Is is reproducible?

yes it is reproducible. Build frr-native on a build machine with libatomic.so installed. Then build frr on a machine without libatomic.so ( newer distros )
make sure that sstate is shared between these two machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101213</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2025-02-25 02:37:34 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #1)
&gt; Has this happened again Khem?
&gt; Is is reproducible?

saw this today on rocky9-vk-2
https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/415</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104537</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-05 16:20:23 +0000</bug_when>
    <thetext>Any news Khem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105657</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-28 15:20:53 +0000</bug_when>
    <thetext>Any news Khem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105841</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-06-11 15:11:25 +0000</bug_when>
    <thetext>No info, reopen if info becomes available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105842</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-06-11 15:15:14 +0000</bug_when>
    <thetext>We need someone to test 

&quot;Build frr-native on a build machine with libatomic.so installed. Then build frr on a machine without libatomic.so ( newer distros )
make sure that sstate is shared between these two machines.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>