This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2216665 - keylime-agent-rust: FTBFS after clang 16 update
Summary: keylime-agent-rust: FTBFS after clang 16 update
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: keylime-agent-rust
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Sergio Correia
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-22 07:18 UTC by Florian Weimer
Modified: 2023-07-05 13:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-05 13:12:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-662 0 None None None 2023-07-05 13:12:31 UTC
Red Hat Issue Tracker RHELPLAN-160770 0 None None None 2023-06-26 12:37:14 UTC
Red Hat Issue Tracker RHELPLAN-160771 0 None None None 2023-06-26 12:37:12 UTC
Red Hat Issue Tracker SECENGSP-5270 0 None None None 2023-06-26 12:37:19 UTC

Description Florian Weimer 2023-06-22 07:18:40 UTC
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>


Note You need to log in before you can comment on or make changes to this bug.