Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-33663

stratisd fails to build with latest rust 1.77.2 update

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • rhel-9.5, rhel-10.0.beta
    • stratisd
    • None
    • None
    • None
    • sst_logical_storage
    • ssg_platform_storage
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      With the latest update to rust-1.77.2, stratisd fails to build from srpm with the following output:

      error: non-binding let on a synchronization lock
         --> src/engine/structures/lock.rs:524:31
          |
      524 |         let (mut lock_record, _) = self.acquire_mutex();
          |                               ^ this lock is not assigned to a binding and is immediately dropped
          |
          = help: consider immediately dropping the value using `drop(..)` after the `let` statement
          = note: `#[deny(let_underscore_lock)]` on by default
      help: consider binding to an unused variable to avoid immediately dropping the value
          |
      524 |         let (mut lock_record, _unused) = self.acquire_mutex();
          |                               ~~~~~~~
      
      warning: `stratisd` (lib) generated 1 warning
      error: could not compile `stratisd` (lib) due to 1 previous error; 1 warning emitted
      

       
      If I understand it correctly, this was fixed upstream in this PR

      Please provide the package NVR for which bug is seen:

      stratisd-3.6.4-1.el10

      How reproducible:

      Steps to reproduce

      1.  Install latest rust build (rust-1.77.2-1.el10)
      2.  dnf download --source stratisd
      3. rpm -ivh stratisd-3.6.4-1.el10.src.rpm
      4. dnf builddep -y ~/rpmbuild/SPECS/stratisd.spec
      5.  rpmbuild -bb ~/rpmbuild/SPECS/stratisd.spec

            amulhern@redhat.com the Mulhern
            rhn-support-jchecahi Jesus Checa Hidalgo
            stratis-team stratis-team
            storage-qe storage-qe
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: