Bug 2086118

Summary: Backport fix for resolving 'ar' and 'nm' giving ELFCLASS32 errors
Product: Red Hat Enterprise Linux 8 Reporter: Brandon Clark <brclark>
Component: binutilsAssignee: Nick Clifton <nickc>
binutils sub component: system-version QA Contact: Miloš Prchlík <mprchlik>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: unspecified CC: alanm, amike, brclark, casantos, fweimer, jwright, mbliss, mcermak, mkielian, mkolbas, mprchlik, ohudlick, sipoyare, toneata
Version: 8.4Keywords: 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:
: 2091051 (view as bug list) Environment:
Last Closed: 2022-05-30 06:48:12 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:
Bug Depends On:    
Bug Blocks: 2091051    

Description Brandon Clark 2022-05-13 23:24:26 UTC
Description of problem:
Customer running RHEL 8.4 is observing similar error to upstream fedora bug 1836618. This listing is in regards to backporting the fix from this listing to RHEL 8.6, if it has not been implemented at this time.

Version-Release number of selected component (if applicable):
binutils-2.30-93.el8.x86_64
RHEL 8 up to at least 8.4

How reproducible:
Customer is able to consistently reproduce this behavior.
I have personally not been able to reproduce the behavior.

Actual results:
Error observed:
ar: /usr/bin/../bin/../lib/bfd-plugins/LLVMgold.so: wrong ELF class: ELFCLASS32

Expected results:
Code compiles without error.

Additional info:
I am asking if the customer is able to test on a machine running RHEL 8.6 at this current time and will update here with their result.

Comment 1 Nick Clifton 2022-05-16 14:29:22 UTC
(In reply to Brandon Clark from comment #0)
> Customer running RHEL 8.4 is observing similar error to upstream fedora bug
> 1836618. This listing is in regards to backporting the fix from this listing
> to RHEL 8.6, if it has not been implemented at this time.

A fix to RHEL 8.6 has already been implemented.  This was for:

  https://bugzilla.redhat.com/show_bug.cgi?id=2039117
 
> I am asking if the customer is able to test on a machine running RHEL 8.6 at
> this current time and will update here with their result.

If the customer cannot use RHEL 8.6 then they may be able to work around the 
problem by removing the llvm-libs.i686 package.  Assuming that they are happy
to do so.  If not, then this will have to become a z-stream BZ in order to get
the fix backported to 8.4.

Comment 2 Brandon Clark 2022-05-16 23:12:27 UTC
Hello again,

The customer has implemented the workaround on another test system of removing the 32-bit llvm-libs package. They confirmed that their code is compiling successively after doing so. With that said, they are still interested in the z-stream update and are creating a piece of test code specifically for troubleshooting.

Brandon Clark, RHCE
Red Hat Global Support Services

Comment 4 Oneata Mircea Teodor 2022-05-30 06:48:12 UTC

*** This bug has been marked as a duplicate of bug 2039117 ***