<?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>15822</bug_id>
          
          <creation_ts>2025-04-04 03:19:32 +0000</creation_ts>
          <short_desc>Conflict glibc 2.41 and strace 6.10 into Yocto 5.2_M3 - Build Error &quot;redefinition of struct sched_attr&quot;</short_desc>
          <delta_ts>2025-04-18 16:48:21 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>5.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anh Nguyen">anh.nguyen.pv</reporter>
          <assigned_to name="Anh Nguyen">anh.nguyen.pv</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>Yash.Shinde</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>101558</commentid>
    <comment_count>0</comment_count>
    <who name="Anh Nguyen">anh.nguyen.pv</who>
    <bug_when>2025-04-04 03:19:32 +0000</bug_when>
    <thetext>Hi,

Yocto Project version 5.2_M2 uses glibc 2.41 and strace 6.10.
Both define struct sched_attr --&gt; got build error &quot;redefinition of struct sched_attr&quot;
This struct is defined into:
 - glibc 2.41: sysdeps/unix/sysv/linux/bits/sched.h
 - strace 6.10: src/sched_attr.h

Note: glibc 2.40 + strace 6.10 are OK

Please consider this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101608</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-04-10 14:34:29 +0000</bug_when>
    <thetext>I asked Yash to look at this briefly. He said:


I didn&apos;t find any bug reported in glibc bugzilla for &quot;redefinition of struct sched_attr&quot;.

 

However, a similar case was addressed in Qemu with a patch by Khem :

https://github.com/qemu/qemu/commit/27a8d899c7a100fd5aa040a8b993bb257687c393

https://patchwork.kernel.org/project/qemu-devel/patch/20241011193140.1047648-1-raj.khem@gmail.com/

 

Perhaps a similar macro check can be done for strace too.

Anh,
does this still happen for 5.2-M4 and/or master?
Can you explain why we did not see this in our Yocto AB testing?
What exactly are the steps to reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101684</commentid>
    <comment_count>2</comment_count>
    <who name="Anh Nguyen">anh.nguyen.pv</who>
    <bug_when>2025-04-18 03:24:18 +0000</bug_when>
    <thetext>Hi Randy,

Sorry for my mistake.
I got issue because I used old strace version with new glibc version.
There is no issue with Yocto 5.2_M3.
I will verify more carefully before creating a bug later.

Best Regards,
Anh Nguyen</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101688</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-04-18 16:48:21 +0000</bug_when>
    <thetext>Anh, thanks for the follow-up.
It&apos;s good that this isn&apos;t a bug that we missed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>