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

objcopy --merge-notes doesn't work for shared libraries in clang aarch64 rpm builds

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.10.z
    • clang
    • None
    • None
    • None
    • sst_pt_llvm_rust_go
    • ssg_platform_tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • Release Note Not Required
    • None

      What were you trying to do that didn't work?

      When building the clang package in RHEL8 on aarch64, two of the shared libraries: libclang-cpp.so.18.1, libclang.so.18.1 do not have their debuginfo stripped.  Here is the failing build:

      https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=3081874

      You can see in the x86_64 logs, these two libraries are processed by the find-debuginfo.sh script, but they are not in the aarch64 logs.  You can also see that the binaries on aarch64 are much larger than on x86_64.

      Please provide the package NVR for which bug is seen:

      rpm-build-4.14.3-31.el8.aarch64

      How reproducible:

      Always

      Steps to reproduce

      1. rhpkg clone clang
      2. brew mock-config --tag module-llvm-toolset-rhel_next-8100020240528180846-1007896e-build --arch aarch64 > /etc/mock/rhel-8.10-aarch64.cfg
      3. cd clang
      4. rhpkg  mockbuild --root rhel-8.10-aarch64 -N

      Expected results

      DebugInfo should be stripped from all libraries.

      Actual results

      DebugInfo is not stripped from libclang-cpp.so.18.1 libclang.so.18.1.

            tstellar@redhat.com Thomas Stellard
            tstellar@redhat.com Thomas Stellard
            Thomas Stellard Thomas Stellard
            qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: