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

keylime-agent-rust: FTBFS after clang 16 update

    • keylime-agent-rust-0.2.2-1.el9
    • None
    • None
    • sst_security_special_projects
    • 24
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • If docs needed, set a value
    • None

      The build fails with this output:

      error: failed to run custom build command for `tss-esapi-sys v0.3.0`
      Caused by:
      process didn't exit successfully: `/builddir/build/BUILD/rust-keylime-0.1.0/target/release/build/tss-esapi-sys-efb3eb08194f131f/build-script-build` (exit status: 101)
      — stdout
      cargo:rerun-if-env-changed=TSS2_SYS_NO_PKG_CONFIG
      cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu

      cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
      cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
      cargo:version=3.0.3
      — stderr
      thread 'main' panicked at '"_pthread_cond_s_union(anonymous_at_/usr/include/bits/thread-shared-types_h_94_17)" is not a valid Ident', /builddir/build/BUILD/rust-keylime-0.1.0/vendor/proc-macro2/src/fallback.rs:700:9
      note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

      I believe you need to update bindgen to a version that includes:

      clang: Detect anonymous items explicitly, rather than relying on empty names.
      <https://github.com/rust-lang/rust-bindgen/commit/80738016a36e803fe3bf8b8f6f388c6589d86a1c>

              ansasaki@redhat.com Anderson Sasaki
              fweimer@redhat.com Florian Weimer
              Sergio Correia Sergio Correia
              Karel Srot Karel Srot
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: