<?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>14906</bug_id>
          
          <creation_ts>2022-08-30 07:41:16 +0000</creation_ts>
          <short_desc>Regression caused by systemd 251.4 upgrade when compiled with clang on arm64/arm64</short_desc>
          <delta_ts>2023-01-03 07:14:07 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>jon.mason</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93936</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2022-08-30 07:41:16 +0000</bug_when>
    <thetext>I bisected a problem on qemuarm64 on arm64 build host when using clang as compiler. It seems to be related systemd bump to 251.4

commit 96e409c10f4a44433f2bbe55f9fb6981ea413a5e (HEAD)
Author: Khem Raj &lt;raj.khem@gmail.com&gt;
Date:   Mon Aug 15 20:35:51 2022 -0700

    systemd: Upgrade to 251.4 and fix build with binutils 2.39

    The mount.h conflict patch is now upstream so drop it.
    Additionally this version fixes build with binutils-2.39 [1]

    [1] https://github.com/systemd/systemd-stable/commit/8a6f966be404897b5333c218701965ac3b5a0806

    (From OE-Core rev: d43ec090ceb2bf0016a065103a4c34d0c43cb906)

    Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;


A workaround is to use 

TOOLCHAIN = &quot;gcc&quot; for now. Its a regression since 251.3 worked alright

With this version we see

RESULTS - systemd.SystemdBasicTests.test_systemd_failed: FAILED (122.64s)
RESULTS - weston.WestonTest.test_weston_can_initialize_new_wayland_compositor: FAILED (0.18s)
RESULTS - weston.WestonTest.test_weston_running: FAILED (0.37s)
RESULTS - weston.WestonTest.test_weston_supports_xwayland: FAILED (0.19s)



....
AssertionError: False is not true : Timed out waiting for systemd to settle:
  UNIT           LOAD   ACTIVE     SUB       DESCRIPTION
  dev-vda.device loaded activating tentative /dev/vda
....

It seems its not able to settle the virtual disk device which leads to these issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94356</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-11-03 15:13:27 +0000</bug_when>
    <thetext>We think this is resolved since it hasn&apos;t been happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94365</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2022-11-03 16:44:38 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; We think this is resolved since it hasn&apos;t been happening.

In meta-clang we have forced it to use gcc see

https://github.com/kraj/meta-clang/blob/master/recipes-core/systemd/systemd_%25.bbappend#L3

have you tried by unbolting this workaround ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94608</commentid>
    <comment_count>3</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2023-01-03 07:14:07 +0000</bug_when>
    <thetext>Finally, I can see that systemd upgrade to 252.4 has fixed this problem/regression</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>