Bug 2148167
| Summary: | annocheck reports that Rust program is written in a language other than C/C++/Go/Rust | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jan Pazdziora <jpazdziora> |
| Component: | annobin | Assignee: | Nick Clifton <nickc> |
| annobin sub component: | gcc-toolset-12 | QA Contact: | Václav Kadlčík <vkadlcik> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | jpazdziora, mcermak, nickc |
| Version: | 9.0 | Keywords: | Bugfix, Triaged |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-01-17 12:00:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jan Pazdziora
2022-11-24 13:35:14 UTC
I see the same issue with nispor-1.2.3-1.el9.x86_64 and Hardened: /usr/bin/npc: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/npc: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/npc: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/npc: Overall: PASS. sevctl-0.2.0-4.el9.x86_64 and Hardened: /usr/bin/sevctl: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/sevctl: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/sevctl: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/sevctl: Overall: PASS. stratisd-2.4.2-3.el9.x86_64 and Hardened: /usr/bin/stratis-min: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/stratis-min: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/stratis-min: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/stratis-min: Overall: PASS. Hardened: /usr/bin/stratis-predict-usage: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/stratis-predict-usage: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/stratis-predict-usage: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/stratis-predict-usage: Overall: PASS. and even for rust-1.58.1-1.el9.x86_64 itself Hardened: /usr/bin/rustc: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/rustc: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/rustc: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/rustc: Overall: PASS. Hardened: /usr/bin/rustdoc: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/rustdoc: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/rustdoc: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/rustdoc: Overall: PASS. and rustfmt's Hardened: /usr/bin/cargo-fmt: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/cargo-fmt: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/cargo-fmt: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/cargo-fmt: Overall: PASS. Hardened: /usr/bin/rustfmt: info: Written in a language other than C/C++/Go/Rust. Hardened: /usr/bin/rustfmt: info: Command line options not recorded in DWARF DW_AT_producer variable. Hardened: /usr/bin/rustfmt: info: ALSO written in Assembler (source: DW_AT_language string). Hardened: /usr/bin/rustfmt: skip: stack-prot test because not compiled C/C++ code Hardened: /usr/bin/rustfmt: Overall: PASS. Investigating.... This looks like a duplicate of: https://bugzilla.redhat.com/show_bug.cgi?id=2057737 Essentially what is happening is that annocheck was built in an environment that does not know about the DWARF value used to identify Rust binaries. So it displays the message shown. The problem was fixed with annobin 10.58, so using that version, or a later one, should solve the problem. Note - whilst RHEL 9.0 uses annobin 10.54, RHEL 9.1 will use annobin 10.73 Oh and GTS 9.1 uses annobin 10.76, so it should be OK as well. (In reply to Nick Clifton from comment #4) > Oh and GTS 9.1 uses annobin 10.76, so it should be OK as well. Doh - I meant GTS 12 for RHEL 9.1.... Thanks Jan, closing. |