Bug 2232377

Summary: i686 libstdc++_nonshared80.a lacking .hidden
Product: Red Hat Enterprise Linux 8 Reporter: Marek Polacek <mpolacek>
Component: gccAssignee: Marek Polacek <mpolacek>
gcc sub component: gcc-toolset-12 QA Contact: Martin Cermak <mcermak>
Status: ASSIGNED --- Docs Contact:
Severity: unspecified    
Priority: unspecified CC: fweimer, mcatanza
Version: 8.9Keywords: 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: 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 Marek Polacek 2023-08-16 14:45:45 UTC
gcc-toolset-12-gcc-12.2.1-7.4.el8 on i686 has a problem:

+ grep 'HIDDEN.*UND'
+ grep -v __dso_handle
   237: 00000000     0 NOTYPE  GLOBAL HIDDEN   UND _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEjjPKcj
   238: 00000000     0 NOTYPE  GLOBAL HIDDEN   UND _ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_mutateEjjPKwj

causing

/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/i686-redhat-linux/12/ld: lib/libwebkit2gtk-4.0.so.37.63.5: hidden symbol `_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_mutateEjjPKwj' isn't defined
/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/i686-redhat-linux/12/ld: final link failed: bad value

gcc12-libstdc++-compat.patch needs two .hidden directives for those two symbols.